QTP Course Content


  • Overview on Test Automation & Types of Test Tool
§         Drawbacks of Manual Testing
§         Advantages of Test Automation
§         Drawbacks of Test Automation
§         Types of Test Tool (Business Classification)
§         Types of Test Tool (Technical Classification)

  • Basic Features of QTP
§         Supporting Environments
§         Version History
§         Types of License
§         Built-in features
§         Integrated Tools (from HP)
§         Integrated Tools (from Others)

  • QTP Test Process
§         Planning
§         Generating Basic Tests
§         Enhancing Tests
§         Debugging Tests
§         Running Tests
§         Analyzing Test Results
§         Reporting Defects

o                    Key Elements of QTP
§         Test Pane
§         Active Screen
§         Data Table
§         Debug Viewer
§         Missing Resources
§         Information
§         QTP Commands
o                    Recording & Running Tests
§         Recording Process
§         Running Process
§         Recording Modes
§         Advantages of Recording
§         Drawbacks of Recording

Software objects
Types of object in QTP
§         Runtime Objects
§         Test Objects
§         Utility Objects
§         Automation Objects

Object Repository
§         Local Repository
§         Shared Repository

Operations on Object Repository
§         Adding Objects
§         Renaming Objects
§         Deleting Objects
§         Associating Object Repositories to an Action
§         Exporting Local Objects
§         Merging Repositories
§         View Options
§         Spying Objects
§         Importing and Exporting Repositories using XML
§         Defining New Test Objects
  • Keyword driven methodology
§         Generating Tests Manually through Expert view
§         Generating Steps through Keyword view
§         Generating statements through Step Generator

Object Identification Configuration
  • Normal Identification
  • Mandatory Properties
  • Assertive Properties
  • Smart Identification
  • Base filter Properties
  • Option filter properties
  • Ordinal Identifier
  • Making Tool Settings Global
Virtual Object Configuration
§         Virtual Object Manager
§         Defining a Virtual Object
§         Removing or Disabling Virtual Object Definitions

Descriptive Programming
§         Advantages of Descriptive Programming
§         Static Programming
§         Dynamic Programming
§         Creating Library files using Constants /Collection objects
§         Handling Dynamic Objects
§         Handling duplicate Objects
§         Retrieving Child Objects
(Activate Click, Close, dblclick, Set, SetSecure, Select, GetVisibleText, GetRoProperty, GetContent, GetItemsCount, GetItem, Sync, Navigate, WaitProperty and Others…)

Inserting Check points
§         Standard Checkpoint
§         Text Checkpoint
§         Text Area Checkpoint
§         Bitmap Checkpoint
§         Database Checkpoint
§         Accessibility Checkpoint
§         XML Checkpoint (From Application)
§         XML Checkpoint (From Resource)
§         Page Checkpoint
§         Image Checkpoint
§         Table Checkpoint
Inserting Output values
§         Standard Output value
§         Text Output value
§         Text Area Output value
§         Database Output value
§         XML Output value (From Application)
§         XML Output value (From Resource)

§         Inserting Wait Statement
§         Inserting Synchronization Point
§         Increasing Tool Default Synchronization Time
§         Sync method (only for web)
§         Selecting appropriate method 
§         Data Driven Testing through Loop statements
§         Dynamic Test Data Submission through Looping
§         Data Driven Testing through Data Table
§         Importing Test Data from External files (Text and Excel Files)
§         Creating a Database, Tables and Entering Data
§         Creating DSN
§         Importing Test Data from Databases
§         Data Driven Testing using Data Table Methods
§         Data Driven Testing by fetching the Test Data directly from a Text file
§         Data Driven Testing by fetching the Test Data directly from an Excel file
§         Data Driven Testing by fetching the Test Data directly from a Database

  • Types of actions
§         Non-reusable Actions
§         Re-Usable actions
§         External Actions
  • Creating an Action
  • Splitting Actions
  • Renaming an Action
  • Deleting an Action
  • Making an Reusable/Non-Reusable
  • Calling an existing Action
  • Copying an Actions
  • Action Parameters

Environment Variables
Built-in Variables
User Defined Variables
Defining, modifying and associating environment variables
Loading Environment file during run-time

Inserting Transaction Points
§         Start Transaction & End Transaction
§         Timer Function
§         Defining Test Results
Adding Comments
§         Purpose of Comments
§         Basic Syntax
§         Comment a Block of Statements
§         Uncomment a Block

Debug Commands & Break Points
§         Step Into
§         Step Over
§         Step Out
o        Inserting/Removing Brake Points
o        Watching variables
o        Changing Variable values
Batch Testing
  • Test Batch Runner
  • Creating Test Batches
  • Providing permission to Test Batch Runner
  • Running Test Batches
  • Running Partial Batches
