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 key word driven frame work how to use keyword driven frame in QTP in a project
take one exmple and write on that discriptive programe in qtp?
how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance
Explain qtp(quick test professional)?
what area in a web application cannot be automated.
what is object and child object.. explain ..if possible give some example for better understanding ..
Can we Test Welcome Screens and Process Images with QTP
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
What is object spy in quicktest professional (qtp)?
What is the use of sendkeys.In which cases we Use this sendkey.Pls explain with example.
What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do?
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]