How to use custom checkpoints in QuickTest Professional?
Answer / anupam mishra
Custom check points ara user specifice Check points,if we
want to check particular object/or its any property then we
make custome check points
Example
Function VerifyObjectExists(AppObject )
If AppObject.Exist Then
'Print "Object Exist"
VerifyObjectExists= "True"
Else
;Print "Object does not exist"
VerifyObjectExists="False"
End If
End Function
set Obj=dialog("Login").WinButton("OK")
VerifyObjectExists(Obj)
Is This Answer Correct ? | 8 Yes | 1 No |
What are associated files in QTP?
Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
when do we write a script in qtp?(plz give me more then 2 reasons)
What is FRAME WORK? How many Frameworks can QTP supports?
Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script
How the automated tests in org
wht is the difference between action and functio?
How can we open an Excel sheet through the script
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
Ehat is the descriptive programing in QTP?
what is the purpose of SetTOProperty Method?
1 Answers Cap Gemini, iGate, Wipro,