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

Explain advantages and disadvantages of ddf?

595


Tell me about your project? please help me how to tell about insurance project

1529


how do i know how to use tools

1445


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1358


Why to use descriptive programming?

561






How do you delete unwanted results in qtp?

600


Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please

1514


what type of run time errors you get while you ar edoing rpg program?

1508


Explain data driven framework?

575


How to call a test from another test?

678


How is UFT 11.5 version different from UFT 12.0?

604


What are the types of object repositories? Which one is you are using?

628


What are main panes available in qtp test browser?

531


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

2800


Can we create a qtp test from qc?

586