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



Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bi..

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

Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bi..

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

Post New Answer

More QTP Interview Questions

HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

3 Answers   CTS,


in qtp wha t is synchronisatin pt,what is the maximam time out

3 Answers  


How to identify the objects using descriptive programming when the object property values are same, i mean in a page 10 objects are there i want to click the 6th object but all the object property values are same? using descriptive programming

2 Answers   Genpact,


what is the frame work your using in automation ?

4 Answers  


What is the difference betweent test and component?

1 Answers  






I would like to do some certifications in QTP. please suggese what kind of certifications can i do. I am currently put up at chennai. So please suggest some reputed centres where these courses are offered.

1 Answers  


how to get column count in datatable

3 Answers  


How does QTP identifies the object in the application?

1 Answers   Crea,


How to export QTP results to an ".xls" file?

1 Answers  


In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

0 Answers  


Does UNIX support QTP? If not what is the other tool used for Unix environment?

2 Answers   Amdocs, Fidelity,


Define Canvas view of UFT?

0 Answers  


Categories