Professional Documents
Culture Documents
com
Prerequisites:
a) Software Testing Principles & Practices
b) QTP Basics
c) Programming Fundamentals
d) Database Fundamentals
*******************************************************************
www.gcreddy.com 1
gcreddy@gcreddy.com
Enhancing Tests
Debugging Tests
Running Tests
Analyzing Test Results
Reporting Defects
Object Repository
Local Repository
Shared Repository
www.gcreddy.com 2
gcreddy@gcreddy.com
Descriptive Programming
Advantages of Descriptive Programming
www.gcreddy.com 3
gcreddy@gcreddy.com
Static Programming
Dynamic Programming
Creating Library files using Constants /Collection objects
Handling Dynamic Objects
Handling duplicate Objects
Retrieving Child Objects
Methods/Operations
(Activate Click, Close, dblclick, Set, SetSecure, Select, GetVisibleText, GetRoProperty,
GetContent, GetItemsCount, GetItem, Sync, Navigate, WaitProperty and Others…)
www.gcreddy.com 4
gcreddy@gcreddy.com
Environment Variables
Built-in Variables
User Defined Variables
Defining, modifying and associating environment variables
www.gcreddy.com 5
gcreddy@gcreddy.com
Recovery Scenarios
Trigger events
Pop-Up window
www.gcreddy.com 6
gcreddy@gcreddy.com
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
a) Requirements
b) Test plan
c) Test Lab
Creating folders
www.gcreddy.com 7
gcreddy@gcreddy.com
d) Defects
Posting defects
Tracking defects
VB Script
Day 13 –Introduction, Variables
www.gcreddy.com 8
gcreddy@gcreddy.com
www.gcreddy.com 9
gcreddy@gcreddy.com
o Math
o Miscellaneous
o Rounding
o Strings (Len, Left, Right, Mid Etc….)
o Arrays (Array, IsArray, Split etc..)
o Variants
Examples:
o Create a Folder
o Check if the Folder Exist or not? If not create the Folder
o Copy a Folder
o Delete a folder
o Return a Collection of Disk Drives
o Get available space on a Drive
o Creating a Text File
o Check if the File Exist or not? If not create the File
o Read Data Character by Character from a text file
o Read Line by Line from a Text File
o Data Driven Testing by fetching Test data directly from a Text file.
o Write Data to a Text File
o Delete a Text File
o Check if the File Exists or not? If Exists delete the File
o Calculate size of a Text File
o Compare Two Text File by Size, by Text and by Binary values
o Count the number of times a word appears in a Text File
o Capture all Button Names and Export to a Text File
o Capture Customer Names from 1 to 10 Orders in FR and export to a Text File
www.gcreddy.com 10
gcreddy@gcreddy.com
www.gcreddy.com 11
gcreddy@gcreddy.com
www.gcreddy.com 12
gcreddy@gcreddy.com
www.gcreddy.com 13