Share this page

# Utils.import

Evaluates the specified JavaScript file in the arguments context.

Note: Support for this API in JavaScript code will be deprecated in TruClient. Instead use the Evaluate C step available in the TruClient Steps box.

    Utils.import(fileName);

## Arguments

filename. (string) The absolute path to the JavaScript file.

## Return value

A promise that will be fulfilled with no arguments.

## Example

Copy code

    Utils.import(TC.scriptDir + "myjs.js");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: