I am setting up a load test controller and agents. I followed these guidelines:
Setting up the controller and agents was quite straightforward. Both of these services run under a local user named "LoadTest" which is member of the local Administrators group.
As the next step, Create a new Test Setting that Uses the Test Controller and Test Agents and Data and Diagnostic adapters, I added a new "Test Settings" file to the solution items of my Visual Studio 2010 solution. Thereby I fail when trying to define the controller to be used in the Roles tab:
I entered "localhost:6901" as the controller, then a warning icon appeared to the right. If I hover over that, it says:
Cannot connect with controller 'localhost'. If the controller service is not started you may be able to start it by clicking the restart rig button.
The following error was received: You do not have the appropriate permissions to perform this action.
I am running Visual Studio in my personal user account, which is different to the user that runs the test controller ("LoadTest"). But I reckon that this should be the normal usage scenario. Further, me as well as the "LoadTest" user are members of the administrators group.
Can anybody tell me why this wouldn't work?
To use the LoadTesting namespaceOpen a web performance and load test project that contains a load test. Add a Visual C# or a Visual Basic class library project to your test solution. Add a reference in the web performance and load test project to the class library project. Add a reference to the Microsoft.
The test controller object exposes the test API's methods. The test controller is passed to each function that can run server-side test code (like test, beforeEach or afterEach). Use the test controller to call test actions, handle browser dialogs, use the wait function, or execute assertions.
I found the "Troubleshooting Guide for Visual Studio Test Controller and Agent" which says:
2.2.1. Permissions: Test Controller not connected to TFS server:
- To run tests remotely, Client user must belong to either TeamTestControllerUsers, or TeamTestControllerAdmins, or Administrators local group on Controller machine.
- To manage Controller/Agent, Client user must belong to TeamTestControllerAdmins or Administrators local group on Controller machine.
- Agent service account must belong to either TeamTestAgentService or Administrators local group on Controller machine.
- Controller service account must belong to either TeamTestControllerUsers or Administrators local group on Controller machine.
- Service accounts with empty/no passwords are not supported.
Even though my personal user account already is in the local Administrators group, this seems not to suffice though. So I added the user to the TeamTestControllerUsers group, too, and that fixed it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With