Automation Object Model
Automating QuickTest Operations

Recovery Scenarios
Trigger events
Pop-Up window
Object State
Test Run Error
Application Crash
Recovery Operations
Keyboard or Mouse Operation
Close Application Process
Function Call
Restart Microsoft Windows
Creating Recovery Scenarios
Associating Recovery Scenarios

VB Script Fundamentals & Features
  • Scripting Languages vs. Programming Languages
  • Basic Features of VBScript
  • Hosting Environments & Script Engines
  • Crating & Running a Script
Data Types, Variables
  • VBScript data types
  • Declaring Variables and Option Explicit Statement
  • Assigning Values to Variables
  • Scalar Variables and Array Variables
  • Dynamic Arrays, Dimensional Arrays

  • Operator Precedence
  • Arithmetic Operators
  • Comparison Operators
  • Concatenation Operators
  • Logical Operators

14 –Flow Control (Conditional Statements)
  • VBScript Conditional Statements
  • Running a statement if condition is true (Single line Syntax)
  • Running a block of Statements if Condition is true
  • Running Certain Statements if a Condition is True and Running Others if a Condition is False
  • Deciding Among Several Alternatives (IF..Else If…)
  • Executing a certain block of statements when two / more conditions are True (Nested If…)
  • Deciding among several Alternatives (Select Case Statement)

15 –Flow Control (Looping through the Code)
  • Do…Loop (Loops while or until a condition is True.)
  • While…Wend (Loops while a condition is True.)
  • For…Next: Uses a counter to run statements a specified number of times.
  • For Each…Next (Repeats a group of statements for each item in a collection or each element of an array.)
  • Nested Loops

  • Types of Procedures
  • Internal & External Functions
  • Creating Library files
  • Creating Sub Procedures
  • Creating Function Procedures
  • Associating Library files
  • Loading Function Libraries run-time
  • Generic Functions
  • Project Specific Functions

  • Conversions (Cdbl. Cint etcc…)
  • Dates/Times (Date, Time, Now, IsDate, DateDiff, etc…)
  • Formatting Strings
  • Input/Output (InputBox and MsgBox)
  • Math
  • Miscellaneous
  • Rounding
  • Strings (Len, Left, Right, Mid Etc….)
  • Arrays (Array, IsArray, Split etc..)
  • Variants

File System Operations
  • Computer File System
  • OS Distribution
  • FileSystemObject
  • Create a Folder
  • Check if the Folder Exist or not? If not create the Folder
  • Copy a Folder
  • Delete a folder
  • Return a Collection of Disk Drives
  • Get available space on a Drive
  • Creating a Text File
  • Check if the File Exist or not? If not create the File
  • Read Data Character by Character from a text file
  • Read Line by Line from a Text File
  • Data Driven Testing by fetching Test data directly from a Text file.
  • Write Data to a Text File
  • Delete a Text File
  • Check if the File Exists or not? If Exists delete the File
  • Calculate size of a Text File
  • Compare Two Text File by Size, by Text and by Binary values
  • Count the number of times a word appears in a Text File
  • Capture all Button Names and Export to a Text File
  • Capture Customer Names from 1 to 10 Orders in FR and export to a Text File

Excel Object Model:
Creating an Automation Object in Excel.Application class

Excel Scripting Examples:
i)                    Create an Excel File
ii)                  Create an Excel file and enter some Data
iii)                 Read an Excel spread sheet
iv)                Write data to an Excel spread sheet
v)                 Add formatted data to a spread sheet
vi)                Sort Excel worksheet
vii)              Data Driven Testing by fetching Test data from an Excel file
viii)             Compare Two Excel files
ix)                Data driven Testing through Data Table methods

o        ActiveX Data Objects
o        ADODB Connection Object & Recordset Object
o        Test Database Creation & Collecting Test Data
o        Databases Connections (Ms-Access, SQL Server and Oracle)
o        Data Driven Testing by fetching Data from a Database
o        Data Comparisons

  • Understanding & Using Regular Expressions
  • Handling Dynamic Objects
  • Using Regular Expressions in Checkpoints
  • Defining Regular Expressions
  • Search Operations
  • Regular expressions in Recovery scenarios
  • Regular Expression Object

  • Overview on Error Handling
  • Error Handling Methods in QTP
  • Synchronization
  • Exist Property
  • Exit Statement
  • On Error Statement
  • Recovery scenarios

  • Handling GUI Objects
  • Object State Verification
  • Input Domain Coverage
  • Output Domain Coverage
  • GUI Script Examples

