| || |
can anyone give me the examples of exceptions? i know there r 4 types of exceptions.pop-up,object state,test run,application crash.but how to write the code in qtp descriptive program for exceptions?
I think, you are saying about using of recovery scenarios.
Try this code:
Err.Raise 12112, , "some exception"
I sure, that the recovery scenarios can't proceed this code correct.
4 Exceptions that u have specified can be used only by recording the particular situation. Say for example, u have 8 lines of qtp script and by mistakenly if u make a spelling mistake in the 6th line, while qtp execution, it will throw an error, then u have to record that particular situation (or forecasting the place of error) and call that recovery scenario in that place, so that qtp will ignore that line and proceed with the rest of the lines.
In Descriptive Programming, u have to spy all the objects and u have to build the code accordingly.