How to capture the Check point Value into a variable?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Approach for Installation,comaptibility,system testing

1711


Where we can use the analog mode and where we can use the low – level mode?

569


Explain actions in qtp ?

562


How we can import data from database?

651


Explain xml checkpoints.

605






What are the different types of recording modes?

540


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1540


How to break the object spy ?

664


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1508


HOw to add the recovery file at runtime to the test file .

1543


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1432


What are the key elements available in test result window?

628


How many types of Automation frameworks are there in UFT? Describe them.

559


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2427


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1326