Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Load Test: Cannot connect to test controller

I am setting up a load test controller and agents. I followed these guidelines:

  • Installing and Configuring Visual Studio Agents and Test and Build Controllers
  • Walkthrough: Using a Test Controller and Test Agents in a Load Test - Setting up the load test to use the controller.

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:

Roles tab of the Test Settings

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?

like image 389
chiccodoro Avatar asked Jul 05 '11 07:07

chiccodoro


People also ask

How do I load a test API in Visual Studio?

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.

What is a test controller?

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.


1 Answers

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.

like image 85
chiccodoro Avatar answered Oct 07 '22 10:10

chiccodoro