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 |
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
what does it mean when a check point is in red color? what do u do?
How can I check if a environment variable exist or not?
How to load a object repository(using VBScript) ... very urgent....
Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com
I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.
what type of scripts are asked in qtp?
Can anyone explain me about child objects in detail;when they are used and why do we need them ? please give me sample code for this if possible.
How to find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance
In qtp, explain what is crypt object
What is text/text area checkpoint?
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)