3. Recording a Scenario and Creating a Load Test

Applies to LoadComplete 4.97, last modified on May 20, 2019

Now, let’s record a scenario we will simulate during the test run.

To start recording a new scenario, click Record User Scenario on the Test Engine toolbar. LoadComplete will display the Record User Scenario dialog that assists you in specifying additional recording settings:

The Record User Scenario dialog.

We recommend that you keep the default values for the settings in the dialog. Click Record to start the recording.

LoadComplete will launch the web browser you have selected in the dialog and navigate to the Recording Scenario With LoadComplete web page. On the web page, click Sample App to navigate to the Web Orders application.

Otherwise, launch the needed web browser and navigate to the http://localhost/LoadComplete/ application manually.

Now, let’s perform some actions that will be then emulated by LoadComplete:

  1. Log in to the application using the following login data:

    Username: Tester

    Password: test

    Click Login to switch to the main page of the application.

  2. Now, the browser displays the default page of the application - the page that contains all the existing orders. To add a new order, click the Order link on the left.

  3. Enter the following values in the controls of the Order form:

    Field Value
    Product Select FamilyAlbum.
    Quantity 20
    Customer Name John Smith Jr
    Street 12, Orange Blvd
    City Grovetown, CA
    State US
    Zip 111155
    Card Select MasterCard.
    Card No 555777555888
    Expiration Date 06/15

    Click Process to create the order.

  4. Click the View all orders link on the left to make sure the order has been added.

  5. Log out from the application (for this purpose, click the Logout link in the right-bottom corner of the page) and close the browser.

  6. Click Stop on the Recording toolbar to stop recording.

As you perform actions, LoadComplete analyzes and adds the recorded traffic to the scenario specified in the Record User Scenario dialog. When you start recording, it also automatically creates a single-user test that simulates the recorded scenario. In this tutorial, we will use this single-user test to demonstrate performance monitoring. However, you can easily create another load test and use it. See the Creating and Configuring Load Tests section.

As it has been said, LoadComplete creates a load test that simulates a single virtual user only. We will modify the settings of this test a little, so that it simulates more virtual users, for example 25. LoadComplete allows defining how the number of active users changes throughout the test run. For this purpose, we will use the Load Profile tabbed page at the bottom of the Load Test editor. For instance, you can select the Stepwise user load with the following parameters: Start with 1 virtual user and add 5 users every 10 seconds.

Configuring the load test.

Click the image to enlarge it.

The next topic explains how to run the created load test and monitor the server metrics specified earlier.

Prev     Next

See Also

About Scenario Recording
Creating a New Load Test
About Server Monitoring
Preparing Servers for Monitoring
Managing Server-Side Performance Counters

Highlight search results