Recording a Load Test Scenario

Last Updated: 03/28/2018 Introduced in Version: 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 in recorded scenarios.

To record a load test scenario, open the Load Test Utility from the local machine. Under the Record Control tab, give a name to this scenario (or script) and click the Start Recording button. All actions performed in the portal between pressing the Start Recording button and pressing the Stop Recording button will be recorded and transformed in a script that can be modified and repeated as needed.

Example

In the example, we will:

  1. Open the Load Test Utility.
  2. Record a scenario in the portal.
  3. View the scenario in the Load Test Utility’s Script Editor.

Our example scenario will consist of a user adding an article to the Knowledge Base folder. This scenario can later be used to load test many users adding many articles simultaneously.

01.-expected_result.png

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

02.-knowledgebase_folder.png

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

03.-open_load_test_utility.png

Under the Record Control tab, we will fill in the New Script Name field with “Add Article” and click Start Recording to begin recording our actions in the portal.

05.-start_recording.png

In the portal, we will navigate to the Knowledge Base folder. Next, we’ll click the Actions button and select Create Article.

06.-create_article_action.png

In the resulting Create Article popup, we will fill in the Title field with “Test Article”, type “Test Desc………..” in the Description field, and click OK.

07.-create_article_popup.png

Back in the Load Test Utility, we will click the Stop Recording button.

07a.-stop_recording.png

Under the Script Editor tab, we will see a detailed list of services, methods and details about every event that occurred while we were recording in the portal. Each event is represented in XML and can be modified in the panel on the right.

08.-script_editor_tab.png