Team System Developer Center > Visual Studio Team System Forums > Visual Studio Team System - Testing > How to: Run UnitTest by using another users permission
Ask a questionAsk a question
 

AnswerHow to: Run UnitTest by using another users permission

Answers

All Replies

  • Monday, November 02, 2009 6:26 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello webnt,

    You can set up a group of computers that generates simulated load for testing. The group consists of a single controller and one or more agents, so there will not be more than one controllers.

    In the Controller drop-down combo box of the Administer Test Controller dialog box, type the name of the computer on which you have set up the controller. If you have administered a specific controller previously, you can select the name from the list.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Monday, November 02, 2009 6:42 AMwebnt Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Edwer !
    I got the answer about how to set a group, but "controller", I still have doubts ---- "The group consists of a single controller and one or more agents, so there will not be more than one controllers." What's the controller?
  • Monday, November 02, 2009 6:48 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    In a group, there will only be one controller. The controller is the part of the rig that is used to coordinate the agents and collect the test results. The controller provides a general architecture for running tests, and includes special features for running load tests. The controller sends the load test to all agents and waits until all the agents have initialized the test. When all agents are ready, the controller sends a message to the agents to start the test.

    For more information, you can refer to the following articles:
    http://msdn.microsoft.com/en-us/library/ms243155.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Monday, November 02, 2009 6:59 AMwebnt Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    How to set the controller ?

    Could it be more detail ?

    It is hard to understand such the below example.

    "You can configure the controller to select agents based on the properties of the agent, for example, the operating system installed on the agent. You do this on the Controller and Agents tab of the run configuration file. For more information, see How to: Specify a Test Run Configuration."
  • Monday, November 02, 2009 7:37 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    If you choose to run tests remotely which means tests run with controller and agents, first you need to install controller and agents, then right-click the .testrunconfig file under solution node in solution explorer and choose 'Contrller and Agents', check the radiobutton of 'Remote', enter or select the controller in the dropdownlist, under the dropdownlist, you can set names and values for properties of agents which will be used to run the tests. Then go to Test->Administer Test Controller, in the prompted dialog, you can specify names and values for properties of an agent. If an agent being used has the properties set in the testrunconifg file above, the test or tests you are running will use that agent. If no agent has the properties that were requested, the test run will fail.

    I suggest you go over the articles listed under the Controllers, Agents, and Rigs node.
    http://msdn.microsoft.com/en-us/library/ms182634.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Monday, November 02, 2009 9:01 AMwebnt Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    AS Edwer said,  there isn't any Controller in my "Administer Test Controller", so to find how to set up the Controller, but it seems the document is only for VS 2005, but I used VS2008.

    "Setting Up the Controller and Agent Functionality"
    http://msdn.microsoft.com/en-us/library/ms182635.aspx



    You set up your controller and agents by using the installation file located on the Microsoft Visual Studio Team System Test Load Agent installation disk. The file is named setup.exe and is located at the root of the CD.
    • Marked As Answer bywebnt Tuesday, November 03, 2009 2:35 AM
    •  
  • Monday, November 02, 2009 9:22 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello webnt,

    The detailed steps about installation of rig are almost the same between VS2005 and VS2008. You can open the installation guide by clicking the link on the first page of the setup application, or by opening the file installguide.htm located at the root of the CD.

    Here is the trial of VSTS2008 Test Load Agent.
    http://www.microsoft.com/downloads/details.aspx?FamilyID=572e1e71-ae6b-4f92-960d-544cabe62162&displaylang=en

    In addition, this blog article also offers great information about installation:
    http://blogs.msdn.com/edglas/pages/load-agent-and-load-controller-installation-and-configuration-guide.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
    • Marked As Answer bywebnt Tuesday, November 03, 2009 2:35 AM
    •  
  • Monday, November 02, 2009 9:45 AMwebnt Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It displayed maintenance mode, and unfortunately happend to error.

    Anyway, thank you all the same!

    谢谢!