Tuesday, June 17, 2008

QTP Debug Menu



Menu ItemShort-Cut KeyUse
Pause
You can temporarily suspend a run session by choosing Debug > Pause
Step Into
Runs only the current line of the script. If the current line calls a method, the method is displayed in the view but is not performed.
Step Over
Runs only the current line of the script. When the current line calls a method, the method is performed in its entirety, but is not displayed in the view.

Step Out
Runs to the end of the method then pauses the run session. (Available only after running a method using Step Into.)
Run to Step
Runs until the current step.
Start From Step
You can instruct QuickTest to begin your debug session from a particular step instead of beginning the run at the start of the component. To instruct QuickTest to run from a particular step:
Select the step from which you want to begin debugging:
Insert your cursor in the step where you want QuickTest to start the run and choose Debug > Start from Step,
Add to Watch
Adds the selected item to the Watch tab.
Add / Remove BreakpointF9Sets or clears a breakpoint in the component.
Enable / Disable Breakpoint
Enables or disables a breakpoint in the component.
Clear All Breakpoints
Deletes all breakpoints in the component.
Enable / Disable All Breakpoint

To enable/disable all breakpoints:

Choose Debug > Enable/Disable All Breakpoints