24 –Web Scripting  
  • Checking Links
  • Testing Forms
  • Output Domain Coverage
  • Cookies Testing
  • Web Script Examples

25 –Introduction, Basic Framework
  • Automation Framework, Types of Framework
  • Creating Folder Structure
  • Creating & Storing Automation Resources
  • Organizing & Managing Resources
  • Generating Driver Scripts
  • Generating Initialization Script (AOM Script)

26 –Data Driven Framework
  • Test Data Collection
  • Ways of Parameterization
  • Data Driven Implementation Techniques
  • Using Data Table Methods

  • Keywords
  • Keyword Driven Approach
  • Creating Functions
  • Creating Test Automation resources
  • Creating Organizer Spread sheet
  • Generating the Driver Script
  • Generating the Initialization Script

28 –Hybrid Framework

  • Hybrid Automation Framework
  • Keyword Driven & Data Driven Test Approach
  • Advantages of Hybrid Approach
  • Organizing & Managing Resources

I) Introduction

1) Test Automation
2) Disadvantages of Manual Testing
3) Advantages of Test Automation
4) Drawbacks of Test Automation
5) Types of Test Automation
6) Functional Test Automation
7) Types of Test Tool
8) Functional & Regression Testing Tools
9) History of QTP
10) Basic Features of QTP
11) Installation process of QTP

II) QuickTest Window / Key Elements of QTP

1) Test Pane
2) Active Screen
3) Data Table
4) Debug viewer
5) Information pane
6) Missing Resources pane
7) QTP Tool bars
8) QTP Menu items / QTP commands
9) Tool Settings

III) Object Repository

1) Software objects
2) Types of object in QTP
a) Runtime Objects
b) Test Objects
c) Utility Objects
d) Automation Objects
3) Object Repository
a) Local Repository
b) Shared Repository
4) Operations on Object Repository
a) Adding Objects
b) Renaming Objects
c) Deleting Objects
d) Associating Object Repositories to an Action
e) Exporting Local Objects
f) Merging Repositories
g) View Options
h) Spying Objects
i) Importing and Exporting Repositories using XML

IV) QTP Testing Process

1) Planning

a) Analyzing the AUT
b) Implementing Automation Framework
c) Creating/Selecting Test cases
d) Collecting Test Data
e) Object Identification Configuration
i. Normal Identification
1. Mandatory Properties
2. Assertive Properties
ii. Smart Identification
1. Base filter Properties
2. Option filter properties
iii. Ordinal Identifier
iv. Making Tool Settings Global

2) Generating the basic Test

a) Recording
i. Normal Recording
ii. Analog Recording
iii. Low Level Recording
iv. Record and Run Settings
b) Keyword driven methodology/Shared object repository method/Preparing the script manually
c) Descriptive programming/Programmatic Descriptions
i. Entering Programmatic Descriptions Directly into Statements
ii. Using Description Objects for Programmatic Descriptions
iii. Retrieving Child Objects
iv. Using the Index Property in Programmatic Descriptions
v. Creating Checkpoints Programmatically

3) Enhancing the Test

a) Inserting Check points
i. Standard Checkpoint
ii. Text Checkpoint
iii. Text Area Checkpoint
iv. Bitmap Checkpoint
v. Database Checkpoint
vi. Accessibility Checkpoint
vii. XML Checkpoint (From Application)
viii. XML Checkpoint (From Resource)
ix. Page Checkpoint
x. Image Checkpoint
xi. Table Checkpoint
b) Inserting Output values
i. Standard Output value
ii. Text Output value
iii. Text Area Output value
iv. Database Output value
v. XML Output value (From Resource)
c) Adding Comments
d) Synchronization
i. Inserting Wait Statement
ii. Inserting Synchronization Point
iii. Increasing Tool Default Synchronization Time
iv. Sync method (only for web)
v. Selecting appropriate method
e) Parameterization
i. Data Driven Testing through Loop statements
ii. Dynamic Test Data Submission through Looping
iii. Data Driven Testing through Data Table
iv. Importing Test Data from External files
v. Creating a Database, Tables and Entering Data
vi. Creating DSN
vii. Importing Test Data from Databases
f) Inserting Programmatic statements
i. Inserting Conditional Statements
ii. Inserting Loop statements
iii. Using VB Script Built-in Functions
g) Generating steps through Step Generator
h) Inserting Transaction points
i. Start Transaction
ii. End Transaction
i) Enhancing Tests with the windows API

4) Debugging the Test

a) Debug Commands
i. Step Into
ii. Step Over
iii. Step Out
b) Inserting/Removing Brake Points
c) Watching variables
d) Changing Variable values

5) Running the Test

a) Normal execution
b) Test Batch execution
i. Test batch formation
ii. Batch execution
iii. Partial Batch execution

