colinbowern
13 years agoOccasional Contributor
VS 2010 Integration - Hard Coded Paths in Test Item (blocking issue)
Each of our developers and testers check out the solution to their own working directory (i.e. I use C:\Projects, others use My Documents\Projects, others use C:\MyApp). The Team Build Agent (TFS 2010) checks out code to C:\Builds\[Agent#]\[ProjectName]\[BuildDefinition]\Sources. With all of the tools we use that hasn't been a problem because they treat paths as relative to the solution location. When using TestComplete though I am running into a problem where it appears that it is hard-coding the path in the test item:
<TestComplete_Project_File type="System.String">C:\Projects\MyApp\Unit Tests\SmokeTests\SmokeTests.mds</TestComplete_Project_File>
The problem with this is that this file resides in a different fixed path on the build agent and on other computers. I tried removing the path to see if it would find the file (which is located in the same folder as the Test Project), but it failed to find it.
At this point this is blocking our adoption of TestComplete in our build process. How do we get around this?
<TestComplete_Project_File type="System.String">C:\Projects\MyApp\Unit Tests\SmokeTests\SmokeTests.mds</TestComplete_Project_File>
The problem with this is that this file resides in a different fixed path on the build agent and on other computers. I tried removing the path to see if it would find the file (which is located in the same folder as the Test Project), but it failed to find it.
At this point this is blocking our adoption of TestComplete in our build process. How do we get around this?