How to use custom checkpoints in QuickTest Professional?



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

Post New Answer

More QTP Interview Questions

What are associated files in QTP?

2 Answers  


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

3 Answers   IBM,


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

1 Answers  


when do we write a script in qtp?(plz give me more then 2 reasons)

1 Answers  


What is FRAME WORK? How many Frameworks can QTP supports?

4 Answers  


Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script

18 Answers   IBM,


How the automated tests in org

1 Answers   Maintec,


wht is the difference between action and functio?

3 Answers  


How can we open an Excel sheet through the script

8 Answers   eSymbiosis,


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

0 Answers  


Ehat is the descriptive programing in QTP?

4 Answers  


what is the purpose of SetTOProperty Method?

1 Answers   Cap Gemini, iGate, Wipro,


Categories