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");