How can I find out the average Response time[s] of a custom timer for any given interval in my loadtest?
To allow your client to be able to find out the average Response time of custom timers for any given interval in a test you will need to do the following:
- Edit your script to include a custom timer named Timer1.To do this please use the MeasureStart("Timer1") and MeasureStop("Timer1")
- Run a 10 minute loadtest with the TSD generation enabled
- Now, if you consult the TSD files overview report section, you will see the Timer1 timings reported in the users section of the overview report.
Example:Timer1Response time 27.334 4.276 170.565 103 103 2,815.390 23.950
Note: The Overview Report General Information section will show:Load test date: 27/05/2004 13:03:59 Duration of simulation: 00:10:10
- If you now select the menu option Wizard | Remerge Wizard- Select source file and destination file | select Next, you can select the time frame you wish to gather the average response time for.
Example:StartDate/Time: 27/05/2004 13:03:59 EndDate/Time: 27/05/2004 13:08:59
Note: If you modify the start/end times you get a warning:"The overview report is based on a loadtest file, which has modified start/end times. Therefore the report contains no user-type data."
The reason for this is that the User Types section of the report is taken from the repository and will not be included in the overview report, and because of this you do not get the custom timers section for the modified period that you require.
- After working through the Remerge Wizard the new Overview Report and TSD file will be loaded in Performance Explorer. However, you will notice that the user types section is empty and will not display the timings for the custom timer - Timer1
- To get the new average response time you will need to do the following: Add a blank graph (File | New | GraphLocate the remerge TSD (left pane) select Timer | Timer1 | and drag and drop into the blank graph
You will now see the average response time of the custom timer for the time period you have specified.