Once you have set a breakpoint, by default, test execution will pause just before the breakpoint line (in the Code Editor) or before the breakpoint operation (in the Keyword Test editor). By editing the breakpoint description in the Breakpoints panel or in the Breakpoint Properties dialog you can command the execution to stop at the breakpoint under certain conditions. This breakpoint is called a conditional breakpoint.
TestComplete displays conditional breakpoints with the or glyph. indicates a disabled conditional breakpoint.
To create a conditional breakpoint:
Set the breakpoint to the desired line or operation.
In the Code Editor:
Click the gutter to the left of the desired script line.
Note: The breakpoint must be set on an executable line, not on a comment, declaration or empty line.
In the Keyword Test editor:
Click the indicator area to the left of the desired operation.
- Click on the Debug toolbar to call the Breakpoints panel.
- In this panel, the new breakpoint will be at the
bottom of the list. You can then set one of two types of breakpoint
conditions. The two possible conditions are --
You can modify them using the Condition and Pass Count columns of the Breakpoints panel.
You can also modify the condition and pass count properties of a breakpoint using the Breakpoint Properties dialog. To invoke this dialog, right-click the breakpoint mark in the Code Editor or Keyword Test editor and choose Breakpoint Properties from the ensuing context menu.