Within a script in the UI Automation instrument, how do I import another script?
Within a script writ开发者_JAVA技巧ten in JavaScript for the UI Automation instrument, how do I import another JavaScript file?
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.
精彩评论