Applies to TestComplete 12.60, last modified on September 17, 2018

You can find all the occurrences of a variable, function or program object in your tests. This way, you can navigate around your tests easier, especially if your tests are large or if your project includes multiple script units.

To find all the occurrences of a variable, function or object:

  1. Open the needed script unit in the Code Editor.

  2. Locate the line where the variable or function is declared or the line where the program object exists.

  3. Right-click the desired variable, function or program object and then click Find Usages:

    The Find usages option

    Click the image to enlarge it.

TestComplete will find all the occurrences of the selected variable, routine or object in your script units, keyword tests and project items.

Note: TestComplete does not support searching for usages in script units associated with other units through adding the module.exports object.

You can view all the found occurrences in the Search/Replace Results panel (the variable or function declaration is not included):

View the Find Usages results in the Search/Replace Results panel

Click the image to enlarge it.

See Also

Code Editor
Code Completion

Highlight search results