Module 4-Creating Basic Test
Module 4-Creating Basic Test
So, what are we waiting for? Let us now explore the Unified
Functional Testing 12.0
CS-6306 UNIFIED FUNCTIONAL TESTING Page|2
Creating Basic Test
Module Objectives:
Save a test
View test results
Class Logistics:
You can create the main body of a test or component by
recording the typical processes that users perform on your
application. UFT records the operations you perform, adding
them as steps to the selected test action or component.
During a run session, UFT uses the recorded steps to replicate the
operations you performed while recording. While you record the
steps, UFT creates test objects representing the objects in your
application on which you perform operations, and stores them in
an object repository. This enables UFT to identify the objects in
your application both while creating the test or component and
during a run session.
Recording Modes
UFT offers several recording modes to recognize different types of
objects.
Record a Test
To record a test, perform the following steps:
Run Settings dialog box lets you prepare for the test run by
selecting the test to run and providing a location for the results.
The steps to perform this are as follows:
Step 1– Click on run
You can watch the application under test as UFT performs each
step. A yellow arrow in the left margin of the keyword view
indicates the step currently running, if the test is run in normal
mode.
Save a Test
When we create a new test then we specify location to save the
test.
To save any changes made select File --->Save Test (Ctrl +S), the
default location used by UFT to save a test is: C:\Demo
information\UFT 11.50\Sample of Virtual Service.
CS-6306 UNIFIED FUNCTIONAL TESTING Page|6
Creating Basic Test
Note: If you make this file read then UFT script will always
open in read only mode. To enable the editing mode back
you need to remove the read only mode from the lock.lck
file.
Parameters.mtr – It contains the test script IO parameters
info
In the export to zip file dialog box that appears, specify the
path where you want to save the zip file, and click the OK
button.
This dialog box enables you to zip your GUI tests together with
configuration, run-time, setup data, and (optionally) Active Screen
files. Zipping these files together helps conserve space and makes
tests easier to transfer.
A search box.
Displays the test or component steps, specifying exactly
where application failures occurred.
Result Details pane – Detailed explanations of each step and
checkpoint pass or failure, at each stage of the test or
component.
Captured Data pane
A still image of the state of your application at a particular
step.
For UFT GUI Testing, additional information, such as a
bitmap checkpoint image.
Data pane – The data used in all iterations.
Screen Recorder pane (UFT only) – A movie clip of the state
of your application at a particular step or of the entire test
or component.
System Monitor pane (UFT only) – Any system counters
that were monitored for your test or component Log
Tracking pane (UFT only). Any log messages that were
CS-6306 UNIFIED FUNCTIONAL TESTING Page|9
Creating Basic Test
received for your test or component. It can be activated
through Menu bar. Menu ---> Click on View ---> Select Log
Tracking.