7 Stages of QTP Testing Process
1) Planning
o Analyzing the AUT
o Automation Test Plan Generation
o Automation Framework Implementation
o Generating/Selecting Test cases for Automation
o Collecting Test Data
o QTP Tool Settings Configuration
2) Generating Tests
o Recording
o Keyword driven methodology
o Descriptive Programming
3) Enhancing Tests
o Inserting Checkpoints
o Inserting Output values
o Adding Comments
o Synchronization
o Parameterization
o Inserting Flow Control Statements
o Calling User defined functions and/or Reusable Actions
o Generating Steps though Step Generator
o Inserting Transaction Points
o Regular Expressions
4) Debugging Tests
o Debug Commands & Break Points
o Step by step execution
o Watching Variables
o Changing values of variables
5) Running Tests
o Normal Execution
o Batch Execution
o Through AOM Scripting
o Tests Running through framework
o Scheduled Execution
6) Analyzing Results
o QTP Result window
o Defining our own Results
o Exporting Results
o Deleting Results
7) Reporting Defects
o Manual Defect Reporting
o Tool based Defect Reporting
o Working with Quality Center
-----------------------------------------------------------
-----------------------------------------------------------
Types of Statements in QTP Test / Test Script
i) Declarations (Variables and constants)
Dim x, y, z
Const City, Price
ii) Object calls
Ex1: Dialog("Login").WinEdit("Agent Name:").Set "gcreddy"
Ex2: Browser("Google").Page("Google").Link("Gmail").Click
iii) Comments
iv) Flow Control Statements (Conditional & Loop)
Ex:) If Total=Tickets*Price Then
Msgbox "Test Passed"
Else
Msgbox "Test Failed"
End If
v) Function / Action calls
Ex: Call Login("gcreddy","mercury")
vi) Utility Statements
Ex1: SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
**It launche the Application
Ex2:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","http://www.icicibank.com/"
vii) VB script other statements
Examples:
Option Explicit
Wait (14)
No comments:
Post a Comment