Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Help Members By Posting Answers For Below Questions

Please guide me release notes of Automation once scripts are completed

1825


why you have standardized functions? plzzz guys with real time exp. do answer

1800


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?”

1109


Do you know how to connect database? Can you tell me the procedures?

933


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

1901


How do Parameterization and Data-Driving relate to each other in QTP?

1011


what function you write to do database testing with the help of qtp?

1764


What are the views available in qtp?

981


When you open QTP, how many sheets you can see?

1023


On what document base Descriptive programming is written if build is not yet ready ?

1349


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

988


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

971


How do you configure QTP AND Test director?

1886


Brief the process of testing with UFT?

1019


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..

2148