3 min read time

How to utilize Quick Start Load Test in StormRunner Load

by   in DevOps Cloud (ADM)

Claire.PNG

 

Guest post by Qiu-Yue Jiang (Claire), StormRunner R&D

Quick Start is one of the many remarkable features supported by Micro Focus StormRunner Load cloud load testing software. This feature is designed for those who want to explore StormRunner Load without having to create supported protocol scripts first. Quick Start is also a good option for those who have no basic knowledge of supported protocol scripts (such as TruClient, Web HTTP/HTML, JMeter, Gatling etc.).

With only having to configure a few values about your test and AUT, you can start running a load test within a few seconds. Using the Quick Start feature, StormRunner Load generates a TruAPI protocol script when the test is created.

Quick Start provides the following three options to define and run a test:

  1. HAR – Use a HAR(HTTP Archive) file
  2. REST - Use the REST API
  3. CSV – Use a CSV file

How to start a run using Quick Start   HAR Option:

HAR (HTTP Archive format) is a JSON-formatted archive file for logging a web browser’s interaction with a site. It saves the HTTP transaction data that can be used for analysing web page performance.

Define and run a load test using HAR

  1. Prepare a HAR file.

The HAR file can be generated by using various software, including: Firebug, Fiddler, IE, Firefox, Chrome etc. In this example, we’ll use the Chrome browser to generate a HAR file.

a. Open the Chrome developer tool (F12 key) and select the Network

b. Navigate to the AUT and wait for the page to be fully loaded.

c. Right click the AUT in the developer tool and then click Save as HAR with content.Save as HAR with content.png

 

 

2. Navigate to the StormRunner Load Home page and click the Create a test using a HAR fileSRL Quick Start.png

 

 

3. Configure the following in the dialog box that opens:

  • Test name: Define a name for your test (user defined)
    • Upload the HAR file
    • Configure Vusers and durationHAR Test file configuration.png

       

 

4. Click the Run Test button to run a test.

 

REST Option: REST stands for Representational State Transfer. It is an architectural style of providing interoperability between computer systems on the internet. Web service APIs that adhere to the REST architectural constraints are called RESTful APIs. It uses HTTP requests to GET, PUT, POST and DELETE data.

 

Define and run a load test using REST

  1. Navigate to the StormRunner Load Home page and click the Create a REST testCreate a rest test quick start.png

     

 

2. Configure the following in the dialog box that opens:

  • Test name: Define a name for your test (user defined)
    • REST URL: Enter your AUT REST URL and the appropriate method for it
    • Add parameters, headers or the payloads if required [Optional]
    • Configure Vusers and durationCreate REST test 2.png

       

 

3. Click the Run Test button to start a normal TruAPI run by a REST call.

CSV Option: CSV is a common data exchange format.  Among its most common uses is moving tabular data between programs that natively operate on incompatible formats.

 

Define and run a load test using CSV

1. Create a CSV file based on the format below.Method URL.PNG

 

 

 

2. Navigate to the StormRunner Load Home page and click the Create a CSV testCreate a CSV file.png

 

 

3. In the dialog box that opens, configure the following:

  • Test name: Define a name for your test (user defined)
    • Upload the CSV file
    • Configure Vusers and durationCSV file test configuration.png

       

 

4. Click the Run Test button to start a normal TruAPI run by a CSV file.

For more details visit the StormRunner Load help page.

Labels: