How to capture the Check point Value into a variable?

Answers were Sorted based on User's Feedback



How to capture the Check point Value into a variable?..

Answer / jay prakash

Every checkpoint will return a value.
You can capture that as below:

Dim strRtnVal

strRtnVal=Window("Flight Reservation").WinObject("Insert
Done").Check (CheckPoint("Insert Done"))
msgbox strRtnVal

The catch here is put "CheckPoint("Insert Done")" in
brackets as (CheckPoint("Insert Done"))

Please let me know if it helps.

Is This Answer Correct ?    5 Yes 3 No

How to capture the Check point Value into a variable?..

Answer / rajkumar

checkpoints have values like true/pass(bo0lean)
if your insert one checkpoint it's "pass" it will return
True otherwise it's return false
s=Browser("Google").page("Google").check check("orkut")
if s=True Then
msgbox "it's as per expected"
else
msgbox "it's not as per expected"

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752

1 Answers   AppLabs,


what is object and child object.. explain ..if possible give some example for better understanding ..

0 Answers   HCL,


Is any limitation to xml checkpoints?

0 Answers  


How do you configure QTP AND Test director?

0 Answers  


how to invoke the web application through script in qtp

8 Answers   Synechron,






what is the difference between Automation object model(AOM) and test object model(TOM)

2 Answers   UHG,


How do we retrieve the content from a text box in a web page

2 Answers  


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,


What are the different types of functions available in qtp and explain ?

0 Answers  


How to open a new test using quicktest professional?

0 Answers  


what is keyword driven framework in qtp.

13 Answers   Cognizant, TCS,


How to use transactions in qtp?

0 Answers  


Categories