In a client-server environment, the time it takes to complete a transaction can be broken down into two categories:

  • server time: the time it takes the server to complete processing incoming client requests. This time changes with different load levels (number of VUs).
  • client time: the time it takes for client rendering and script execution. This time is typically constant with different load levels.

Generally, load testing measures server time since it depends on the number of VUs. However, it is sometimes beneficial to include client time in the performance metrics when measuring transaction performance.

In StresStimulus, this can be accomplished by adding a delay equivalent to the time client execution took place.

Adding the delays

There are two ways to bring up the Client execution delay options dialog.

From the wizard

In the test wizard > Think Time > Click Add client execution delays button.

From the test case tree

In the test case tree,> right click on test case > Select Add client execution delays menu item.

When the dialog appears, set the client execution delay options and click OK to add the delays to the test case.

  1. Check the Maximum delay checkbox and enter the maximum delay value to ensure all added delays will not exceed the maximum. If they do, then shorten them.

    Note

    The default value in the Maximum delay textbox is the largest calculated delay in the test case.

  2. Determine if the delay time will be added to the parent transaction time.
  3. Check the Emulate delays during Verify to include delays during configuration.


After adding the client execution delays, an object will appear for every corresponding client delay. The recorded waterfall diagram shows that a delay on the test case tree will represent each gap between requests.

The Delay object will have the following properties:

Delay: calculated client execution delay time

Description: Recorded client execution delay

Include in transaction time: Yes, if Include client execution delays into transaction time option was selected. Otherwise, no.


  • No labels