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 .. i want to write the script for the combo nox list . For example if any combo box having a multipul itme. So how can i retrive each item for each iteration ? help me out .

2 Answers  


How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )

2 Answers   Infovision,


How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' in command window, how QTP get the result?)

3 Answers  


diff between wr and qtp in detail.

4 Answers  


Approach for Installation,comaptibility,system testing

0 Answers   Diebold,


in howmany ways you perfrom batchtesting

6 Answers   Lehman Brothers,


can any one explain with an example how to test Web application using qtp

3 Answers  


What is the difference between Call to Action and Copy Action?

2 Answers   Satyam,


Hi anyone having QTP 10.0 licence or crack version pls send me in this mail id mdilipkumar04@gmail.com Regards Dilip

1 Answers  


How does quicktest professional identifies the object in the application?

0 Answers  


Can abody explain me Send keys concept

1 Answers   Cap Gemini,


Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


Categories