Run SAP GUI Scripts from the Controller
The following steps describe tips for running SAP GUI scripts in a LoadRunner scenario.
LoadRunner Controller Settings
When working with a LoadRunner scenario, set the following values when running your script in a load test configuration:
Ramp-up. One by one (to insure proper logon) in the Scheduler.
Think time. Random think time in the runtime settings.
Make Sure the Agent is Running in Process Mode
Make sure that the LoadRunner (or Performance Center) Remote Agent is running in Process mode. Service mode is not supported.
To check this, move your mouse over the agent's icon in the Windows task bar area, and read the description. If the description reads Load Testing Agent Service, it is running as a service.
The following steps describe how to restart the agent as a process.
Stop the agent. Right-click the LoadRunner Agent icon and select Close.
Run magentproc.exe, located in the launch_service\bin folder, under the LoadRunner installation.
To make sure that the correct Agent is launched the next time you start your machine, change the Start type of the Agent Service from Automatic to Manual. Then add a shortcut to magentproc.exe to the Windows Startup folder.
Terminal Sessions. Machines running SAP GUI Vusers may be limited in the number of Vusers that can run, due to the graphic resources available to that machine. To increase the number of Vusers per machine, open additional terminal server sessions on the Load Generator machines. Select Agent Configuration from Start > All Programs > <product_name> > Advanced Settings, and select the Enable Terminal Service option. You specify the number of terminal sessions in the Load generator machine properties. For more information, see LoadRunner Terminal Services Manager.
Note: When the LoadRunner Agent is running in a terminal session, and the terminal session's window is minimized, no snapshots will be captured on errors.