Install and configure an OPLG on Windows

Install and configure an on-premises load generator (OPLG) on Windows to run load tests from your local network.

Caution: Installing an OPLG on a machine running other OpenText performance or functional testing products is not supported.

System requirements

For Windows OPLG system requirements, see Support Matrix.

Prerequisites and limitations

The following prerequisites and limitations apply to OPLGs.

Item Details
.NET 3.5

If your scripts require .NET 3.5, manually install or enable it on the OPLG machine.

WSE

If your scripts require Web Services Enhancements (WSE), manually install WSE 2.0 SP3 and WSE 3.0 for Microsoft .NET. Both require .NET 3.5.

Axis

If your Web Services scripts require the obsolete Axis toolkit, manually copy the Axis files to %LG_PATH%\bin\java\Axis. You can download the Axis files from the OpenText Support Portal.

Date and time

Make sure the date and time on the OPLG are correct.

Tip: Synchronize the machine clock with an Internet time server.

Connectivity

The OPLG machine must be able to access the OpenText Core Performance Engineering SaaS servers and cloud machines. Enable outbound HTTPS communication over port 443.

If your company's security or firewall requires static IP addresses for allowed lists, submit a service request to obtain the IP addresses. For details, see Dedicated IP addresses.

One test per OPLG

An OPLG can run only one test at a time.

Vusers

The number of Vusers in an on-premises load test cannot exceed the maximum allowed by your license.

Security

Make sure the operating system and protocol prerequisites, such as JDK and .NET, have the latest security updates.

Multiple IP addresses

Make sure that the required number of valid IP addresses have been allocated on the relevant OPLG.

For details on working with multiple IP addresses, see Enable multiple IPs for cloud and on-premises load generators.

Install an OPLG

OneLG is the load generator installer for OpenText Performance Engineering products. During installation, select OpenText Core Performance Engineering to apply the appropriate configuration.

Before installation, prepare the OPLG and copy its key as described in Prepare an OPLG.

To install an OPLG:

  1. On each machine where you want to install an OPLG, go to Tools and integrations > Agents > OPLG and download the installation package.

  2. Extract SetupOneLG.zip.

  3. Make sure Windows Script Host access is enabled on the OPLG machine.
  4. Run SetupOneLG.exe as an administrator.

  5. Follow the installation wizard:

    1. Extract the installation packages to a temporary folder.

    2. Install the required prerequisites when prompted.

    3. Accept the license agreement and specify the installation location.

    4. In OneLG Configuration, select OpenText Core Performance Engineering, and click Install.

  6. When installation is complete, the installer creates the Configure Load Generator and Start Load Generator shortcuts and opens the configuration tool. To configure the OPLG later, close the tool.

  7. Configure the OPLG. For details, see Configure an OPLG.

  8. Start the OPLG from Start > ... > Start Load Generator. For best results, run the OPLG as an administrator.

Note:  

  • The OPLG and OpenText Core Performance Engineering server can communicate only after the OPLG is configured.

  • To run JMeter or Gatling scripts, select Install JMeter/Gatling after installation during installation.

  • If installation fails because of insufficient disk space, see Troubleshoot OPLGs.

Configure an OPLG

The OPLG configuration tool lets you configure Windows on-premises load generators.

The configuration tool opens automatically when you install an on-premises load generator. If you skip the configuration, open the tool manually by selecting Configure Load Generator from the Start menu on the load generator machine.

General tab

Enter the load generator key, tenant ID, and credentials. For details on creating credentials, see Create access keys.

After you enter the required settings, click Save & Test to save the configuration and test the connection.

The following table describes the settings on the General tab.

Item Description
Key

An on-premises load generator key is created when you add an on-premises load generator in Assets > Load Generators.

OPLG Key information box

Credentials

Your OpenText Core Performance Engineering client ID and client secret.

Note: For tenants created in version 24.3 or earlier, username and password authentication continues to work, although this method has been deprecated and will no longer be valid once enforcement begins in a future release.

Tenant Your tenant ID.

Misc tab

The following table describes the server, proxy, and logging settings on the Misc tab.

Item Description
Proxy

Specify the proxy URL. The URL should include the protocol, host name, and port number.

Example: http://myproxy.region.software.com:8080

Server

Specify the URL of the server used to access OpenText Core Performance Engineering. Copy the server URL from the browser address bar. For example, if the browser URL is https://myserver.com/home/?TENANTID=208294383&projectId=1, use https://myserver.com.

Log level

Specify the level of log reporting.

  • debug
  • info
  • warn
  • error
Advanced

If your proxy requires authentication, select the Advanced tab to enter your credentials.

Environment tab

The Environment tab shows a list of the versions of agent components.

Update tab

The following table describes the version information and update controls on the Update tab.

Item Description
Current version The version of the OPLG configuration tool currently installed.
Check for updates Check for available updates to the OPLG configuration tool.
Download Download the latest version of the OPLG configuration tool.

Options tab

The Options tab lets you define parameters and their values for customization and debugging.

The following table lists common configuration options.

Configuration option Description Values
SRL_AGENT_KEEP_VUSER_LOGS

Retain Vuser log files. The logs are stored on the load generator machine, in a subfolder with the inj_o_ prefix under the %TEMP% folder.

Note: Retaining these log files uses a lot of disk space. Deactivate this option when it is no longer needed.

True/False
SRL_AGENT_LOAD_EXTRA_CERTS

Load additional security certificates. For details, see Certificate issues.

True/False
SRL_AGENT_DISABLE_TLS_1_3 Deactivate TLS 1.3. For details, see TLS 1.3. True/False
no_proxy If you have configured the use of a proxy in the Misc tab, you can define specific hosts to be bypassed by the proxy. You can enter multiple values separated by commas.

Domain name or IP address

