Quick load test

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

Create a test using a HAR fileHTTP Archive file. The common format for recording HTTP tracing information.

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

  1. Create a HAR file.

    Do one of the following:

    Tool/browser How to
    Chrome
    1. Navigate to your web page.
    2. Hit F12. Select the Network tab.
    3. Right-click and select Save as HAR with content.
    Firefox
    1. Download and install Firebug.
    2. Install the NetExport extension.
    3. Navigate to your web page.
    4. Hit F12. Select the Net tab.
    5. Select Export > Save as > HTTP Archive file.
    PCAP Web Performance Analyzer Convert a PCAP file to a HAR file using PCAP Performance Analyzer.
    HttpWatch
    1. Download and install HTTPWatch.
    2. Open IE or Firefox.
    3. Select Tools > HTTPBasic.
    4. Click Record.
    5. Navigate to your page.
    6. Click Stop.
    7. Select Save > Export to HAR file.
  2. From the Home page, click the 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 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 a TruAPI 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 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