Load Testing

Monitoring Server during Load Testing

This tutorial provides a brief introduction to the Server Monitor module of the
AppPerfect Load Test using a set of hands-on practice exercises. This tutorial assumes you have
successfully downloaded and installed AppPerfect Load Test on your machine with the default
options. Apart from this pre-requisite, this tutorial is self contained. Instructions given below
are Windows-specific; if you are using a non-Windows machine, please use equivalent
commands/instructions.

Within each section, multiple exercises are listed. Each exercise forms a logical unit
which is expected to take no more than a few minutes to perform. All exercises
use the PetStore demo application running inside Apache Tomcat. The modified PetStore application
and Tomcat are both bundled with this product.

All exercises assume you have installed the product in C:\AppPerfect\LoadTest folder and will
be referred as LOADTEST_HOME henceforth in tutorial. If you have installed the product in
some other folder, modify the instructions below appropriately.

This tutorial is not intended as a comprehensive training guide. Please refer to the
product documentation for detailed information. However, this tutorial will give you a very good overview
of the products and substantially improve your productivity with the product.

Creating Common Project

In AppPerfect Load Test, you can create a common project and use the same project to perform tests in all
the bundled products.

Click on "Add host information" button provided on the right hand side of table. In the dialog shown you can
specify system settings for local machine that is "localhost" and OS. In Username and Password field
provide logged in user's name and password. Click on OK to close the dialog.

Review other settings in the Panel and click on the Finish button to close this dialog.

Click through all the menu items to familiarize yourself with the available features and how to access
them. Viewing through all menu items will give a reasonable overview of the application.

Exercise 2: Recording a Test

To start recording, click on Project -> Record test... in the menu bar.'

'Record a test' dialog will be displayed. Select ActionGroup1 from the Group combo. Provide starting URL
as "http://localhost:8396/petstore". In the authentication select "No Authentication". Click on
'Start recording' button to start recording test.

An instance of configured browser will be launched with the PetStore home page loaded.
Click on enter the store link. This will populate the database and display the PetStore main page.
Note that populating the database might take some time.

At the 'Sign in' page, default values are already provided. Click on Submit.

Sign out of PetStore by clicking on Sign-out at top right of screen.

Close browser by clicking on File -> Close in the browser window.

Click on the Stop button of "Record a test" dialog to stop the recording session.

Click on Close button to close the 'Record a test' dialog.

The URLs navigated will be displayed under ActionGroup1.

Click through each Tasks to view its details on the panel on the right.

Exercise 3: Executing a test

To execute the test, click on Project -> Run from the menubar.

The focus will be shifted to Status tab. Here the current status of the test execution will be displayed.
Various test metrics such as response time, virtual user count, etc. are continuously refreshed in the charts.

The status tree shows the IP addresses or hostname corresponding to machine which are being monitored.

Click on this IP address or hostname node in the tree, the corresponding charts are shown in the System Monitor Results
view.