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 u do the back end testing in QTP?

2 Answers   HP, SunGard, TCS,


In automation testing, while doing descriptive programing; how will u get the properties of the objects in what format, what type of a document, and by whom? Pls explain in detail. Thanks a lot

2 Answers   Quest,


synchronization, wait,wait Property?

1 Answers  


in which situation u will use recording and in which situation u will used to write script manually

1 Answers  


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

0 Answers   Autodesk, EDS, Wipro,






Explain quicktest professional (qtp) testing process?

0 Answers  


i can done the project with QTP in that time i can say how many members in my team size?

0 Answers  


What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


in a web table , i want you to click a particular object inside cell

2 Answers  


i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0

1 Answers  


how open two urls in one browser? plz urgent

9 Answers   Satyam,


What is the ur roles and responsibilities as automation testing engineer?

2 Answers   Atos Origin,


Categories