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

About web tests

A web test is a sequence of user actions in the tested web application. Usually, a test corresponds to some business transaction on the website. For example, a web test for an online shop can include the following steps:

  1. Log in
  2. Search for and add some goods to a cart
  3. Check out
  4. Log off

Each virtual user in LoadNinja simulates this or that web test, that is, it simulates a sequence of user actions. Load tests that you create in LoadNinja run dozens and hundreds of virtual users, that is, they simulate dozens and hundreds of web tests working with the tested web application simultaneously. This approach helps you simulate the load that hundreds of concurrent real users produce on your tested web application. This is contrary to some other load testing tools that simulate individual requests or go through all the links on your website without simulating a specific sequence of user actions.

Create a web test

You create web tests by recording real user actions in the tested web applications. See Record Web Test for details.

A single project can contain any number of web tests.

View web tests

To view a list of web tests in a project, go to Projects, click your project on the list, and then switch to the Web Tests tab.

List of web tests

Click the image to enlarge it.

Edit web tests

When you start recording a test or open an existing test, the web test editor opens.

Web test editor

Click the image to enlarge it.

A web test consists of steps, which consist of events. Steps usually correspond to individual web pages in an application, and events correspond to user actions such as link clicks or keyboard input.

Most test events have the Think Time command before them. Think time indicates pauses between user actions, which makes the test more realistic. You can override the recorded think time in your test settings if needed.

You can view the test as a list of events or as a Mocha script. If you edit the Mocha script, LoadNinja will update the test accordingly (if possible).

To learn more about editing web tests, see:

Data-driven web tests

You can attach a databank to your test to parameterize the events using the values from the databank. This way, you can repeat the test several times using different sets of data. For details, see Using Databanks in LoadNinja Tests.

See Also

LoadNinja Documentation
LoadNinja Tutorial
Using Databanks in LoadNinja Tests

Highlight search results