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

Need one Urgent help please,for ex: first time i created Local reposory and convert that local to shared Rep and save in some where(by using Export local objetcs), unfortunately that saved repository is missed, now i want same repository,but iam not able to export the same repository second time?? i need that Repository only how to get???

2 Answers   TCS,


How to modify the text checkpoint?

0 Answers  


can u tell me the the cost of automation tool QTP ?

7 Answers   Ducont, Sonata,


What is difference between version 6.5 and 8.2 in QTP?

0 Answers  


HI How to take screenshots of a Webpage and saving it in a external word document using QTP.

4 Answers   3i Infotech, TCS,






Explain about reusable actions?

3 Answers   IBM,


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

0 Answers  


What is file database?

0 Answers   Syntel,


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


Why script error occur in between recording in qtp?

0 Answers  


Hoe we can export TEST RESUALT IN to XL-sheet?

1 Answers   IBM,


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


Categories