Reputation: 2507
I would like to know the typical workflow for a coded ui test on a Team Foundation Server.
Our current workflow is:
UI Build Definition
will trigger the Main Build Definition
Main Build Definition
will build the Main Solution
and the UI Test Solution
UI Build Definition
will deploy the result and start testing it on a virtual machine.Now I would like to skip building of the main solution, and just use the latest build, because for a small UI test fix this workflow always requires to build the whole thing again, but I haven't figured out yet how to be able to create a workflow like:
Main Solution
UI Test Solution
is this even possible?
I would like to be able to select on which build the main solution should be based on (e.g. use latest build), but I could not figure out how to also tell TFS to also build a new UI Solution :(
Thanks for your input.
Upvotes: 2
Views: 186
Reputation: 1324
I've encountered a similar problem on a project i worked on. We've decided to solve it in a different way - I'm not sure it's what you want but maybe it will help you:
Instead of the auto tests build be dependent on the main dev build - we've created a scheduled build which runs the tests. In our tests we've included a Prerequisites class that goes to the TFS drop location and selects the latest build (or any other build we desire), deploys it to the auto test environment and starts running the tests on it.
That way we control the version we run on independent from the main build but not unrelated to it.
Upvotes: 1
Reputation: 1946
Sounds like you want to use two different drop locations for binaries to deploy: location A for "productive" binaries and location B for test binaries.
I suppose you are using Build-Deploy-Test workflow.
The only way I can imagine is to customize Build-Deploy-Test workflow:
Please check this article: Customization to specify test binaries location other then build drop location.
This article describes an easier static approach expecting test binaries in a particular static place but it will help you when implementing your scenario.
Upvotes: 2