Overview

PDF Print E-mail
User Rating: / 2  |  Rate this article: PoorBest 

1. Preparations

Before starting this tutorial, you need to know the basics about the Statistics Workbench.

Create a new project with a Fixed Rate Generator connected to a Web Page Runner. Set the Generator's rate to 10/Sec, name the Runner My Runner and point it to some URL. Start the project in by clicking the Play button and let it stay running during the whole tutorial.

2. Showing Statistics from a component

Open the Statistics Window and enter the Analysis view. Locate the icon representing My Runner in the left toolbar and drag it into the empty space to the right:

dragComponentInStatWorkbench

This will create a Chart containing My Runner. A Chart can show all the Statistics of its contained Components.

A Chart showing one line.

By default a Chart will show the Statistic Average Time Taken of a containing Web Page Runner; this is why there's already a line in the Chart.

Click Add Statistic to add another Statistic from My Runner:

The Add Statistic Panel with no radiobuttons selected.

This will toggle the Add Statistic Panel. Specify which Statistic you want to add by clicking Sent, Per Second and All. You have now specified a Statistic that will show the Sent requests per second for My Runner.

addStat_secondClick

Click Add to add the specified Statistic to the Chart:

The same Chart as in a previous image, but with a second line added.

A new line will appear in the Chart, together with a new legend called Sent/s.

3. Playing around

The new Statistic will stay steady at the value 10 since you previously set the Fixed Rate Generator in your project to 10/Sec. Let's lower the rate of the our generator to 1/Sec while keeping the Statistics Window open:

A Fixed Rate Generator with the rate set to 1/Sec.

As expected, the Statistic showing My Runner's Sent Requests per second falls to 1 as well:

The same Chart as shown before, with the second line falling.

Also, use the horizontal scrollbar to go back to the beginning of the test (the X-axis should show 00:00). Notice that when the scrollbar is positioned to the far right, the chart will be always show the most recent datapoints as the test goes on. All other scrollbar positions will fixate the chart at that specific time interval.

4. Removing Statistics

Now remove the Average TimeTaken (abbreviated TimeT Avg) Statistic by dragging it to the trash can (that appears in the upper right corner) to delete them:

removeStat dropLegendInTrash

5. What's next?

There's a lot more to the Analysis view, so take a deep breath and then proceed reading The Analysis view, continued.

As always, don't forget to have fun!