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 |
How to open any application during Scripting in QTP?
How to Creating an Output Value using QTP?
I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail
how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"
What is the condition or scenario that leads the use of object spy in qtp? (while recording we can get all the properties) then wat leads to use this?
can i compare two databases using QTP ?
what are the attributes of QTP?
Will down time for server and content maintenance/upgrades be allowed? how much?
In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
give the code to count child objects (Total) in the page