Use the Find dialog to search for data in your tests. To call the dialog:
Select Edit > Find from the main menu of TestComplete.
– or –
Press Ctrl+F (you can change the shortcut in the Customize Keyboard dialog).
In the Find what box, enter the sought-for text. You can either type the desired phrase or select it from the drop-down list of the phrases, for which you sought earlier. The Find what box may include wildcards (* or ?) or regular expressions. Using regular expressions, you can search for multiline text (see below).
In the Look in list, specify where TestComplete will search for the text. The possible values are:
|Current Document or Panel||TestComplete will search for the specified text in the active editor.|
|Project Suite||TestComplete will search for the specified text in all project items of all projects of your project suite.|
|Open Documents||TestComplete will search for the specified text in all editors opened in the Workspace.|
|Selection in Current Document or Panel||TestComplete will search for text in the selected block in the currently active editor.|
|In the Keyword Test editor, the dialog searches for the specified string only within the Value column. You cannot use the dialog to search for operations in keyword tests.|
Use the following options to set additional search conditions:
|Match case||Specifies whether the search is case-sensitive.|
|Match whole word||TestComplete will search for text that matches the sought-for string as a whole word, not part of a word.|
|Search in collapsed sections||(Available only if you search for text in script code.) Specifies whether TestComplete will search within collapsed code blocks.|
|Search up||TestComplete will start the search from the current cursor position or from the currently active panel and will go upwards.|
|Use||Specifies how TestComplete will treat the sought-for string: as a regular expression or as a string with wildcards.|
|TestComplete supports two standard wildcards: asterisk (*) and question mark (?). The asterisk corresponds to the string of any length, the question mark - to any single character.|
|Regular expression includes a lot of tokens and modifiers that let you specify complex search patterns. Using regular expressions you can search for text that reside on several text lines. To specify the newline symbols, use the
For complete information on supported regular expressions, see Regular Expressions Syntax.
To search for the first occurrence of the sought-for text, click Find Next. TestComplete will highlight the found text.
To search for next occurrences, click Find Next again. If the dialog is hidden, you can continue the search by pressing F3.
To search for all occurrences of the sought-for text, click Find All. TestComplete will display the Search/Replace Results panel that lists all the matches with their location in the project.
TestComplete will also highlight script lines and keyword test operation parameters containing the found text with the icon in the gutter.
To close the dialog, click Cancel.