Your first Load Test

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

Video Tutorial

your-first

1. Create a loadUI Project

The first view that you will see when you open loadUI is the Workspace View. This is where you manage your projects.

workspaceView

The Workspace View.

Create a new Project by dragging the New Project icon to the project list.

Untitled_Time_0_00_2019

Creating a Project using drag and drop.

Now, in the Create New Project dialog, enter a name for the new project, and click Create. This will create and open a new project.

Untitled_Time_0_00_2320

The Create New Project dialog.

2. Create a Web Page Load Test

Expand the Runners category in the component toolbar by clicking the grey arrow next to it.

expandComponentToolbar

Expanding the Runner category.

Then add a Web Page Runner component by dragging the Web Page Runner icon to the project canvas.

dragNewComponent

Creating a Web Page Runner using drag and drop.

Enter the URL of a web page which you wish to target for the test. Note that you will be sending several HTTP requests to this URL, so make sure to enter the URL of a site under your own control, which can handle the load.

Click Run Once to make sure that loadUI can access the URL. This will send a single request to the target server. When the request is sent, the Requests counter in the black display is increased; when a response is received, the Completed counter increses.

webRunner_runOnce

Add a Fixed Rate VU Generator to generate some load; do this by dragging the Fixed Rate icon to the canvas, just as you did before with the Web Page Runner. VU is short for Virtual User — this component will spawn Virtual Users into your test.

Connect the two components by dragging the bottom connector of the Fixed Rate Generator to the top connector of the Web Page Runner component.

Load Testing with loadUI - Connecting the components

Connecting components using drag and drop.

simpleWebTest

The two components connected.

3. Run the project

Start running the Project by clicking on the Play button located near the top of the window. The Project is now running, sending 10 requests per second to the web site that you have specified.

Untitled_Time_0_01_1427

The start button.

Congratulations, you have now created and are running a load test! You will see the Requests counter on the Runner increasing at a rate of 10 requests per second.

webRunner_display

A Runner Component's display.

4. Statistics

Open the Statistics Workbench by clicking on its button near the upper right corner.

statistics_button

The Statistics Workbench opens in its own window. Drag Web Page Runner icon from the Statistics Toolbar to the chart area to create a new chart.

addComponentToChart

The default statistics for components in the Runner category are Time Taken (the time it takes for the transactions to complete) and TPS (Transactions Per Second). You can see the full name of all current statistic by clicking the double-arrows marked below with 1_snag_evi.

webPageRunnerChart

5. Alter the load on the fly

While the test is still running, change the load by clicking the left mouse button on the Rate knob of the Fixed Rate Generator and dragging. Dragging up will increase the rate and dragging down will decrease it.

Load Testing with loadUI - Rate knob

Altering the load.

As you alter the load, you will see that the chart reflects the changes in real time.

Untitled_Time_0_02_4125

6. Stop the test, and view a summary report

When you are done playing around with the rate, stop the test by clicking the Stop button (in the main loadUI window).

Untitled_Time_0_02_4526

The stop button.


Untitled_Time_0_02_5908

The summary report button.

Once the test has stopped completely, click on the Summary Report button near the top right of the window.

This will open a Summary Report allowing you to view key metrics for the executed test.

Untitled_Time_0_03_0313

A summary report.