Thursday, 4 September 2014

Debug Viewer Pane

We use the Debug Viewer pane to view, set, or modify the current value of objects or variables in your function library, when it stops at a breakpoint, or when a step fails and you select the Debug option.
The Debug Viewer is useful for debugging operations (functions) in a business component, but is not intended for use with other types of component steps.

To open the Debug Viewer pane:
  • Choose View > Debug Viewer or click the Debug Viewer button.
  • The Debug Viewer pane opens. 
 
The Debug Viewer tabs are used to display the values of variables and objects in the main script of the selected subroutine.

Debug Viewer consists of three tabs:
* Watch Tab
* Variables Tab
* Command Tab

Watch Tab:
You can view the current value of any variable or VBScript object in your function library by adding it to the Watch tab. As you continue stepping into the subsequent steps in your function library, QuickTest automatically updates the Watch tab with the current value for any object or variable whose value changes. You can also change the value of the variable manually when the function library pauses at a breakpoint.

  • To add an expression to the Watch tab:
  • Perform one of the following:
  • Click the expression and choose Debug > Add to Watch.
  • Click the expression and press Ctrl+T.
  • Right-click the expression and choose Add to Watch from the context menu.
  • In the Watch tab, paste or type the name of the object or variable into the Name column and press Enter to view the current value in the Value column.
Note: You can add an expression to the Watch tab from a function library (and not from a business component).

Variables Tab:
QuickTest automatically displays the current value of all variables in the current function in the Variables tab—up to the point where the function library is stopped or paused.
For example, if you are stepping through a function, as you step into each step, QuickTest adds the current value for any step variable to the Variables tab grid. As you continue stepping into the subsequent steps, QuickTest automatically updates the value displayed in the Variables tab for any variable whose value changes. You can also change the value of the variable manually, during the breakpoint pause.

Command Tab:
Use the Command tab to execute a line of script to set or modify the current value of a variable or VBScript object in your function library. When the run continues, QuickTest uses the value that you set.

No comments:

Post a Comment