For example:

172.28.240.1, myserver1, appserver.testing.com

To apply your changes, save the configuration and restart the agent.

For more information, see Troubleshoot OPLGs.

Run the OPLG as a service

This section describes how to run an OPLG as a service.

To run the OPLG as a service:

  1. Open Windows Task Scheduler (Control Panel > Administrative Tools > Schedule tasks).

  2. Create a task that automatically starts the OPLG agent at system startup. The agent executable is
    %LG_PATH%\testexec.server\stormagent\bin\start_stormagent.cmd

    You can also find the file location from the desktop shortcut.

Update an OPLG

This section describes how to update an OPLG to the latest version.

Upgrade from version Description
2020.07 or later

If the machine already has OPLG version 2020.07 or later:

  1. Go to Tools and integrations > Agents > OPLG, download the installation package, and extract its contents.

  2. Close the existing OPLG agent and make sure all agent processes are terminated.

  3. Install the new version. No backup, uninstall, or restart is required. For details, see Install an OPLG.

  4. If a patch is available for the current version, it is displayed in the OPLG section of Agents. Install the full OPLG version before installing its patch.

2020.05 or earlier

If the machine already has OPLG version 2020.05 or earlier:

  1. (Optional) Back up sample_conf.json, located in <installation_folder>\testexec.server\stormagent\.

  2. Go to Tools and integrations > Agents > OPLG. Download the installation package zip file and extract its contents.

  3. Uninstall the old version. For details, see Uninstall an OPLG.

  4. Reboot the machine.

  5. Close the existing OPLG agent and make sure all agent processes are terminated.

  6. Install the new version. For details, see Install an OPLG.

  7. (Optional) If you backed up the old OPLG's sample_conf.json file, copy it to the new installation, overwriting the new, empty configuration file. The new file is located in:: C:\Program Files\<installation_folder>\testexec.server\stormagent\.

Tip: Check Tools and integrations > Agents for available patches for the current OPLG version.

Silent installation

A silent installation lets you automate OPLG installation and updates on multiple remote machines without signing in to each machine and installing the OPLG manually.

Prerequisites

The following are the prerequisites for performing a silent installation.

Prerequisite Details
NET 4.8

If .NET 4.8 is not installed on the OPLG machine, install it before performing a silent installation. Otherwise, you must restart the machine and run the silent installation again.

Termination of existing processes

Close the existing OPLG agent and make sure all agent processes are terminated. Running agent processes may prevent the installer from updating the agent.

To perform a silent OPLG installation:

  1. Open a Windows command line as an administrator.

  2. Enter the command for your installation type.

    Installation type Command
    Silent installation

    For a basic silent installation only, enter the command:

    SetupOneLG.exe -s -sp"/s INSTALLDIR=C:\LoadRunnerCloudOneLG IS_RUNAS_SERVICE=2 NVINSTALL=N"

    Silent installation to a location path that includes a space

    To perform a silent installation in a location where the path name includes a space, enclose the path name with double quotes.

    SetupOneLG.exe -s -sp"/s INSTALLDIR=""C:\Program Files (x86)\LoadRunnerCloudOneLG"" IS_RUNAS_SERVICE=2 NVINSTALL=N"

    Silent installation and configuration

    To configure an OPLG as part of the silent installation, you can set the LRC_PARAMS parameter to the full path of a YAML file that contains the configuration options. For details, see YAML file configuration options.

    SetupOneLG.exe -s -sp"/s INSTALLDIR=C:\LoadRunnerCloudOneLG IS_RUNAS_SERVICE=2 NVINSTALL=N LRC_PARAMS=C:\Temp\config.yml"

    Enable JMeter or Gatling

    To run JMeter or Gatling scripts on the OPLG, you can install JMeter or Gatling as part of the installation by adding INSTALL_JMETER=1 or INSTALL_GATLING=1 to the installation command.

    SetupOneLG.exe -s -sp"/s INSTALLDIR=C:\LoadRunnerCloudOneLG IS_RUNAS_SERVICE=2 INSTALL_JMETER=1 INSTALL_GATLING=1 NVINSTALL=N"

  3. (Optional) Configure the OPLG automatically after installation.

    • If the machine did not have an OPLG installed prior to the silent installation, copy sample_conf.json you previously saved to %LG_PATH%\testexec.server\stormagent\. If you copy the configuration file from an existing machine with a configured OPLG, modify the key field accordingly, because the same key cannot be used by multiple OPLGs.

    • If the machine had an OPLG installed prior to the silent installation, no action is required. The installer automatically upgrades the existing OPLG and backs up the %LG_PATH%\testexec.server\stormagent\sample_conf.json file. At the completion of the silent installation, the OPLG configurations are automatically stored.

YAML file configuration options

The following configuration options are defined in the YAML file.

Field Description Example
tenant Tenant ID ‘123456789’
key OPLG key ‘2fc1f0632fa263f9bd49’
username Client ID ‘<client_ID>’
password Client secret ‘<client_secret>’
server Your OpenText Core Performance Engineering server. https://loadrunner-cloud.saas.microfocus.com
proxy Proxy server address and port ‘http://<your proxy server>:<port>’
logLevel Log level (info, error, debug, warn) ‘info’
options Additional options

option1: true

option2: true

You can copy the following code into your YAML file and then change the values for your OPLG:

Copy code
tenant: '123456789'
key: '2fc1f0632fa263f9bd49'
username: '<client_ID>'
password: '<client_secret>'
server: 'https://loadrunner-cloud.saas.microfocus.com'
proxy: 'http://<your proxy server>:<port>'
logLevel: 'info'
options:
  option1: true
  option2: true

Uninstall an OPLG

In Windows > Add or remove programs, locate the OPLG version you want to remove and uninstall it.

See also