Integration with LoadRunner Cloud

LoadRunner Cloud (LRC) uses scripts to create load tests and analyze system performance. You can upload and download scripts from VuGen to LRC, and open and edit scripts that are in an LRC project.

For information about LRC, see the LoadRunner Cloud Help Center.

Tip: Check out the video: VuGen integration with LoadRunner Cloud.

Connect to LRC

After connecting to LRC, you must define the relevant tenant number and project. VuGen then stays connected to LRC until you disconnect or end the session. You can connect to only one LRC instance at a time.

To connect to LRC:

  1. Select Integrations > LoadRunner Cloud. The VuGen - LoadRunner Cloud Cloud Script Management window opens.
  2. For the Server account tab, enter the LoadRunner Cloud server address. Do not enter the tenant.
  3. Select your preferred authentication method, and then enter the relevant information:

    • Use user name and password. Enter the user name or email address you use with the LRC account, and your password.

    • Use client ID and secret. Enter the client ID and secret key used for your LRC API access key.

    • Login using the default browser. For SSO authentication, enter the email address of the user you use with the LRC account.

  4. Enter the Tenant number.

  5. If the connection to LRC is via a proxy server, expand the Configure with Proxy dropdown, and enter the relevant details.

  6. Click Authenticate. If authentication succeeds, the Project field is enabled.
  7. Select a project from the dropdown list.
  8. If you want to automatically reconnect to the LRC server when restarting VuGen, select the Restore connection on startup option.
  9. Click the Login button. VuGen logs into the specified LRC project and displays the Script management tab. The scripts contained in the project are displayed in the script table.

Tip: When VuGen is connected to LRC, a shortcut icon is displayed in the VuGen status bar. Hover over the icon to view connection details.

Back to top

Edit LRC scripts inside VuGen

You can open scripts that are saved in an LRC project, and edit them with the VuGen script editor.

Tip: After opening an LRC script, it is included in the Recent Activity area on the VuGen Start Page, providing a shortcut to quickly reopen the script.

To edit LRC scripts:

  1. Connect to the relevant project on the LoadRunner Cloud server. See Connect to LRC.

  2. In the script table, select the check boxes for the scripts you want to open.
  3. Click Open scripts. The VuGen - LoadRunner Cloud Integration window closes, and the scripts are displayed in Solution Explorer, below the currently open scripts.
  4. Edit the scripts in VuGen. When you save your changes, the changes are automatically uploaded to LRC.

    Note:  

    • If you make changes to the runtime settings for the script, a popup dialog is displayed when you save the script. You can then select to update all runtime settings changes to LRC (overwriting the global runtime settings for the script), or to update only the run logic settings, or not to update any runtime settings changes to LRC.

    • A warning message is displayed if the connection to the LRC server is lost. In this case, you can save the script locally until the connection is restored.

Back to top

Upload scripts to LRC

You can upload script files from VuGen to the selected project in LRC. VuGen automatically zips the files before uploading.

To upload scripts to LRC:

  1. Open the script or scripts you want to upload in Solution Explorer.
  2. Connect to the relevant project in LRC. See Connect to LRC.
  3. Click Upload scripts. The Upload scripts from Solution Explorer dialog box is displayed, listing the scripts you have open.
  4. Select whether to upload All files for each script, or only the Runtime files required by LRC.
  5. Select the check boxes for the scripts you want to upload.
  6. By default, the zip file is given the same name as the script. If the zip file name already exists in the target folder, this is indicated in red, and the Overwrite check box is enabled. You have two options:

    • If you want to overwrite the script file on the target, select the Overwrite check box for that script (or select Overwrite for all scripts).
    • Alternatively, change the default name in the File name (zip) column.
  7. Click Upload. The dialog box indicates whether the upload to LRC succeeded for each script.
  8. Click Close. The uploaded scripts are added to the list of scripts on the Script management tab.

Back to top

Download scripts from LRC

You can download script zip files from LRC to the VuGen machine.

To download scripts from LRC:

  1. Connect to the relevant project in LRC. See Connect to LRC.
  2. In the script table, select the check boxes for the scripts you want to download.
  3. Click Download scripts. The Browse for Folder dialog box is displayed.
  4. Browse to the required folder and click OK. (If a file with the same name already exists, VuGen asks whether to overwrite the file.)

    The dialog box indicates if the download succeeded for each script.

Back to top

See also: