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 |
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
actually how many hours per one day we will work on automation(qtp) in real time
how will u choose a tool for test automation ?
what is the difference between QTP 8.0 & 9.0?
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
How to use actions in qtp ?
WHICH PROCESS U FOLLOW IN COMPANY
Explain the keyword createobject with an example.
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT
what is selective recording ? and normal recording?
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?
Action1: I have a value "test" stored in a variable X. I want to use that variable X in Action2 .. how?