 |
AppPerfect Functional Tester for Windows Applications |
Tutorial : Functional Testing of a Windows Application
This tutorial provides a brief introduction to the Functional Tester 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.
This document is divided into following sections
- Creating Common Project
- AppPerfect Functional Tester
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 Notepad application available under "C:\WINDOWS" or "C:\WINNT" folders.
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
Functional Tester product.
AppPerfect Functional Tester
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 Functional Tester project
Action:
- Once the common project is successfully created another dialog - Define Project Properties dialog -
will be displayed.
- The dialog shows various options which can be configured for the project, leave them default
and click on OK button.
- 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.
- Click Help -> Table of Contents menu item to see AppPerfect Test Studio product documentation
- Open the Preferences dialog by selecting the menu option Tools -> Options...
- Review the default settings for Functional Tester and click the OK button to close the dialog.
| NOTE:
|
AppPerfect Functional Tester only works on Windows 2000,
Windows XP and Windows 2003. AppPerfect Functional Tester is not supported on Linux, Solaris or Mac OS X.
|
Exercise 2: Recording a Test
Action:
- 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. Select Windows application
radio button and provide proper executables path as "C:\WINDOWS\notepad.exe" or "C:\WINNT\notepad.exe"
depending on the path on your machine. Now Click on 'Start recording' button.
- An instance of Notepad Application will be launched.
- Type text "Hello" in the edit box of Notepad.
- Click on Menu "Help > About Notepad", click on OK button.
- Type text ", to AppPerfect Functional Tester" after "Hello" in the edit box.
- Now click after "," and type "Welcome " in the edit box.
- Close Notepad application using Menu option "File>Exit". A dialog asking do you want to save changes will
be shown, click on "NO" in this dialog. .
- 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.
- In the AppPerfect Functional Tester window, look at the tree on the left. Each action you
performed has been recorded.
- Click on any of the recorded action on the left. The page associated with that action is displayed along
with the actual element highlighted.
Exercise 3: Executing a test
Action:
- To start replay of the recorded test, click on Project -> Run from the menu bar.
- An instance of Notepad Application will be launched and each of the recorded events is replayed.
No manual intervention is required during test replay, unless an error is encountered.
Exercise 4: View and analyze results
Action:
- After replay, results are displayed in Results tab located at the top left of the window.
- Click on Results tab. Test results details are displayed on the right. Click on individual items
in the tree on the left to view details on specific actions.
- Browse and examine the different views that are displayed on selecting the various nodes in
the navigation tree.
- Select the Action Group node. This report gives a summary of the successful, failed, timed-out &
not played Events&.