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
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 |
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 |
what is Entry Criteria and Exit Criteria?
Explain the use of action split in qtp?
Hi, I Install QTP 9.2 in windows Vista. but it is not supporting IE. it is supporting only windows based application. could I change any setting in Vista for supporting IE.. ?? thanks in advance...
Why is Client side image is preferred over server side image?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Types of properties that Quick Test learns while recording?
what is the difference between call to copy action and call to an existing action
hi Action 1 and action2 if we save it in C:, what folders will be created explain plz
How to use transactions in qtp?
Synchronozation types in QTP
which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp
What is the main disadvantage of using low level and Analog modes?