 |
AppPerfect System Monitor |
Tutorial : Monitoring A Machine
This tutorial provides a brief introduction to the System Monitor product of the
AppPerfect Test Studio using a set of hands-on practice exercises. This tutorial assumes you have
successfully downloaded and installed AppPerfect Test Studio 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.
This document is divided into following sections
- Creating Common Project
- AppPerfect System Monitor
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\TestStudio folder and will
be referred as TESTSTUDIO_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 Test Studio, you can create a common project and use the same project to perform tests in all
the bundled products.
Exercise 1: Launch AppPerfect Test Studio
Action:
- Click on Start -> Programs ->AppPerfect Test Studio x.x.x -> AppPerfect Test Studio
- On launching AppPerfect Test Studio a Welcome page will be displayed. Go through the brief description
given for each product and click on the product icon to view its perspective.
NB: Welcome page is displayed only when Test Studio x.x.x is launched and last time no project
was opened.
- To switch between different product perspectives click on corresponding project button in toolsbar.
Exercise 2: Creating a Common Project
Action:
- Launch the Common Project Wizard by clicking File ->New... menu option.
The New Project wizard will be launched.
- Keep the default project name and location for the purpose of this exercise. We don't have to provide
"Notification" settings. Click on the OK button.
- A confirmation message saying that the project is saved will be displayed. Click on the OK button.
Now using this common project we will create tests to demonstrate the functionalities of AppPerfect
Load Tester product.
AppPerfect System Monitor
NB:Please follow the steps provided in the "Creating Common Project" section to first create a common project,
then proceed further.
Exercise 1: Define a System Monitor project
Action:
- Once the common project is successfully created another dialog - Define Project Properties dialog -
will be displayed.
- In this dialog you can specify system settings for local machine controller. These settings are
required for system monitoring of local machine. In Username and Password field
provide logged in user's name and password. Click on "Validate Connection"
button to validate controller settings.
- Review the default settings for System Monitor and click the OK button to close the dialog.
Exercise 2: Adding new machines
Action:
- To add new controller, select any node in System Monitor tree and in context menu select
"Add Machine..." to bring Add Machine dialog.
- In machine type select "Windows 2000/XP" and specify machine's IP address or host name in "IP Address"
field.
- Specify username and password and click on "Validate Connection" button to validate controller
settings. It should show message saying "Controller settings are valid.". Click on OK to close
message box.
- Review the default settings new machine and click on OK button to close the dialog.
Exercise 3: Monitoring system resources
Action:
- To start monitoring, click on Project -> Run from the menubar.
- In the System Monitor view the tree shows the IP addresses which are being monitored.
Below the IP Addresses, the various Attribute groups or Attributes are shown.
- On clicking on any node in the tree, the corresponding charts are shown in the System Monitor Results
view. For multiple attributes, a tile of the charts is shown. Also for some attributes like process
information in Windows, a table is shown with the information. This is not visible with multiple attributes
in a tile.
- To stop system monitoring, click on Project -> Stop from menubar
Exercise 4: View and analyze result
Action:
- Once the monitoring is stopped "System Monitoring Results" will show the state of controller at the
time monitoring was stopped.
- Navigate through System Monitor controllers to analyze system monitoring data when
monitoring was stopped.