Creating Test in Web Application
Creating Test in Web Application
Creating Test in Web Application
Module Objectives:
So, what are we waiting for? Let us now explore the Unified
Functional Testing 12.0
CS-6306 UNIFIED FUNCTIONAL TESTING
Creating Test in Web Application Page|2
Note:
If you are prompted to have Internet Explorer remember the
password, click No.
If the username/password combination does not work, you can
register a new username and password in the site. Please enter
training as the username and mercury as the password in that case.
3. Explore the Mercury Tours site. Beginning with the Flight Finder
page, follow the on- screen instructions to get flight information and
reserve a flight. As you navigate the application, think about what
you might want to test, and which pages and objects need to be
included in each test that you might create.
Note: On the Book a Flight page, you do not have to fill out actual
personal or credit card information; just enter the required
information, indicated in red, in the Passengers and Credit Card
sections. You may enter fictitious information.
4. End your Mercury Tours session and close the browser:
add-ins that you want UFT for GUI Testing to load by selecting the
check boxes adjacent to required add-ins.
Add-ins are important because they help UFT for GUI
Testing operate based on the selected environment. This add-in
concept helps UFT for GUI Testing to support a wide-range of
applications without compromising the performance. And, it
improves object identification reliability.
The list of add-ins that appears in the Add-in Manager
dialog box is dependent on your license. The default add-ins are
Activex, Visual Basic, and web. Additional add-ins require a custom
install of UFT for GUI Testing for the add-ins to appear in the Add-
in Manager. An add-in is loaded if you check it in the Add- in
Manager dialog box.
Example – Select Web if you have to test a web-based
application.
To access:
By default, this dialog box opens when you start UFT for GUI
Testing. To display the Add-in Manager if it does not open when
you start UFT for GUI Testing, select Tools ␣Options ␣ General
tab ␣Startup options node and then select Display Add-in Manager
on startup.
If you select the check box of an add-in that contains a child
add-in, the parent add-in is selected automatically.
If you clear the check box for a parent add-in, the check
boxes for its children are also cleared.
Running a Test
To run a test, perform the following steps:
1. Start UFT and open the MercuryTours test:
a.If UFT is not currently open, open UFT, making sure that
only the Web add-in is loaded.
b.Select File ␣Open ␣Solution. The Open Solution dialog
box opens. Open the appropriate solution file if available or else
create a new GUI test.
2. Configure UFT to save all images to the run results. UFT
allows you to determine when to save images to the run
results.
a.Select Tools ␣Options ␣GUI Testing tab ␣Screen Capture
node.
b.Select the Save still image captures to results check box,
and then select For Errors and
Warnings only from the drop-down menu. c. Click OK to
close the Options dialog box.
3. Start running your test:
CS-6306 UNIFIED FUNCTIONAL TESTING
Creating Test in Web Application Page|6
to run a test or action more than one time using different sets of
data in each run. Each run is called an iteration and each
iteration is numbered. (The test you ran had only one iteration.)
Result Details – A high-level results overview report, containing
general information about the test, which steps passed or failed,
statistics in pie chart format, and so on.
Captured Data – A still image of the state of your application at a
particular step. This pane is only populated when you select a
step from the Run Results tree, and the selected step has a
recorded image.
a.If UFT is not currently open, make sure that only the Web
Add-in is loaded.
c.Click the Open button down arrow, and select Open
Solution. The Open Solution dialog box opens. Open the
appropriate solution file if available or else create a new GUI test.
2. Save the test as a checkpoint: