cancel
Showing results for 
Search instead for 
Did you mean: 

Change the Temporary Variables set in TC project via Visual Studio Test in TFS

SOLVED
Highlighted
Occasional Contributor

Change the Temporary Variables set in TC project via Visual Studio Test in TFS

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: Change the Temporary Variables set in TC project via Visual Studio Test in TFS

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.

 

View solution in original post

3 REPLIES 3
Highlighted
Community Leader

Re: Change the Temporary Variables set in TC project via Visual Studio Test in TFS

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.

 

View solution in original post

Highlighted
Community Manager

Re: Change the Temporary Variables set in TC project via Visual Studio Test in TFS

Thank you Reshail.

 

Hi @TCqauser , please let us know if the suggested approach works for you. 


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Community Manager

Re: Change the Temporary Variables set in TC project via Visual Studio Test in TFS

@TCqauser any updates on your situation? Please share your progressSmiley Happy


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!