Find Dialog

Applies to TestComplete 15.63, last modified on April 10, 2024

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 –

Find 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:

Value Description
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:

Option Description
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.
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 expressions
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 \r\n modifier. For instance, if you type ;\r\n\end in the Find what box, TestComplete will search for a text fragment that includes a semicolon at the end of a line and the word "end" at the beginning of the next line.

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.

See Also

Replace Dialog
Code Editor
Search/Replace Results Panel

Highlight search results