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
Please guide me release notes of Automation once scripts are completed
why you have standardized functions? plzzz guys with real time exp. do answer
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Do you know how to connect database? Can you tell me the procedures?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
How do Parameterization and Data-Driving relate to each other in QTP?
what function you write to do database testing with the help of qtp?
What are the views available in qtp?
When you open QTP, how many sheets you can see?
On what document base Descriptive programming is written if build is not yet ready ?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
How do you configure QTP AND Test director?
Brief the process of testing with UFT?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..