Last modified on January 15, 2020.

About scripts

A script (or web test) is a sequence of user actions in the tested web application. Usually, a script corresponds to some business transaction on the website. For example, a script 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 script, 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 scripts 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 script

To create scripts, record real user actions in the tested web applications. See Record Script for details.

A single project can contain any number of scripts.

View scripts

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

List of scripts

Click the image to enlarge it.

Edit scripts

When you start recording a script or open an existing script, the script recorder opens.

Script recorder

Click the image to enlarge it.

A script 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.

To learn more about editing scripts, see:

Data-driven scripts

You can attach a databank to your script 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