ExecuteFile的使用

来源:互联网 发布:二手苹果mac 编辑:程序博客网 时间:2024/06/07 15:43

当你不将某个函数库与测试项目进行关联,但又想使用另外一个函数库中的函数时,可以利用ExecuteFile来达到目的。

当运行测试时,ExecuteFile执行了函数库中所有的全局代码,从而在这个文件中的所有定义(包括函数、过程、类等)都可以在ACTION的脚本中全局范围内使用。

语法: 

The following example executes the MyFunction VBS file in order to use the SomeFunction function in the action script.

ExecuteFile "MyFunctions.vbs"

x = SomeFunction