UFT Tutorial 3

UFT Class 3: UFT Test Process Part-2

UFT Class 1: Overview of Test Automation

    Disadvantages of Manual Testing

    Advantages of Test Automation

    Disadvantages of Test Automation

    Types of Test Tools

    Overview of Functional Testing

UFT Class 2: UFT Test Process Part-1
    Introduction to UFT

    UFT Test Process

        i) Test Planning

        ii) Generating Basic Tests

UFT Class 3: UFT Test Process Part-2
iii) Enhancing Tests

1) Inserting Checkpoints (UFT) (9+3)

2) Inserting Output values (UFT) (7)

3) Inserting Transaction points (UFT)

4) Generating steps using Step Generator

5) Inserting Flow Control Statements

a) Conditional Statements (VBScript)

    i) If statement

    ii) Select Case

b) Loop Statements

    i) For...Next
    ii) While...Wend

    iii) Do Until / While...Loop

    iv) For Each...Next

6) Parameterization (UFT, VBScript)

7) Synchronization

8) Calling Actions, Functions

9) Using Environment Variables

10) Regular Expressions

india.doc - india.doc - Constant matching

i*... Pattern matching

To handle dynamic objects
For Search Operations

11) Using VBScript Automation Objects

a) File System Object

It is a feature of Computer operating system, used to work with Drives, Folders an Files.

File System operations

i) Create a folder

ii) Delete a folder

iii) Copy folder

iv) Create a Text file

Read data

Write data

Compare data

Search operations
End user performs File system operations manually with the help of input devices.

Using VBScript File system object we can perform automatic File system operations.
b) Excel Application Object

It is used to perform operations on Excel application
c) Word Application Object

It is used to perform operations on Word application
d) Database Objects

i) Database connection Object

It is used to connect to databases.

ii) Database Recordset Object

It is used to perform operations on Database tables (records)
e) Dictionary object

It is used to store key, value pairs
Creating Automation objects


Set variable = CreateObject("Class Value")

File System Object - ("Scripting.FileSystemObject")

Excel Application Object - ("Excel.Application")

Word Application Object - ("Word.Application")

Database Connection object - ("Adodb.Connection")

Database Recordset object - ("Adodb.Recordset")

Dictionary object -("Scripting.Dictionary")
12) Error Handling (UFT, VBScript)

    Recovery Scenarios (UFT)
    Using some built in functions, Using option explicit statement,
    Using “On Error resume next” statement etc... (VBScript)
iv) Running & Debugging Tests

Debugging Tests

When Debugging is required?

Scenario 1:

Test is not showing any errors and providing correct output -Not required

Scenario 2:

Test is showing errors- Not mandatory

Scenario 3:

Test is not showing any errors and not providing correct output -Required

How to Debug Test Scripts?

Using Debug commands and Breakpoints we can debug Tests
Running Tests

Single Test Run -Using Run Command

Test Batch Run
    Using "Test Batch Runner" tool
    Using AOM Script (QTP Application Object)
    Using ALM
    Using Driver Script
v) Analyzing Test Results

Define Test Result

Status of Test Results in UFT




vi) Reporting Defects

Functional Test Automation vs. Defect Management
UFT                Manual
UFT                Bugzilla/Jira etc...
UFT                ALM

No comments:

Post a Comment