Friends please let me know how id following possible in QTP:
Can I apply conditional loop on a bitmap/image or any other
checkpoint. Like if checkpoint passes then if or Else
Answer Posted / nalini
yeah..we can do this. we need to get the status of
checkpoint and use conditional statement. Below is the
sample code for that.
Reporter.Filter=3
bval=Browser("Google").Page("Google").Image("img").Check
(CheckPoint("img"))
Reporter.Filter=0
If bval Then
Browser("Google").Page("Google").WebEdit
("q").Set "bitmap checkpoint in QTP"
Browser("Google").Page("Google").WebButton("Google
Search").Click
Else
Reporter.ReportEvent 1,"check","Bitmap doesn't
match"
End if
Hope this will help you. let me know if you have any doubts.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
What is an object repository?
any body can you help me what is the script to automate an comand promt
How is the Bitmap checkpoint different from Image checkpoint?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
Please guide me release notes of Automation once scripts are completed
what is the frame work in J-meter?
What are the methods of the TextStream object that are used for reading from a text file?
What is an optional step in qtp ?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
What is the syntax to call one action in another?
How to get Traceability matrix from TD?
What are the Disadvantages of shared object repository?
What is the difference between byref and byval in qtp?
Differences between quicktest professional (qtp) and winrunner?