Preparing for Running LoadComplete Tests

Applies to LoadComplete 4.97, last modified on May 20, 2019

Before running tests from Jenkins, install the LoadComplete Jenkins plugin and configure your slave nodes.

Requirements

  • Jenkins version 2.121.1 or later.

  • One of the supported Windows versions installed on your Jenkins nodes.

  • LoadComplete version 4.95 or later installed on your Jenkins nodes.

  • A LoadComplete license must be available on your Jenkins nodes.

    Note: You can use a Floating User or a Node-Locked license. Select a Floating User license if you use a dynamic testing environment. You will activate the license on a computer in your network (a license server) and configure LoadComplete instances on Jenkins nodes to connect to this server.

Installing LoadComplete Jenkins Plugin

Online installation

  1. In Jenkins, go to Manage Jenkins > Manage Plugins.

  2. Switch to the Available tab.

  3. Find LoadComplete support plugin and click Install without restart.

    Tip: Press Ctrl+F and search through the page for LoadComplete keyword to find the plugin faster.

Offline installation

  1. Download a LoadComplete Jenkins Plugin .hpi file from the Jenkins Wiki page.

  2. In Jenkins, go to Manage Jenkins > Manage Plugins.

  3. Switch to the Advanced tab.

  4. Click Choose File in the Upload Plugin section.

  5. Select the plugin file on your device.

  6. Click Upload.

When the installation is finished, switch to the Installed tab to make sure that the LoadComplete plugin was installed successfully:

The LoadComplete plugin

Click the image to enlarge it.

Configuring Jenkins Nodes

Before running LoadComplete tests on slave computers, configure them as Jenkins nodes:

  1. Create a new Jenkins node.

    See instructions

  2. Connect to slave nodes. You can do it in one of the following ways:

    • Launching Jenkins Slave Agent via Java Web Start

      See instructions

    • Launching Jenkins Slave Agent as Windows Service on Slave

      See instructions

    We recommend using Java Web Start to connect to slave nodes, because you may encounter a large number of issues when connecting them as a windows service.

Known Issues

  • Currently, you may be unable to apply LoadComplete settings (those that differ from the default ones) if you started LoadComplete from Jenkins. This happens because LoadComplete launched by the LoadComplete Jenkins plugin is run by the SYSTEM account, but if you change the settings directly in LoadComplete, it will save them to the User account. As a workaround, you can replace the file containing LoadComplete settings on your Jenkins node with the file containing previously configured LoadComplete settings:

    1. Open LoadComplete on any of the machines and configure it as needed.

    2. Close LoadComplete to save the changes. The settings are saved automatically to the following file:

      C:\Users\<User name>\AppData\Local\SmartBear\LoadComplete\4.0\tcSettings.xml

    3. Replace the settings file on your Jenkins node with the settings file saved at the previous step.

      The settings that LoadComplete uses being launched under the SYSTEM account reside at:

      On a 64-bit version of Windows:

      %SYSTEMROOT%\SysWOW64\config\systemprofile\AppData\Local\SmartBear\LoadComplete\4.0\tcSettings.xml

      On a 32-bit version of Windows:

      %SYSTEMROOT%\system32\config\systemprofile\AppData\Local\SmartBear\LoadComplete\4.0\tcSettings.xml

      Note: You can do this manually, or you can add a build step to your Jenkins job that will do this automatically.
  • To get values of LoadComplete performance counters on your Jenkins node, the user account under which a Jenkins slave agent is running must have permissions to retrieve data on the monitored server. The data cannot be retrieved from performance counters if LoadComplete is running under the SYSTEM account.

See Also

Integration With Jenkins
Running Load Tests
Viewing LoadComplete Test Results in Jenkins

Highlight search results