Monday, July 11, 2011

Debugging

The following is the debugging process and the operational overview of the different step command available during debugging
Debugging:

Debugging is a process of executing the script or a program in a user desired passion with some temporary breaks in order to identify the errors.

To do the same QTP has provided step commands and break point feature.
Step commands: -
  1. Step into
  2. Step Out
  3. Step over


1. Step into:
Step into is used for executing a single statement then it will step in to the function or action and stops the execution.
2. Step Out:
Step out is used for executing all the remaining statements from the position of pointer in the function of the action and comes out of the function or action and stops execution
3. Step Over:
Step over is used for executing the single statement if that statement is a function call or action call then it will execute all the statements in side the function or action once and stops the execution

Break Point:
Break point is the feature provided by QTP, which is used for breaking the execution temporarily.

Debug viewer Pane:
Debug viewer pane is used for viewing, modifying or setting the currant value of the variables or expressions during the execution break with the help of three tabs by name

  1. Watch expressions
  2. Variables
  3. Command

No comments:

Post a Comment