Showing posts with label testing. Show all posts
Showing posts with label testing. Show all posts

Monday, March 22, 2010

Authentication for Coded VSTS Web Tests

To set credentials for a Visual Studio WebTest programatically, simply add the following to the class that extends WebTest:

this.UserName = "domain\\user"
this.Password = "pass"

Tuesday, February 16, 2010

Changing a VSTS Agent's Controller

The controller pointed to by a Visual Studio Team Test Agent can be changed with AgentConfigUtil.exe. ie (from powershell):
. ${env:ProgramFiles(x86)}\*Test*Load*Agent\LoadTest\AgentConfigUtil.exe /controller:(machine)

You should then restart the Visual Studio Team Test Agent service:
net stop “Visual Studio Team Test Agent”
net start “Visual Studio Team Test Agent”