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 |
What is wrong in my code?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
How to change the scripts from Per-Action object repository to shared object repository
what is Function Definition Generator? can any one explain me in details?
write is the code for regular expression in QTP
What is the difference between local and shared object repository in qtp?
Hi friends I am new in Qtp. now i am Searching on Qtp give real time inter questions with answers.pls help me
how to identify the user defind varibles? plz tell me
In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit?
Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,
Can we Script any test case with out having Object repository? or Using Object Repository is a must