How to capture screen shots when an error occurs?
Answer Posted / ram.polavarapu
browser("").page("").webedit("").set"ram@yahoo.com"
browser("").page("").webedit("").set"fbnjvkjnbv"
browser("").page("").webbutton("signin").click
if browser("").page("").exist then
reporter.reportevent 0,"login","login is sucess"
else
browser("").page("").capturebitmap "b.bmp"
reporter.reportevent 1,"login","lgin is not sucess","b1.bmp"
end if
note->give the wrong psw ang you will get the result in
results window
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to check feasibility of the appliction?in automation testing?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What do you to script when objects are removed from application?
What is the diff between image and bitmap check point?
How do you create regression test packs?
how can i call function (which has link with excell sheet at a remote location) within another function
How to find the name of the machine where you are running your automation scripts in qtp?
when u script reveiwing in which area u more concentrates?
what could go wrong with test automation?
what is ODC and GDC?
What are the types of object repositories? Which one is you using?
What is file database?
How to execute a winrunner script in quicktest professional (qtp)?
How many types of recording facility are available in quicktest professional?
What are the different types of action?