UFT Test Process


UFT Tutorial Part 4 (UFT Test Process) 
I) Test Planning
 a) Get Environment (UI Design Technology and Database)Details from Development Team and select appropriate Add ins

b) Analyze the AUT in terms of Object Identification

c) Select areas / Test cases for Automation
        1) Tests that we have to execute on every build (Sanity Tests)
        2) Tests that we have to execute on every modified build (Regression Tests)
        3) Tests that we have to execute using multiple sets of Test Data (Data Driven Tests)

d) Tool settings Configuration and Globalize
 
e) Automation Framework Implementation (Optional)
 

II) Generate Basic Tests
--------------------------
a) Object Repository based Test Design
    1) Recording
    2) Keyword Driven Methodology

b) Descriptive Programming / Programmatic Descriptions
    1) Static Programming
    2) Dynamic Programming

Hybrid Approach
    High Level (Test Level)
    Low Level (Statement/ Step Level)

Statement

OR                DP
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Correct Syntax

DP                OR
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Invalid Correct Syntax

-----------------------------------------------------
III) Enhance Tests

Try to increase the usage of VBScript features
---------------------------------------------
a) VBScript features won’t corrupt

b) VBScript features are faster in execution

c) VBScript logic doesn't have any limitations

d) All VBScript features can be used internally as well as externally
-------------------------------------
1) Inserting Checkpoints (9+3) (UFT)

2) Inserting Output Values (7) (UFT)

3) Parameterization (UFT, VBS)
    What is Parameterization?
    Purpose of Parameterization
    Relation between Parameterization and Data Driven Testing
    Difference between Parameterization and Data Driven Testing
    How to Parameterize?

4) Adding Comments (Optional)

5) Inserting Transaction Points (Start/End) (UFT) / Timer Function

6) Generating Steps using Step Generator

7) Synchronization (UFT, VBS)
    What is Synchronization?
    Why Synchronization?
    When Synchronization is required
    How to Synchronize?

8) Define Test Result
    Define Test Result using Reporter Utility Object

9) Calling Actions, Functions (UFT, VBS)

10) Environment Variables

11) Regular Expressions

It is formula for matching patterns

Constant matching

india.doc - india.doc
---------------------
Pattern Matching

i*.

ia...
ib....
.
.
india.doc

Usage of Regular Expressions in UFT
    To handle Dynamic objects
    For Search operation
------------------------------
12) Inserting Flow Control Statements (VBS)

a) Conditional Statements
    1) If statement
    2) Select Case statement

Purpose of Conditional Statements in UFT

    To insert Verification points
    For Error Handling

Types of Conditions

1) Single Condition

If a > b Then

2) Compound Condition

If a > b And a > c Then

3) Nested Condition

If a > b Then
 If a > c Then
  If a > d Then
------------------------------
Positive Condition

If a > b Then

Negative Condition

If Not a > b Then
------------------------------------
b) Loop Statements
    1) For...Next
    2) While...Wend
    3) Do While / Until...Loop
    4) For Each...Next

13) Using Automation Objects

a) File System Operations
    What is Computer File System?
    Examples for File System Operations
    How end user performs File System Operations
    How to perform automatic File System Operations using VBScript
-----------------------------------
Creating Automation Objects

Set Variable = CreateObject("ClassValue")
------------------------------

Class value for creating File System Object

("Scripting.FileSystemObject")
----------------------------------------------------

b) Excel Application Operations

Excel Application Object

It is used to perform automatic Excel Application Operations

Class value for creating Excel Application Object

("Excel.Application")

c) Word Application Operations

d) Database Operations

i) Database Connection Object

ii) Database Recordset object

e) Dictionary Object
----------------------------------------

0 comments:

Post a Comment