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

Scripts have settings that affect the test playback. To view or change these settings, click in the script recorder:

Open settings

Click the image to enlarge it.

Server location

Specifies the server which is used to record and play back a script in the recorder.

If the script is recorded against the internal application (that is, uses an endpoint), this option will be unavailable. For these scripts, LoadNinja uses the default location: US East (North Virginia).

The following locations are available:

  • US East (North Virginia)
  • EU North (Stockholm)
  • EU West (London)
  • EU Central (Frankfurt)
  • AP Southeast (Sydney)

Think time

LoadNinja records Think time events to simulate pauses between user actions in scripts. This setting lets you override the recorded think time.

Note: This setting only has effect during test playback, the original think time values in the test are not changed.
Value Description
Recorded Use the same think time as defined in the script.

Fixed

Use a specific think time value for all events.
Think time: Fixed
Random Use random think time from 100 to 60100 ms (1 min 100 ms).
Minimum Ignore the think time values specified in scripts and play back the test with the minimal possible think time (100 ms) between the events. Use this to speed up the script playback.
Note: This option might break the test if it requires a long pause at some point, for example, to wait for some dynamic content to load.

Object identification

Specifies the method LoadNinja uses to identify objects on pages. It is used for various user actions on a page — for example, for click events.

To command LoadNinja to select the optimal method of object recognition using its AI capabilities, select the Let LoadNinja AI decide check box.

To enable the AI object identification for the whole script, click on the recorder’s toolbar. In the subsequent dialog, select Let LoadNinja AI decide in the Object identification drop-down list.

Select one of the following options:

  • Use XPath — LoadNinja identifies an object in the page’s DOM using an XPath expression that refers to the object's index within the document hierarchy.

    For example, the following expression refers a link located in the header of a specific block element:

    //html[1]/body[1]/div[2]/h1[1]/a[1]
  • Use Optimized XPath — LoadNinja identifies an object in the page’s DOM using an XPath expression that refers to the object or its parent unique identifier (the id attribute), where it is possible.

    For example, the following expression refers a link located in the header of the sample element, specified by its ID:

    //*[@id="sample"]/h1/a
  • Use CSS Selectors — LoadNinja identifies an object in the page’s DOM using a CSS selector.

    For example, the following expression refers a link located in the header of a specific block element:

    :nth-child(4) > h1 > a
  • Use Screen Coordinates — Use x and z coordinates of the object.

    The coordinate line consists of two numbers, for example:

    (95, 105)

    The first number refers the x axis, the second — the y axis.

Ignore Mouse Moves

Select this option for LoadNinja to ignore mouse moves (that is, the Mouse Move steps of the script) during the playback of a particular script.

Note: It affects the playback option in the script recorder and the replays the virtual users perform. Please keep in mind that enabling this option may cause issues during the playback if mouse moves are required in order for the test to be eligible.

If you need to omit mouse moves in some situations, consider removing them manually by selecting  > Delete action next to the unwanted Mouse Move step in the script recorder.

Run databank rows

Specifies the method LoadNinja should use to append databank values.

This option is available only when a databank is attached to the script.

Value Description
Random Default value. LoadNinja will pick random data rows from the databank for each iteration and each virtual user.
During the test run, there is a possibility that multiple users will use the same data at the same time.
Depending on the number of iterations and the number of rows, some rows are used more or less frequently than others. If the number of iterations is significantly larger than the number of rows, each row will be used approximately the same number of times.
Sequential For each virtual user, LoadNinja will pick data sequentially for each iteration, that is, the first iteration of a virtual user will use the first databank row, the second iteration will use the second databank row, and so on.
Each virtual user processes the databank on its own, so it means that multiple virtual users may be using the same data at the same time.
Unique At any given time instance, LoadNinja will pick unique data rows for virtual users, so they will never use the same data at the same time.
The number of databank rows should be equal to or greater than the number of virtual users that will run this script.

Timeout delay

How long LoadNinja will wait for:

  • each web page to load,

  • the target object of an event to appear on the web page.

If a page does not load or an object does not appear within the timeout interval, LoadNinja will report an error.

Possible values: 1 to 300 seconds, default is 30 seconds.

See Also

Scripts
Script Recorder

Highlight search results