Applies to LoadNinja 1.0, last modified on October 31, 2018

About scenarios

In LoadNinja, a scenario (or load scenario) defines all the parameters for the load test run:

  • The number of virtual users to be simulated
  • The web tests that these users will simulate (a web test is a sequence of user actions on the tested web application)
  • Load type
  • Think time settings
  • Error-handling options

You work with scenarios of your project on the Scenarios tab of the project editor:

List of scenarios in the project editor

Click the image to enlarge it.

You can also view recently-used scenarios on the Dashboard:

Recent scenarios

Click the image to enlarge it.

To view properties of some existing scenario, click this scenario in the scenario list.

Here is a sample view of scenario settings:

Scenario editor

Click the image to enlarge it.

Virtual users and load types

In the Virtual Users setting, you specify the desired number of concurrent virtual users LoadNinja will simulate during the test run. The maximum number is limited by your plan. Every virtual user runs one of web tests, depending on load distribution:

Load Distribution settings

Click the image to enlarge it.

LoadNinja simulates every virtual user several times during the run. If some user completes their web test, LoadNinja starts the next iteration of that virtual user.

A scenario can use one of the following load types:

  • Duration-based means LoadNinja simulates virtual users for the specified period of time. If some virtual user completes its web test, LoadNinja starts the next iteration of that user simulating the same web test. The number of iterations is not limited. If the test time elapses, LoadNinja doesn’t start new iterations anymore.

    Duration-based load tests
  • Iteration-based means LoadNinja simulates each virtual user for the specified number of times.

    Iteration-based load tests

For more information on load types and other parameters, see Load Configuration Settings.

Scenario settings

For more information on scenario settings, follow these links:

Create a scenario

  1. Go to Projects and click your project there.

    The list of proojects

    Click the image to enlarge it.

  2. In the project editor, switch to the Scenarios tab and click Create Scenario.

    Create scenario

    Click the image to enlarge it.

    This will open the scenario editor.

  3. At the editor’s top, click the pen icon to rename the scenario. Specify a new name and press Enter.

    Rename scenario

    Click the image to enlarge it.

  4. Configure scenario settings as needed.

  5. Click Save to save the scenario and to return to Projects.

    Save scenario

    Click the image to enlarge it.

Edit a scenario

  • Find your scenario on the Projects > Scenarios page and click it there:

    Edit a scenario

    Click the image to enlarge it.

    Tip: Use the search box to filter the scenario list. It allows searching for a specific character in a scenario name or for a specific date.

    — or —

    Click the scenario name in the Dashboard > Recent Test Scenarios list:

    Edit a scenario

    Click the image to enlarge it.

  • Edit scenario settings in the scenario editor as needed.

  • Save the changes.

    Save scenario

    Click the image to enlarge it.

Run a scenario

To run a load test based on a scenario, go to Projects > Scenarios, locate the needed scenario in the list and click Run on the right.

Tip: Use the search box to filter the scenario list. You can enter any part of the scenario name or date.
Run a scenario

Click the image to enlarge it.

You can also run a load test from the scenario editor. To do this, simply click Save and Run at the page’s top:

Scenario editor: Save and Run button

Click the image to enlarge it.

Delete a scenario

  1. Go to Projects and click your project in the list.

    The list of proojects

    Click the image to enlarge it.

  2. In the project editor, switch to the Scenarios tab.

  3. Find the needed scenario and select a check box on the left of it. Select the check boxes of other scenarios to be deleted.

    Tip: Use the search box to filter the scenario list.
    You can enter any part of the scenario name or of the Last Opened value.
  4. Click Delete (this button appears above the list after you select the check box).

    Project: Delete a scenario

    Click the image to enlarge it.

  5. Confirm the deletion in the subsequent message box.

See Also

Web Tests
LoadNinja Documentation

Highlight search results