Configuring Terminal Services Settings - LoadRunner

You can use LoadRunner’s Terminal Services Manager to remotely manage multiple load generators running in your load testing scenario on a terminal server. In addition, you can use a terminal server to overcome the limitation of being able to run only a single GUI Vuser on a Windows-based load generator. By opening a terminal server session for each GUI Vuser, you can run multiple GUI Vusers on the same application.

About Terminal Services

Terminal services allows centralized management of computing resources for each client connected to the server, and provides each user with their own working environment. Using a terminal server client, you can operate in a server-based computing environment from a remote machine. The terminal server transmits applications over the network and displays them via terminal emulation software. Each user logs on and sees only their individual session, which is managed transparently by the server operating system, independent of any other client session.Examine the following diagram to understand how the LoadRunner components work together during a terminal session.

Configuring Terminal Services Settings

Terminal Services Manager

A terminal server client can have multiple terminal sessions running simultaneously. Using LoadRunner’s Terminal Services Manager, you can select the number of terminals to be used in your scenario (provided that you have sufficient terminal sessions running), and the maximum number of Vusers that can be run per terminal. The Terminal Services Manager then evenly distributes the number of virtual users among the client sessions.
To use LoadRunner’s Terminal Services Manager:

  • Set up the terminal server agent on the Load Generator machine
  • Launch a terminal client session on the Controller machine.
  • Distribute Vusers on the terminal server using the LoadRunner Terminal Services Manager.

Setting up the Terminal Server Agent

Before you set up the terminal server agent on the Load Generator machine, make sure that a Load Generator has been installed on the Terminal server machine. For more information, refer to the LoadRunner Installation Guide.

To set up the Terminal Server Agent on the Load Generator Machine:

  1. Stop the LoadRunner agent by right-clicking its icon in the system tray and selecting Close.
  2. Run Agent Configuration from Start > Programs > Mercury LoadRunner > Advanced Settings, or run <LR>launch_servicebin Agent Config.exe. The Agent Configuration dialog box opens.

    set up the Terminal Server Agent on the Load Generator Machine

  3. Select the Enable Terminal Services check box. If you are also running or monitoring Vusers over a firewall, select the Enable Firewall Agent check box, and then click Settings. Click OK.
  4. Restart the LoadRunner agent as a process by double-clicking the shortcut on the desktop, or from Start > Programs > Mercury LoadRunner > LoadRunner Agent Process.

Launching a Terminal Client Session

A terminal services client must be installed on the Controller machine before you can launch a terminal client session. For more information on installing a terminal services client, refer to the installation documentation for your Terminal server.

To open a Terminal Client session on the Controller machine:

  1. Select Start > Programs > Terminal Services Client > Terminal Services Client. The Terminal Services Client dialog box opens.

    open a Terminal Client session on the Controller machine

  2. In the Server box, type the name or IP address of a terminal server, or select a terminal server from the list of available servers.
  3. In the Screen Area box, select a window size for the terminal client.
  4. Click Connect. The Windows logon dialog box opens.

    Launching-a-Terminal-Client-Session

  5. Enter your username, password, and domain name (if required) for the terminal server, and then click OK. A terminal client window opens.
  6. Repeat steps 1 and 2 to open the number of sessions required.

Distributing Vusers on the Terminal Server

Select the Terminal Services tab to distribute Vusers running in your load testing scenario on a terminal server.

Distributing Vusers on the Terminal Server

Name: The name of the Terminal server. You only need to add the name of the terminal server to the Load Generators list once, regardless of the number of instances that you intend to run.

Platform: The type of platform on which the load generator is running.

Temporary Directory: Type a location, on the load generator, where the Controller can store temporary files. By default,LoadRunner stores temporary files on the load generator during scenario execution, in a temporary directory specified by the load generator’s TEMP or TMP environment variables.

Enable Terminal Services Manager: Enables the Terminal Services settings to be applied to load generator running on the terminal server.

Number of terminals: Enter the number of terminals that you want to use in your load test. Note that you must open a terminal client session for each terminal that you want to run Vusers on during the scenario.

Maximum number of Vusers per terminal: Enter the maximum number of Vusers that you want to run on each terminal. The maximum number of Vusers per terminal depends on the Vuser type used in the script.

Defaults: Sets the number of terminals to two, and the maximum number of Vusers per terminal to 50.

Troubleshooting

Check the connection between the Controller and the load generator on the terminal server. In the Controller, select the load generator in the Load Generators dialog box, and click Connect. The status changes from Down to Ready when the load generator is connected. If there is no connection, check that the LoadRunner agent icon appears in the system tray of the terminal server. This indicates that the agent is running. Restart the LoadRunner agent if necessary from Start > Programs > Mercury LoadRunner > LoadRunner Agent Service/Process.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

LoadRunner Topics