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 the use of an object spy tool in qtp?
What is the difference between run time object and test object in QTP?
what are the different data driven types?
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..
What is system testing and what are the different types of tests you perform in system testing?
how much space occupies in object respository by default?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
What is the exact difference between QTP and RFT ?
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!
While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to call a function. Can u tell me that function.
4 Answers Alcatel-Lucent, Ordain Solutions,
Explain the concept of object repository?
How to Practice QTP Scripts?