How to use Watch in QTP??

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).

Tip: You can also use the Variables tab to view the current values for all variables up to the current step in the function library.

2 comments:

Unknown said...

can u give me an example in this case... say google.com where in i m searching for a keyword

irina'sStudio said...

how to remove parameter from the watch window???