Applying a performance profile to a stub

After you create a performance profile, you must apply recorded response data to the stub execution to gather performance data.

Procedure

  1. In Test Factory, open a stub.
  2. Specify a response-time type for each operation. On the Properties tab, double-click the cell under Type.
  3. In the Edit window, select Performance Profile. The performance profile options are displayed.
    Apply performance profile to a stub
  4. Select a performance profile.
  5. Select a start time. The start time represents the simulated time at which the first phase begins. The start time setting is used in conjunction with the start time that is configured in the response time properties of a stub, to determine at what point in the profile to begin when a stub is started. Use the start times to simulate the response times for a specific period in time, regardless of the actual time the stub executes. The selected time should fall within the period recorded in the performance profile, as defined by the profile's start time and the total duration of all of its phases. Here is an example of how to use the start time:
    Assume that the performance profile covers 124 hours starting from November 11, 08:00, and time from November 11, 08:00 to November 16, 12:00. Assume that the first few phases are as follows (duration (minutes), fixed delay (ms)):
    1. 60, 1000
    2. 60, 2000
    3. 60, 3000
    4. 30, 4000
    5. 30, 5000
    6. 720, 6000
    7. 480, 500
    8. 60, 1000
    A start time of Nov 11, 08:30 would start half-way through phase 1 (because the run has a fixed delay of 1000ms for 30 minutes before moving on to 2000ms for 60 minutes). A start time of November 12, 06:00 would run with a 500ms delay (phase 7) for 2 hours before hitting phase 8 and running for an hour with a 1000ms delay.
  6. When the stub runs, as each phase starts, the changes to the response time are displayed on the console or written to the agent log.
Feedback