Reputation: 17
I can able to set or modify context parameter in VS webtest via command prompt.
Command used in command prompt to change the context parameter in Visual studio webtest: Set Test.URL="http://google.com".
Upvotes: -2
Views: 707
Reputation: 17
Should run
"setx Test.WebServer1 "http://www.google.com" -m"
in powershell to change the value of context parameter in webtest.Once after running the above command,close and open the powershell and try running the .MSTEST.exe. Post if any queries.
Upvotes: 0
Reputation: 14038
An environment variable with name starting "Test.
" will be copied to context parameter. For example if the environment variable Test.ForWebTest
is set to the value ForMyWebTest
then the Visual Studio web test context parameter ForWebTest
will be set to the value ForMyWebTest
.
See here for additional details.
Remember that the environment variable must be set before the test starts and in an environment that the test will inherit.
Upvotes: 0