This is a migrated thread and some comments may be shown as answers.

Test Studio Desynchronized from TFS

20 Answers 331 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 05 Feb 2013, 09:22 AM

Hi,

We seem to have on of our tests in the Test Studio Project desynchronized from our source control which is Team foundation Server 2008.  Every time we open the project in Test Studio it automaticallly checks out one of the tests for edit.  This particular test has not been worked on or touched for a number of weeks now so we have no idea why it has started to do this.  We have even attempted to fix it by completely deleting the test from both source control and Test Studio, then re-recording the test and checking it back in but we still seem to be in the same state.

Please find below an extract of the log when we open test Studio.

I would be grateful if you could advise how we can fix this.  Is there a file of some sort that we can manually edit to prevent Test Studio from trying to keep adding the same test to source control?

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer._vcs_NonFatalError() : Non-fatal error handling TFS request: Failure instance 52192065
  RequestType: None
  Code: ItemExistsException
  Severity: Error
  Warnings: [0]
  ComputerName:
  IdentityName:
  LocalItem:
  Message: The item $/SetAllRequiredInfo.resx already exists.
  ResourceName:
  ServerItem: $/SetAllRequiredInfo.resx
  ItemId: 0
  WorkspaceName:
  WorkspaceOwner:

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer._vcs_NonFatalError() : Non-fatal error handling TFS request: Failure instance 64398613
  RequestType: None
  Code: ItemExistsException
  Severity: Error
  Warnings: [0]
  ComputerName:
  IdentityName:
  LocalItem:
  Message: The item $/SetAllRequiredInfo.tstest already exists.
  ResourceName:
  ServerItem: $/SetAllRequiredInfo.tstest
  ItemId: 0
  WorkspaceName:
  WorkspaceOwner:

[02/04 14:33:22,Telerik.TestStudio.exe(2920:1),TeamFoundationServer] TFSServer.AddFiles() : Error adding files

20 Answers, 1 is accepted

Sort by
0
Alan
Top achievements
Rank 2
answered on 05 Feb 2013, 10:06 PM
Shane, 

Try to get latest or revert/get latest (assuming the correct version is in TFS) when you open the project.  I had a question whether or not Test Studio performs a get latest when opening a project--turns out that you have to do that manually.  This may not address your issue entirely, but it's a start.  Hopefully that syncs everything for good for you.

Alan
0
Shane
Top achievements
Rank 1
answered on 06 Feb 2013, 09:26 AM
Hi Alan,

Thanks for yout response, however, unfortunately I had recently come across your post a couple of weeks ago as I was wondering the same thing back then, so we now have as part of our manual process to always get latest whenever we open up Test Studio as a result of your post. We have tried a number of things around getting latest, getting specific and overwriting etc all of which result in the same problem.
0
Alan
Top achievements
Rank 2
answered on 07 Feb 2013, 05:07 PM
Shane, 

I noticed in my application log that I had the same issue you are having with the files Login.tstest, Login.resx, and Loing.tstest.cs but I can't recall how we resolved it.  I just ran my app log again and I am not having that issue any longer.  Are you checking in at the project level or the specific script?  Maybe try a combination of both?  One issue we were having was checking in the Pages.g.cs file, and these instructions state that it should not be checked in.  Double check the first section "check in all files to your Source Control except the following" to see if you have any of those in TFS that may cause an issue.

Other than that, I'm not well-versed in the world of TFS, so I'm curious if an Admin has further insight.

Thanks!
Alan
0
Ivaylo
Telerik team
answered on 08 Feb 2013, 03:55 PM
Hello Shane,

I am sorry to hear you are experiencing this issue. In order to overcome this issue could you please create a brand new project copy all the tests from your old project and try to check in the newly created project in the TFS.
This is the quickest way that you can overcome the conflicts you are getting. If this is not working please update this post so we can continue investigating.
Another thing you may try is to check the Remote path in the SourceControlRepository as shown in the screenshot attached.
In order to do so please go to the project's folder in Windows Explorer, locate the Settings.aiis file, click edit with Notepad and locate the highlighted section.

Looking forward to hearing from you.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Shane
Top achievements
Rank 1
answered on 12 Feb 2013, 10:43 AM
Hi Ivaylo,

Yes recreating the Project and copying the files over again does resolve the issue, however this is happening quite often and I would rather not have to do this every time.

Is there a file which can been manually edited which manages the synchronization between TFS and Test Studio?

Thanks
Shane
0
Ivaylo
Telerik team
answered on 14 Feb 2013, 08:55 AM
Hello Shane,

I am sorry you are experiencing this issue.
Did you try editing the path in the settings file as explained in my previous reply?

Please let me know if this is not working for you either.

Regards,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Shane
Top achievements
Rank 1
answered on 14 Feb 2013, 09:32 AM
Hi Ivaylo,

Yes the path was set correctly.

Thanks
Shane
0
Pavel Kotsev
Telerik team
answered on 19 Feb 2013, 09:31 AM
Hi Shane,

I am sorry to hear that you continue to experience problems with TFS. It would really help us to troubleshoot this problem if you could send us the project or at least the test that causes the problem and another one that works correct.

Regards,
Pavel
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Shane
Top achievements
Rank 1
answered on 21 Feb 2013, 06:25 PM
Hi Pavel,

