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 |
Hi guys can any plz help me how to send fax in sample Flight Appication
How to open a new test using QTP?
anybody wants to learn QTP with realtime implementations and complete framwork contact to this mail id ciraaj@gmail.com
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You
who will distribute the project modules for testing in testing team ?
What are the types of object repositories? Which one is you are using?
How many ways we can parameterize data in quicktest professional?
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
Give me an example where you have used a COM interface in your QTP project?
how to write regular expression for Date field?
Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???