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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nipunkumar
Hi Nalini,
Thanks for ur answer that really worked for me.
i have updated my code without using Reporter.Filter=3,
reporter.Filter=0. Can u please explain me about these also
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you move objects from local object repository to shared object repository???What are methods?
After running scripts how you report results ,there is any specific report form
How often were they executed?
How to see the screens after running test in QTP?
How to take screenshots in qtp?
can we enable smart identification for test object
How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.
How do you learn the object in QTP?
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?
Define object spy ?
How you used DDT in QTP?