How to capture the Check point Value into a variable?
Answers were Sorted based on User's Feedback
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 |
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 |
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???
How to modify the text checkpoint?
can u tell me the the cost of automation tool QTP ?
What is difference between version 6.5 and 8.2 in QTP?
HI How to take screenshots of a Webpage and saving it in a external word document using QTP.
Explain about reusable actions?
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....
What is file database?
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
Why script error occur in between recording in qtp?
Hoe we can export TEST RESUALT IN to XL-sheet?
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