UFT Testing

Key Elements of UFT

I)    Add in Manager

Add-in: Environment compatibility files

While launching of UFT Tool, It shows Add-in manager,

Add-in manager shows all available Add-ins in our company, here we have to select one or more Add-ins based on our software Application environment.

If we select unnecessary Add-ins the UFT tool performance will be reduced, so do not select unnecessary Add-ins, select required Add-ins only.

Note: UFT is object based test tool, based on front-end objects it performs test operations.

II)    UFT Tool Editor

It is an area where we create, edit and view tests or test scripts

It has two views,

a) Editor view - Test in VBScript format

b) Keyword view - Test in GUI format

Note: Views are different but Test is same, if we perform any modifications in one view, they automatically reflect in another view.

Default view is Editor View.

a) How to switch from Editor View to Keyword view:

View Menu -> Keyword View

b) How to switch from Keyword View to Editor view:

View Menu -> Editor View

3 Units of UFT Test or test script

Statement or Step a minimal executable unit

Action - Set of Statements to perform a task or tasks

Test - One or more Actions to perform a task or tasks

Note: Purpose Actions is reusability, Action is similar to Function in VBScript.

Statement is different and line is different, one statement may have one or more lines and vice versa.

Using : symbol we can join statements


Dim a : a = 100 : Msgbox a

in the above line 3 statements are there
Using _ Symbol we can split one statement into two Pieces


"Hello UFT"

III) Active Screen

It is an area, captures screen shots for every user operation on AUT (Application Under Test) during Recording.


View Menu -> Active Screen


Using Active screen we can easily understand and edit tests


It occupies more memory, so UFT tool performance can be reduced.

Configuring Active Screen:

It is configurable feature, if we don’t want to capture screen shots then we can reduce the capture level.


Tools menu -> Options -> GUI Testing -> Active Screen ->  Increase / Reduce Capture Level -> Click OK

IV) Data Table

-> It is an integrated spread sheet for data related operations.


View menu -> Data

-> It has two types of sheets,

a)    Global sheet (for entire Test)

b)    Action Sheets (For specific Actions)

-> UFT attaches one Data Table for every test, It is test level feature. Suppose 100 tests in our projects then UFT attaches 100 data tables.

-> Data table is located in two areas

a)    In UFT Tool main window (here name is Design time data table)
b)    In UFT Tool Result window (there name is Run-time data table)

-> Usage of Data table:

a) Enter test data directly into Data Table and connect to the Test

b) Import test data from external (.txt/.xls) files and connect to the Test

c) Import test data from a Database and connect to the Test.


The information is of great help. Thank you Sir!

Post a Comment