Quick load test

The Quick start section on the LoadRunner Cloud Home page lets you create tests with or without existing scripts.

Create a test using an existing script

This section describes how to create a test using an existing script, created with an external test generation tool, such as Micro Focus VuGen (Virtual User Generator). Tests that were uploaded to the LoadRunner Cloud Assets section will be available for use. For details, see Scripts.

To use an existing script for your test:

  1. Click Create a test in the Home page's Quick start section. The Load Tests tab opens.
  2. Add scripts and set the relevant options as described in Define a load test.
  3. Click Run Test in the upper right. Watch the results in the Dashboard that opens after the test initialization.

Back to top

Create a test using a HAR file

This section describes how to create a test using an HAR (HTTP Archive) file. This is the common format for recording HTTP tracing information.

Use a HAR file to create a TruAPI test to generate test results.

  1. Generate a HAR file through your browser or another external tool.

  2. In the Home tab's Quick start section, click the Create a test using a HAR file button. The Test Configuration dialog box opens.
  3. Name your test.
  4. Click Browse to add the HAR file.

    Caution: Carefully review your HAR file before you upload it, as it may contain private information, such as usernames and passwords.

  5. Set the runtime details:

    • In the WEB Vusers field, select the number of Vusers from the drop-down list.
    • In the Duration field, select a test duration from the drop-down list.
  6. Click Run Test. Watch the results in the Dashboard that opens after the test initialization.

Tip: After the test runs, you can add the script that was created from the HAR file to a new or existing test.

View Load Tests > Scripts to see the name of the script.

Back to top

Create a test using a REST call

Use a REST call to create a TruAPI test to generate test results.

  1. In the Home page's Quick start section, click the Create a REST test button.
  2. Enter the test name.
  3. Configure the test.

    Do the following:

    Action How to
    Enter the request URL Enter the request URL of your application.
    Select the call method

    Select one of the following methods:

    POST. Create

    GET. Read

    PUT. Update

    DELETE. Delete

    Enter the URL parameters

    Key. The parameter name

    Value. The parameter value

    Example: http://www.example.com/products/women?category=dressesreen

    Key= Category

    Value = dresses

    Enter the Header parameters

    Header. Header field name

    Value. Header value

    Example: Accept: text/plain

    If you select POST, PUT, or DELETE, you must also specify the payload, which is the actual data transmitted.

    Enter the payload in either Form or Raw format:

    Form

    Key. The column name.

    Value. The key value.

    Form example:

    Key = id Value = "123'

    Key = type Value = "dress"

    Key= color Value ="green"

    Raw. A string of all the values.

    Raw example

    id: "123", type: "dress", color: "green"

    Add Vusers. Select the number of vusers from the drop down list.
    Specify test duration. Enter the test duration.
  4. Click Run Test. Watch the results in the Dashboard that opens after the test initialization.

Tip: After the test runs, you can add the script that was created from the REST call to a new or existing test.

View Load Tests > Scripts to see the name of the script.

Back to top

Create a test using a CSV file

Use a CSV file to create aTruAPI test to generate test results.

Create a .csv file with the following columns:

Note: Column names are mandatory.

Column Name Description
METHOD

Select one of the following methods:

POST. Create

GET. Read

PUT. Update

DELETE. Delete

The default value is GET.

URL

Enter the request URL of your application.

HEADERS

The header is a JSON string. If this column is blank the default http header value is used.

PAYLOAD

 

Enter the payload raw format.

Raw example: id=123&type=address&color=green
TRANSACTION The name of the transaction.
THINKTIME Think time in milliseconds. Default think time is 0.

Example: .csv file

Example:

 

Download example-csv-file.csv

Create a test from a .csv file

  1. In the Home tab's Quick start section, click the Create a CSV test button.
  2. Enter the test name.
  3. Click Browse to select a .csv file.

    Caution: Carefully review your CSV file before you upload it as it may contain private information such as usernames and passwords.

Back to top

See also: