Quick load test

Generate test results without creating scripts by using HTTP network methods.

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. From the LoadRunner Cloud Home page, click the Create a test using a HAR file button.
  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. To configure the test do the following:

    Action How to
    Add Vusers Select the number of Vusers from the drop-down list.
    Specify test duration Enter the test duration.
  6. Run the test.
  7. View the Dashboard.

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. From the Home page, 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. Run the test.
  5. View the Dashboard.

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. From the Home page, click the Create a test using a CSV file 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: