I just want to know if its possible to change the "Temporary Variables" you set in a project, in TC, via Visual Studio Test task or other tasks, in TFS?
For example say that I have a couple of build definitions created in TFS, and every definition point to a different server.
And in my TC tests I have pointed out in the "Temporary Variables" which URLs it should point to.
So when it come to the builds in TFS I want to replace the URLs set in "Temporary Variables", with new URLs, specific for that specific build.
So now I wonder if this task is even possible? Replacing variables in TC tests, with Visual Studio Test task or other tasks available for TFS.
Solved! Go to Solution.
Hi @TCqauser,
I am not sure about the project variables being updated via a TFS task. What I do is I have a configuration file (a simple text file) with the server URL and the browser I want to execute on. You can edit/read from that file and decide what configuration you want to run against. In your case you have a seperate file for each server if you find that easier to manage.
Hi @TCqauser,
I am not sure about the project variables being updated via a TFS task. What I do is I have a configuration file (a simple text file) with the server URL and the browser I want to execute on. You can edit/read from that file and decide what configuration you want to run against. In your case you have a seperate file for each server if you find that easier to manage.
Thank you Reshail.
Hi @TCqauser , please let us know if the suggested approach works for you.
@TCqauser any updates on your situation? Please share your progress
Hello,
Sorry for late answer. I have managed to fix this.
The approach I have been using is:
1) Send in what environment you want to test, via Powershell task in TFS.
2) Based on the input, the Powershell script creates a xml file with specific environment variables.
3) TestComplete reads this xml file, and based on the environment variables, its using those to perform the tests on that specific environment.
I used this link to understand how to read from xml file:
Subject | Author | Latest Post |
---|---|---|