Knowledgebase

Creating a User Scenario


A user scenario is a script, defining the requests performed by the simulated users during a load test. A good user scenario will be based on real user behavior and will test systems, components, pages, or actions that are important to your organization.

You can create your load script from scratch, or use the following custom tools to auto-generate your script.

  • A Google Chrome Extension (Most popular!)
  • A Proxy Recorder (Good for mobile, non-chrome, scenarios with pop-ups/new windows)
  • Submit a URL (this will only capture requests from the target domain of the URL submitted, no external requests will be included in the script)
  • Writing a Lua script by hand

Step 1

After clicking new user scenario you will be prompted to select how you want to create the scenario:

Step 2

Once your script has been created, it will be available at the user scenario menu.

Step 3

Then, if needed, you can script your user scenario to include any specific customization, including sleep time and randomization of events to make the test as realistic as possible. Some of the most popular scripting methods include:

Next, let’s create a test