Reputation: 105
Within a script written in JavaScript for the UI Automation instrument, how do I import another JavaScript file?
Upvotes: 6
Views: 1829
Reputation: 170317
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.
Upvotes: 7