Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Within a script in the UI Automation instrument, how do I import another script?

Within a script written in JavaScript for the UI Automation instrument, how do I import another JavaScript file?

like image 693
Prabhakaran Sankar Avatar asked May 18 '11 07:05

Prabhakaran Sankar


1 Answers

Within UI Automation, you can add something like

#import "MySharedFunctions.js"

at the top of your script to have it pull in code from another JavaScript file. This can be used for storing common testing or other helper functions within a shared source file.

like image 112
Brad Larson Avatar answered Sep 29 '22 03:09

Brad Larson