Monday, 10 March 2014

QTP Inserting Comments & Statements

Statements:  'Utility Statements SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe" S... thumbnail 1 summary
Statements: 

'Utility Statements
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"

SystemUtil.Run "Notepad.exe"

'Object Calls:

Dialog("Login").WinButton("Cancel").Click

Browser("Google").Page("Google").Link("Google").Click



Call Login("userName","Password")


Window("Flight Reservations").WinEdit("Name").Check CheckPoint("Name:")
wait(2)
Window("Flight Reservations").WinEdit("Name").Ouput CheckPoint("Name:")

 Comments:

Ex1: 

'****************************************************************
'Test Name: Verify the Total

'Author: abcd

'Date of Creation: November 21st 2011

'Date of Modification: NA

'Pre-requasites:
'Registered Agent
'Login.tsr, Orders.tsr, xyz.vbs

'Test Flow:
'Launch the Application
'Enter Agent name & password
'Select default Button
'Open an Order
'Read tickets, Price and Total Values
'Convert the values from string type to Integer and double types
'Compare If Total=Tickets * Price or not
'Close the Application

'****************************************************************
'****************************************************************
'Function Name: Login Operation

'Author: abcd

'Date of Creation: November 21st 2011

'Date of Modification: NA

'Purpose:

'Input:

'Output:




Ex2:   

'Project Name: Flight Application
'Module Name: Login Application
'Tester Name: Rohith
'Submited To:  Kirran
'Dater from: 15/11/2012







No comments

Post a Comment