Your first Load Test

PDF Print E-mail
Monday, 21 June 2010 10:00
User Rating: / 28  |  Rate this article: PoorBest 

1. Create a loadUI Project

  1. In the workspace, drag the Project icon to the project list display.
    ProjectCreation

    Creating a Project by dragging and dropping

    Note that if you do not want to create a project by dragging, you can also select New Project from the Workspace menu.
  2. Now, in the Create New Project dialog, enter a name for the new project, and click Create.

    Load Testing with loadUI - Create Project Dialog

    Create Project dialog

  3. You will now see the new project on the Project List. Double click on it to open for editing.

    Load Testing with loadUI - New Project

2. Create a Web Page Load Test

  1. Add a Web Page Runner component by dragging the Web Page Runner icon from the Runners section of the Component bar to the Project canvas.

    Load Testing with loadUI - Web Page Runner icon

    Drag the icon to the Canvas

  2. Enter the URL of a web page which you wish to target for the test.

    ATTENTION! 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.

  3. Add a Fixed Rate Generator to generate some load, again by dragging the Fixed Rate icon to the Canvas. Connect the two components by dragging the bottom connector of the Fixed Rate component to the top connector of the Web Page Runner component.

    Load Testing with loadUI - Connecting the components

    Connect the components using drag and drop.

  4. Finally, add a Statistics component to the Canvas. Connect the lower-left connector of the Web Page Runner to the Statistics components top connector.

    Load Testing with loadUI - All three components connected

    All three components connected

.

Note!

Please note that this tutorial was written before the release of loadUI 1.5, which introduced the Statistic Workbench as a replacement of the Statistics Component. The Statistics Workbench is designed to be much more more powerful and versatile than the Statistics Component, and we recommend you to use the former mentioned instead.

Read more about how to view statistics from your loadUI tests here.

3. Run the project

  1. Start running the Project by clicking on the Play button located near the top of the window.
  2. Load Testing with loadUI - The Play button

    Start the Project.

  3. The Project is now running, sending 10 requests per second to the web site you've specified.
    Congratulations! You have now created and are running a Load Test.

4. Dynamically alter the load on the fly

  1. While the test is still running, change the load by clicking the left mouse button on the Rate knob of the Fixed Rate component and dragging. To increase the load, drag the mouse upwards, or to the right. To decrease the load, move the mouse towards the left or down instead.
    Load Testing with loadUI - Rate knob

    Altering the load at runtime

  2. As you alter the load, you can view the various graphs of the Statistics component, which are all updated in real time.

5. Stop the test, and view a summary report

  1. Once you're done changing the load a bit, you can stop the test by clicking on the Stop button, located next to the Play button.
    Load Testing with loadUI - The Stop button

    Stopping the test

  2. After stopping the test, you can view a summary report. To do this, click on the Summary Report button near the top right of the window.
    Load Testing with loadUI - The Summary button

    Viewing the summary report

  3. This will open the report allowing you to view the data and metrics for the executed test.

6. Next Steps

Now you can move forward by:

  • Adding some more web-page runner components and trigger them from either the same generator or another one (or why not just chain it to the output of the first runner). Or maybe use a splitter to divide the load from a generator between different runners
  • Trying different Load-Generators to see how the response-time of your service reacts to these (try connecting several to the same runner component!)
  • Creating a TestCase in your project and putting your components there instead; then you can deploy it interactively to any number of installed and configured loadUI agents allowing you to do distributed testing from inside loadUI.
  • Posting feature requests and bug reports on the loadUI forum boards at http://www.eviware.com/forum

As always, don't forget to have fun!

Last Updated on Tuesday, 08 November 2011 10:16