6) Analyzing the Test Results

a) Test Result Viewer
b) Analyzing Test Results
c) Exporting Test Results
d) Test Results Deletion

7) Reporting Defects

a) Manual Defect Reporting
b) Tool based Defect Reporting
c) Integration with Quality Center

V) QTP Advanced Features

1) Regular expressions

2) Environment Variables
a) Built-in Variables
b) User Defined Variables
c) Defining, modifying and associating environment variables

3) Methods
a) QTP Methods
b) VB Script Methods

4) Actions
a) Types of actions
i. Non-reusable Actions
ii. Re-Usable actions
iii. External Actions
b) Creating an Action
c) Splitting Actions
d) Renaming an Action
e) Deleting an Action
f) Making an Reusable/Non-Reusable
g) Calling an existing Action
h) Copying an Actions
i) Action Parameters

5) Functions
a) Preparing Procedures
b) Associating Procedures to QTP tests
c) Modifying Procedures
d) Calling Procedures

6) Dynamic Handling of Object Repositories
a) Loading Repositories directly through Utility Object
b) Finding Repository Position
c) Removing Repositories

7) Data Driven Testing through Scripting
a) Importing Data from Flat files
b) Importing Data from spread sheets
c) Importing Data from Databases
i. Ms Access
ii. SQL Server
iii. Oracle

8) File System Operations
a) File system Object
b) Creating Files
c) Reading Data
d) Writing Data
e) Creating Folders
f) Creating Drives

9) Recovery Scenarios
a) Trigger events
i. Pop-Up window
ii. Object State
iii. Test Run Error
iv. Application Crash
b) Recovery Operations
i. Keyboard or Mouse Operation
ii. Close Application Process
iii. Function Call
iv. Restart Microsoft Windows
c) Creating Recovery Scenarios
d) Associating Recovery Scenarios

10) Virtual Object Configuration
a) Virtual Object Manager
b) Defining a Virtual Object
c) Removing or Disabling Virtual Object Definitions

11) Test Automation Frameworks

a) Automation Framework
b) Record & Playback or Linear Framework
c) Modular Driven framework
d) Data Driven Framework
e) Keyword Driven framework
f) Hybrid driven Framework
g) Driver Script Creation
h) Initialization Script

12) Automation Object Model

VI) VB Script for QTP

1) Introduction 

a) Introducing VB Script
b) Windows Script Host (WSH)
c) Crating a script with Note pad
d) Hosting Environments & Script engines
e) Available Script engines

2) Comments

a) Purpose of Comments
b) Syntax
c) Comment/Uncomment a block of statements

3) VB Script Variables

a) Declaring Variables
b) Option Explicit Statement
c) Naming restrictions for Variables
d) Scope of Variables
e) Life time of Variables
f) Assigning values to Variables
g) Scalar Variables and Array Variables
h) Dimensional Arrays
i) Dynamic Arrays

4) VB Script Data Types

a) Variant Sub types

5) VB Script Operators

a) Operator precedence
b) Arithmetic Operators
c) Comparison Operators
d) Concatenation Operators
e) Logical Operators

6) Input/Output Operations 

a) Inputbox Function
b) Msgbox Function

7) Constants

a) Creating Constants
b) Using Constants
c) Modifying Constants

8) Conditional Statements

a) If…Then…Else Statement
b) Select Case Statement
c) Making Decisions Using If...Then...Else
d) Running a Statement if a Condition is True (single statement)
e) Running Statements if a Condition is True (multiple statements)
f) Running Certain Statements if a Condition is True and Running Others if a Condition is False
g) Deciding Between Several Alternatives
h) Executing a certain block of statements when two / more conditions are True (Nested If...)
i) Making Decisions with Select Case
j) Other Examples

9) Looping Through Code

a) Loop statements
b) Do Loops
c) While…wend statement
d) For…Next statement
e) For Each…Next statement

10) Other Statements

11) Procedures 

a) Sub Procedures
b) Function Procedures
c) Getting Data into and out of procedures
d) Using Sub and Function procedures in code

12) VB Script Built-in Functions

a) Conversions
b) Dates/Times
c) Formatting Strings
d) Input/Output
e) Math
f) Miscellaneous
g) Rounding
h) Strings
i) Variants

13) Methods

14) Objects

a) ADODB connection
b) ADODB record set
b) Dictionary
c) Excel Application
d) File system Object
e) Network
f) Shell
g) Word Application
h) XML Document

15) Classes

16) Keywords

17) Errors

a) VB Script Runtime Errors
b) VB script Syntax Errors

18) VB Script syntax rules and guidelines

19) VB Script Coding conventions

No comments: