Calling Routines and Variables Declared in Another Unit

Applies to TestComplete 14.70, last modified on April 22, 2021

TestComplete supports multiple scripting languages for test automation - JavaScript, JScript, Python, VBScript, DelphiScript, C++Script and C#Script. By default, a script unit can access only procedures, functions, variables and constants declared in the same unit. To use items defined in another script unit, you need to add a reference to that unit.

In This Section

Calling Routines and Variables Declared in Another Unit from GUI

Describes how to add a routine from another unit via the GUI and call it.

JavaScript - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the JavaScript code.

JScript - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the JScript code.

Python - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the Python code.

VBScript - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the VBScript code.

DelphiScript - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the DelphiScript code.

C#Script, C++Script - Calling Routines and Variables Declared in Another Unit

Describes how to reference another unit from the C++Script and C#Script code.

See Also

Calling Routines Declared in Another Project
Supported Scripting Languages - Specifics of Usage

Highlight search results