Code Editor - Context Menu

Applies to TestComplete 15.64, last modified on May 16, 2024

The Code Editor context menu provides commands for managing, running and debugging scripts displayed in the editor. To invoke the context menu, right-click within the editor. The available commands are:

 Run This Routine

Runs the routine whose body was right-clicked to invoke the context menu.

 Record This Routine

Starts recording and appends recorded script statements to the current script function.

 Add Routine to Test Items

Appends the current script function to the end of the list of test items of your TestComplete project. After this, the function will become part of the project run, that is, the test runner will execute it whenever you run your project. You can see the added function in the Execution Plan editor of your project. See also Tests, Test Items, and Test Cases.

 Set Next Statement

Sets an execution point while you are debugging script code.

Go to Error

Jumps to the first syntax error in the unit currently opened.

Go to Declaration

Navigates to the declaration of the routine, variable, constant, or name mapping object whose name was right-clicked. The routine, variable, or constant declaration will be displayed in the Code Editor, whereas the name mapping object declaration will be displayed in the Name Mapping Editor.

Code Completion

Opens the Code Completion window.

Code Templates

Inserts the code template to your script code.

Cut, Copy, Paste

Lets you perform standard editing operations against the script code.

Debug

Contains the submenu that provides you with commands for debugging script code.

Toggle Breakpoint

Sets a breakpoint on the current line or removes it from that line. You cannot set a breakpoint on lines containing non-executable code such as comments, declaration statements or blank lines.

 Evaluate

Opens the Evaluate dialog.

Run to Cursor

Runs the test at full speed to the location of the cursor in the test editor and stops there if this point is within the test execution. Otherwise, runs at full speed to the end of the test. For more information, see Stepping Through Test.

Add Watch

Adds an expression to the Watch List panel.

Outlining

Contains the submenu that provides you with commands for outlining. For more information, see Outlining.

Toggle Bookmarks

Bookmarks the right-clicked line with the bookmark number selected from the submenu. For more information, see Bookmarks.

Goto Bookmarks

Returns to a bookmark with the bookmark number selected from the submenu. For more information, see Bookmarks.

Panel Options

Opens the Editor Options dialog.

See Also

Code Editor
About Code Editor

Highlight search results