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 integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

0 Answers   CTS, Nabard,


actually how many hours per one day we will work on automation(qtp) in real time

1 Answers   Synechron,


how will u choose a tool for test automation ?

1 Answers  


what is the difference between QTP 8.0 & 9.0?

4 Answers  


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

0 Answers  






How to use actions in qtp ?

0 Answers  


WHICH PROCESS U FOLLOW IN COMPANY

1 Answers   IGT,


Explain the keyword createobject with an example.

1 Answers  


WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT

3 Answers   Wipro,


what is selective recording ? and normal recording?

1 Answers   iSoft,


Test script is generated and it is enhanced.It is required to be saved.But the disk space is insufficient.You are not permitted to delete any scripts.How are you going to save?

1 Answers   Accenture, DELL,


Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?

1 Answers  


Categories