Tuesday, July 31, 2012

Recovery Vs On error Resume Next

*********************************************************************************
What is Recovery and  On error Resume Next?
*********************************************************************************
        Recovery scenario mechanism  and On error Resume Next both are used to avoid the effect
of unexpected errors caused by the application as well as script

*********************************************************************************
Why Recovery and On error Resume Next?
*********************************************************************************
         As automation test engineer we need to develops the scripts such away that scripts shouldn' t effect  even if any unexpectd error occurs

*********************************************************************************
Genaerally while executing scripts we may get two types of unexpected errors

1)Error From application
2)Error From Script

*********************************************************************************
How to handle the Error in the application?
*********************************************************************************
                      To handle the Unexpected errors in application we will use QTP recovery scenarios mechanism or by VB script if else condition

*********************************************************************************
How to handle the Error in the Script?
*********************************************************************************
            To handle the Unexpected errors in script we will use VB script On error resume next

*********************************************************************************


No comments:

Post a Comment