Wednesday, 19 December 2018

Stormrunner-load and Git Integration

Introduction

This page details the software required and steps involved for Stormrunner-load integration using Git.

Setup Required

  1. Install Git Desktop client
  2. Install StormRunner Load Git Agent










3. Git public/ private Repository

    Configure Git Local Repository 

    1. In Git Desktop Client, File> New Repository
    2. Provide Name and path to local folder, this serves as local repository and will contain all the scripts. Ensure that Name of folder and repository name are same.
    3. Hit Create Repository
    4. File > Options and enter the Git account details to configure the remote repository
    5. To Mirror the folder in the Git account, enter comments in the highlighted field and Hit Commit to Master. (To commit to master, comments are necessary)
      and hit Publish Repository.
















    6. Login to Git account and confirm that the folder is created



    Configure SRL Git Agent

    Launch the SRL Git agent and enter the details.
    Leave the key field empty.
    Enter the credentials used to log into SRL and fill the Tenant and project Id.
    Provide proxy details with authentication parameters as required. In this case we left proxy field blank.


    Click + in Git tab to launch Repository Configuration window
    Enter repository URL to which scripts will be uploaded.
    Provide repository credentials in Advanced field.
    Click Retrieve, to retrieve remote repository branch.
    Click Ok.
    Click Save & Test and ensure that connection is successful.







    Launching SRL agent

    Launch Start SRL Git Agent, as root user/ local admin.
    This should launch a command prompt


    In SRL > Assets > Agents. You should see something as highlighted
    In SRL > Assets > Scripts. Click Caret, next to Upload and you should see
    Upload & Upload from Git.

    Upload the scripts to SRL


    Save the scripts to local repository in the desktop. (Always delete the results folder from scripts before commit)
    In Git hub Desktop Client, commit to Master and Push to Origin.
    (optional - In GitHub on web, check to see if scripts are updated with your commit comments.)
    (wait for few minutes)
    In SRL Assets > Scripts > Upload from Git 
    You should see a pop up like this.
    Select Script and click Add.
    Configure script to a scenario and apply RTS as required.


    Sync the scripts to SRL

    Save the modified scripts to local repository in the desktop. (Always delete the results folder from scripts before commit)
    In Git hub Desktop Client, commit to Master and Push to Origin.
    (optional - In GitHub on web, check to see if scripts are updated with your commit comments. )
    (wait for few minutes)
    In SRL Assets > Scripts, search for script that you want to sync.
    Select script and Hit Sync Selected. Hit Sync in the popup.
    Page refreshes and now select script to check the Last update time.
    This should reflect the latest time as there are code changes
    *if no code changes are published to Git, then the Last update time, will not change.


    Note: Always delete the results folder from scripts before commit.The files types that are to be excluded to commit can be configured in the Git Desktop client.

    No comments:

    Post a Comment

    How to create multiple client certificates and use them in JMeter script

    Client authentication/ mutual authentication / Two-way SSL are typically implemented when the client device is expected to authenticate to ...