Running a Load Test Scenario

Last Updated: 12/07/2015 Introduced in Verision: 2.0

The Load Test Utility dynamically generates data and makes requests against the system for load testing purposes. Requests and data are defined and configured to run as scenarios.

To run a load test scenario, open the Load Test Utility from the local machine, select your scenario in the Select Script dropdown, configure the simulation details and click the Run button.

Example

In the example, we will:

  1. Select a previously created scenario in the Load Test Utility.
  2. Configure simulation values.
  3. Run the scenario.
  4. View the results in the Knowledge Base folder.

Our example test will test what happens when 50 users simultaneously attempt to add an article to the Knowledge Base folder. This example assumes that the scenario for adding an article to the Knowledge Base folder has already been created and is called Add Article.

01.-expected_result.png

In the portal, we can see that our Knowledge Base folder currently contains several recent news articles.

02.-portal_knowledgebase.png

To run our scenario, we will open the Load Test Utility.

03.-open_load_tester.png

Under the Testing Control tab, we will select Add Article from the Select Script dropdown.

04.-select_script.png

Next, under Simulation Type, we will select No Pause. This will initiate the multiple threads of our script all at once.

05.-no_pause.png

Next, we will fill in the Number of Simulated Users field with “50”. This configures our scenario to simulate 50 unique users, each of which will start a unique thread of the Add Article script.

06.-number_of_simulated_users.png

This completes the configuration of our scenario, so we will click the Run button to begin our load test.

07.-run_button.png

The Log tab contains detailed logs of our test. The first 50 lines indicate that 50 unique sessions were started.

08.-logs_sessions_started.png

The last 50 lines indicate that those 50 sessions were successfully completed. If they had not completed successfully, an error message would have appeared in the log.

09.-logs_sessions_completed.png

Back in the portal, we can see that 50 new articles have been added to the Knowledge Base folder.

10.-knowledgebase_test_articles.png

Additional Resources