Git integration

You can integrate Git with LoadRunner Cloud enabling you to upload scripts from your Git repository.

Install the LoadRunner Cloud Git agent

The LoadRunner Cloud Git Agent connects your Git repository to your LoadRunner Cloud tenant.

Before you start :

Supported OS

Windows x64

Install Git Git download

Do the following to install and configure the LoadRunner Cloud Git Agent:

Action How to
Download and install the agent
  1. Download the Git agent from the Home > Get tools > Agents page.
  2. Extract the downloaded package and run LoadRunnerCloudGitAgentSetup.exe to install the agent.
Configure the agent
  1. The Git Agent Configuration tool is automatically started when the agent installation is completed.

    To run the configuration tool manually at any time, go to Start > LoadRunner Cloud - Git Agent > right click Configure Git agent and select Run as administrator to open the LoadRunner Cloud Git Agent Configuration tool.

  2. On the General tab enter:
    1. An agent name
    2. Your username and password
    3. Your tenant id
    4. Your project id

  3. On the Misc tab:
    1. To use a proxy other than the one shown, enter your proxy URL.

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

    2. Enter the details of the LoadRunner Cloud server.

    3. Select a log level.

    4. Select the interval at which the LoadRunner Cloud agent will poll the server (every 5 seconds, every 10 seconds, or every 20 seconds).

  4. On the Git tab :

    The Git agent enables you to configure multiple repositories and repositories with multiple branches. For each repository or branch you want to add, click to open a dialog box where you:

    1. Enter the repository URL.

      Tip: To configure credentials for a private repository, click Advanced.

    2. Click Retrieve to retrieve all the branches.

    3. Select branches from the drop-down list.

    4. Click OK.

Launch the agent Go to Start > LoadRunner Cloud - Git agent > Start Git agent.

Back to top

Manage scripts in your Git repository

Select Assets > Scripts.

Do the following to add or update scripts from your Git repository to LoadRunner Cloud:

Action How to
Access the Git repository

Click and select Upload from Git to open the Git repository dialog box.

Select an agent

From the drop-down menus, select the agent, repository, and branch that connect to the script repository you want to use.

For details on managing your Git agents, see Agents.

If you want all the scripts that are uploaded from the repository to be configured for auto sync, select the Auto Sync check box. You can also individually configure scripts for auto sync. For details, see Sync Git scripts .

Select a script

Select one or more scripts from the Git repository. Click Add.

Sync Git scripts

You can sync Git scripts both manually and automatically.

To sync Git scripts manually:

  1. Select .

  2. Select the scripts you want to sync.

  3. Click to sync your scripts with the Git repository.

Note: When you manually sync a Git script, runtime settings configured for the script in LoadRunner Cloud are not retained.

To sync Git scripts automatically:

Select the Auto Sync check box for the scripts you want to be synced automatically.

When a change to a script is made in the repository and the script is subsequently automatically updated in LoadRunner Cloud, a message is added in the notifications area in LoadRunner Cloud.

Note:

  • Automatic sync of Git scripts is supported for Git agent version 2019.12 or later.
  • When you automatically sync a Git script, runtime settings configured for the script in LoadRunner Cloud are retained.

Back to top

See also:

  • Blog: Git integration in LoadRunner Cloud - managing your testing scripts in Git