Getting Started with Distribution

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

One of the most powerful features of loadUI is the ability to distribute a TestCase to agents, to better model the type of load that the system you are testing can expect.

I this tutorial, we will learn:

  1. How to create a TestCase
  2. How to place that TestCase on an agent

Before doing this tutorial, you will want to create a project and connect to at least one agent, as detailed in Your First loadUI Project.

1) How to Create a TestCase

  1. Double click on a project to open it.
  2. Drag a TestCase from the Component Bar onto the Canvas to create it

    loadUI TestCase

    TestCase

  3. You can double-click on the new TestCase to open it. There you can create and control your Load Test like you would in a project except that you cannot create TestCases within a TestCase (you can have as many TestCases as you need within a single Project, though)

    For more information on how to configure a Load Test, you can see Load Testing with loadUI. You can run and stop the TestCase as normal.

Now that you have your TestCase ready, it is time to put it on an agent.

2) How to Place a TestCase on an Agent

  1. While in a project which contains a TestCase, possibly one created by following the previous section, click on the inspector panel (on the bottom of the workspace) to reveal it. You will see the Agents inspector.

    On the left, you can see the Ghost Agent, which shows all the TestCases on your current project. To the right of that, you can see all the external agents that the controller is currently connected to.

    loadUI Agent Inspector

    Agent Inspector

  2. In order to place the TestCase on an agent, simply drag and drop it from the Ghost Agent to the agent that you want it to be on.

  3. To control the TestCase, you will need to click on the "On Agents" button to switch to the agent controlling mode. You can now start and stop the testcases on the agents. You can also double-click on the testcase in an agent in order to see its configuration and work on it further.

Last Updated on Wednesday, 07 December 2011 11:00