Debugging

After the script are developed to make sure that the scripts are correct and we need to debug the script

Script can have two types of errors:
1.    Syntactical Errors        2. Logical Errors.
 

Syntactical Error can be identified by running script or saving script and verify in Information pane
 

For Logical Error we need to apply Debug options.
 


Debugging is a process of executing the test script with some temporary breaks in order to identify the errors.
 

To do the same QTP has provided below Debug options:
1.    ExitRun
2.    ExitAction
3.    Break Point
4.    Step commands
    a. Step Into
    b. Step Out
c. Step Over
 

Step Into: It is used for executing a single step, If that step is a function call or action call then, it will step into the function or action.
 

Step out: It is used to executing all the remaining statements from the position of the pointer in a function or an action and steps out of the function or an action.

Step over: It is used for executing a single step. If that step is a function call or an action call then, it will execute the complete block of statements in that function or an action and steps out of that function or an action.
 

Break Points: It is a feature provided by QTP, which is used for breaking the execution temporarily

Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com