I would be happy to send you the project.  Please could you let me know where you would like me to send it to, as I would rather not post it on a public forum.

Thanks

Shane
0
Plamen
Telerik team
answered on 22 Feb 2013, 12:10 PM
Hi Shane,

I just sent you an email invitation to a private DropBox folder for you to upload to. You should be able to upload up to 3 GB. Thanks for providing the project.

All the best,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Shane
Top achievements
Rank 1
answered on 22 Feb 2013, 01:00 PM
Thank you Plamen,

I have dropped the project in a folder called Desynchronized Issue along with a word document explaining the problem in more detail,
0
Ivaylo
Telerik team
answered on 26 Feb 2013, 03:32 PM
Hello Shane,

It seems the folder that Plamen has provided you with is empty. Please check the attached screenshot. I've shared another folder and sent the invitation via email. Please try attaching the project there. Since you are saying the project is quite big you can delete the backup folder in it and the resx files which is most probably making your project big.

Looking forward to hear from you.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Shane
Top achievements
Rank 1
answered on 26 Feb 2013, 03:41 PM
Hi Ivaylo,

The project is actually very small as we have only just come out of evaluation period, so I'm not sure why the dropbox folder ended up emtpy.  Anyway not to worry, I have re-added it to the new Dropbox folder you invited me to, please let me now if you receive it ok.

Many thanks
Shane
0
Ivaylo
Telerik team
answered on 01 Mar 2013, 02:04 PM
Hello Shane,

Please excuse me for the delayed reply.
Thank you for providing the project for us. I have spent some time in order to reproduce the issue you are experiencing but I was not able to. Everything works as expected on my side using your project. Could you please double check in the instructions for the repro you are providing and make sure you are not missing a step?

Looking forward to hearing from you.

Kind regards,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Allen
Top achievements
Rank 1
answered on 12 Aug 2013, 08:00 PM
I am experiencing the exact same issue. In fact, I just posted a support ticket about it before I found this post. Also, again before I found this post,I did wind up creating a brand new project in order to correct the problem - and that worked only until I tried to open the project again. After closing the project and reopening, I received an error message - "The TFS Local path does not match the actual project path!" From that point forward, I am no longer able to work with the project in sync with TFS. If I try to open the project directly from TestStudio via the TFS option, it prompts me to find a local folder. When I select on, it comes back with "Both a local path and a remote path must be specified to create a new source control repository mapping." It shows this even though the path is mapped in Visual Studio. When I open and inspect the settings.asii file, the "Remote path" has changed and the "solution" path and has marked the project as "IsOnline" as false.

This is really frustrating and I have 3 QA people that cannot work now because of this continuing issue. We would appreciate any help.
0
Cody
Telerik team
answered on 13 Aug 2013, 07:23 PM
Hi Allen,

I have been handling your private support ticket on this issue. Did my last email to you help out? If you're still having problems with this our next step is to setup an online GoToMeeting with you where I can see the problem in action and work with you to solve it.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Allen
Top achievements
Rank 1
answered on 13 Aug 2013, 07:37 PM
Yes, it is resolved.
0
Cody
Telerik team
answered on 13 Aug 2013, 07:41 PM
Hello,

That's wonderful to hear! Thank you for the update. 

For the benefit of any other customer monitoring this thread, here's what I last wrote on the support ticket:

Yes Test Studio automatically creates this workspace anytime you use the "Open from TFS" feature. We do this so that we don't make any unwanted changes to your default workspace.

If you really prefer to use your default workspace you can follow this procedure instead:

1.     Use Visual Studio and its Source Control Explorer to get the project from TFS and put it onto your local hard drve

2.     Run Test Studio and select Open Existing Project

3.     Navigate to the projects root folder on disk

4.     Select Open

5.     Once the project is open use Test Studio's Connect a Project to TFS feature

This will cause Test Studio to recognize the project is under source control and use your default workspace. Your settings.aiis file will be updated in the process with the specifics of your TFS source control settings and location in TFS. You'll want to check back in the updated file.

Then it's safe to delete the xxxx_WebUITestStudio workspace since it will no longer be used.


Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Herb
Top achievements
Rank 1
answered on 19 Sep 2013, 01:06 PM
0
Cody
Telerik team
answered on 25 Sep 2013, 07:10 PM
Hi Herb,

I apologize for the delay getting back to you on this. It took me a while to repro it so I could determine what causes it. In essence it is caused when you attempt to open a project on your local hard drive that was connected to TFS but not using your own TFS workspace.

For example, you copied the project from "Joe's" machine (or a network location) which got put there originally because Joe either added it to TFS himself or opened it from TFS. When you try to open it, Test Studio tries to look at the referenced TFS location (a setting in the settings.aiis file) however since the TFS workspace that Test Studio wants to use doesn't exist you get this error message.

Instead of copying the project from another machine you should open it from TFS so that Test Studio can setup the TFS workspace and map it appropriately to a folder on your local hard drive.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Shane
Top achievements
Rank 1
Answers by
Alan
Top achievements
Rank 2
Shane
Top achievements
Rank 1
Ivaylo
Telerik team
Pavel Kotsev
Telerik team
Plamen
Telerik team
Allen
Top achievements
Rank 1
Cody
Telerik team
Herb
Top achievements
Rank 1
Share this question
or