UFT Tutorial 4

 UFT Class 4

(UFT Tool Window Architecture Part-2, Record and Run Tests Part-1)

d) Data Table:

It is an integrated spread sheet for Data Related operations

Using Data Table we can work with Flat files, Excel files and Database files.
Or
Using VBScript Automation Objects we can work with Flat files, Excel files and Database files.

Navigation:

View menu-> Data

It has 2 types of sheets

a) Global sheet (For Entire Test)

b) Action Sheets / Local sheets (for specific Actions)

UFT Attaches one Data Table for every new Test

Data Table located in 2 areas

i) In UFT Main window (Design time Data Table)

ii) In UFT Result window (Run-time Data Table)

Usage of Data Table:

i) Enter Test data into Data Table and connect to the Test

ii) Import Test data from external files (Text/Excel) and connect to the Test

iii) Import test data from a Database and connect to the test
---------
iv) Using Data Table methods and Programmatic statements

Note: We insert Programmatic statements in order to overcome some limitations of Tool features.
---------------------------------------------------------
e) Errors

It shows syntax errors automatically while saving the Test.

Or

View -> menu
---------------------------------
UFT Commands

In 3 ways

a) As Menu items

b) As Tool bar items

c) As shortcut keys.
------------------------------
UFT Tool Menus (12)

a) File Menu

Create New Test

Open Existing Test

Add Test (Using this command we can open multiple tests at a time in UFT Tool editor)

Save Test

Close Test

Settings
    Associate Resource files
        Associate Function library files
        Associate Recovery Scenario files
        Associate Environment Variables files
Export to Test to Zip

Import Test from Zip

Exit
-------------------
2 Edit Menu

Redo

Undo

Cut

Copy

Paste

Delete

Format

Code snippet (To generate VBScript conditional and Loop statements syntax)
-----------------------
3) View menu

Data Table

Active Screen

Errors

Debug

Test Flow

Switch from Editor View to Keyword view and vice versa

Launch Result window

Etc....
--------------
4) Search menu:

Find

Find next

Replace

Incremental search

Goto
Etc...
------------------------
5) Design Menu:

Create New Action

Call to existing Action

Copy Action

Insert checkpoints

Insert Output values

Insert Transaction points

Insert Synchronization point

Launch Step Generator

Function Definition Generator etc...
------------------------
6) Record Menu
-----------------------
Record (Normal Recording)

Stop

Analog Recording

Low Level Recording

Insight Recording

Record and Settings Etc...
------------------------------
7) Run Menu

Run

Pause

Stop

Compile

Run modes

Step into

Step over

Step Out

Insert / Remove Breakpoints

etc...
-----------------------------
8) Resources menu

Launch Object Repository

Edit Local Objects

Create Shared Repository

Edit Shared objects

Associate shared repositories

Create New Recovery scenario

Edit existing Recovery scenario etc...
--------------------------------------
9) ALM

ALM Connection

Checkout

Checkin

Version History

Baseline History etc...
------------------------------------
10) Tools Menu

Object Spy

Object Identification

Virtual Objects

Data Driver

Regular expression evaluator

View Options

Tool options
Etc...
-------------------
11) Window Menu

Next window

Previous window

Close all documents
-------------------------------
12) Help menu

UFT Tool features documentation

VBScript documentation

New features

Knowledge forums

Updates

Technical Support

Product info

License info
etc...
-------------------------------------------------------------------
UFT Test process
    Generating Basic Tests
        Object Repository based Test design
            Recording

Record and Run Tests
----------------------
What is Test Recording?

It is process of generating steps for every user action AUT and storing objects information into Object Repository.

Steps for Recording:
Select Record:
    Record menu-> Record
    Or
    Select Record command from the Tool bar
    Or
    User F6 shortcut key

-> Click OK

-> Navigate the Application

-> Stop Recording
------------------------
After Recording
i) UFT generates steps / statements for all user actions on AUT

ii) UFT stores Objects information in to Object Repository.


What is Test Run/Execution?

Recording Modes

    Normal Recording

It records user mouse and keyboard operations based on objects
Or
It records user context sensitive operations based on objects

Drawback:

It is unable to record user continuous mouse operations.

It is the default mode of UFT

Note: Without selecting Normal recording mode we can't select other recording modes.

    Analog Recording

    Low Level Recording

    Insight Recording

Advantages of Recording

Disadvantages of Recording.

1 comments:

im not able to see test scripts wen record can u help me on setting

Post a Comment