Automated Test Script Editor

TestComplete’s Code Editor is where you write, view and manage your automated test scripts:

TestComplete's Code Editor

The editor provides you with all modern code editing features that help you write scripts quickly, improve the script readability and organize your code better:

Code Completion Autocompletion — As you type the automated test script code, the editor automatically displays the Code Completion window with the list of objects, properties, methods, routines and variables that can be entered according to the current context. It can even complete unfinished statements by matching names of variables or object members. You can invoke the Code Completion window at any time to see which routines and statements can be used in the current insertion point.
Code Parameters Hint Code parameters hints — You can get a quick hint about routine parameters by pressing CTRL+SHIFT+SPACE within the routine braces. This feature works for both built-in and user-defined routines from the current unit.
Code Templates Code templates — TestComplete provides predefined code templates for scripting statements like for loops, switch and try blocks, and many others. You can quickly insert these templates into your automated test script code by using shortcuts. This feature lets you type faster and avoid syntax errors. You can also create your own templates for code that you often use in your automated test scripts, and share them with your colleagues.
Syntax Highlighting Syntax highlighting — The editor uses different colors to display different script code elements: identifiers, reserved words, comments, string constants, and others. This helps you better orient yourself with the automated test script. You can adjust the highlight settings and create a scheme that is convenient for you.
Automatic Syntax Checking Automatic syntax checking — The editor automatically checks the automated test script's syntax while you are typing and displays error marks for the lines that contain syntax errors. You can quickly view the error description by hovering the error mark with the mouse pointer and fix the error.
Automatic Brace Matching Automatic brace matching — TestComplete traces brackets in automated test script code and highlights the opening and closing brackets around the insertion point. This way, you can better identify code blocks and easily locate missing or mismatched braces.
Automatic Revision Marks Automatic revision marks — The script editor tracks the changed lines and automatically highlights them with yellow marks.
Outlining Outlining — You can use collapsible sections to hide specific script code blocks and only display the automated testing script code you are working with. When needed, you can expand the collapsed blocks and make the desired changes to them. It is also possible to create nested outlined blocks to improve the test script organization.
Text Search and Replace Text search and replace (with wildcards and regular expressions support) — You can quickly search for and replace code in the current automated testing script unit, the selected code block, all opened automated testing script units or all automated testing script units of the current project suite. TestComplete can perform case-sensitive or insensitive searches, use regular expressions and wildcards in sought-for text and many other search options.
Bookmarks Bookmarks — You can set bookmarks on specific lines of code so that you can quickly navigate to those lines at a later time.
Advanced Code Navigation Advanced code navigation — You can easily navigate between routines in large automated test script units by CTRL-clicking their names in the code editor. You can also quickly switch to bookmarked lines from any location, go to any automated testing script code line by its number, view a routine by selecting it from the drop-down list on the editor’s toolbar and navigate through previously browsed routine with the toolbar buttons.
TODO List TO DO list — The editor automatically tracks the contents of comment lines and forms the task list from them. You can then manage this list with the TO DO panel.
Undo and Redo Menu Items Undo and redo changes — TestComplete keeps track of the changes you make to your automated test scripts and lets you undo and redo these changes. This way, for example, you can easily restore accidentally deleted code.
Unicode Characters in the Code Editor National characters support — TestComplete supports national characters and Unicode characters in the code editor. You can input these characters into your automated test scripts the same way you would in Notepad.
Word wrapping in the Editor Word wrapping — The editor can automatically wrap long lines that do not fit the editor’s width to the next lines.
Line Numbering Line numbering — The editor displays line numbers for each automated test script line. You can quickly navigate to a specific line by using the Go to Line Number menu command.
 
© 2010 AutomatedQA Corp. All rights reserved.
Home | Privacy | Terms of Use | About | Contact Us | Site Map | Print