标题: 如何在QTP 中使用库 [打印本页] 作者: wsly 时间: 2005-6-14 10:32 标题: 如何在QTP 中使用库 我的意思是把函数放在一个库中,其他的脚本使用函数时就include这个库, 怎么做?作者: someone5 时间: 2005-6-15 08:20
You can define these functions within an individual test or component, or you can create one or more external VBScript library files containing your functions, so that you can access them from any test or component.
You can also register your functions as methods for QuickTest test objects. Your registered methods can override the functionality of an existing test object method for the duration of a run session, or you can register a new method for a test object class.
Note: If you define a function directly in an action, the function can be called only in that action. If you want the function to be available for the entire test, save it in a .vbs file and specify it as an associated library file in the Test > Settings > Resources tab. For more information about specifying associated library files, see Associating Add-ins with Your Test or Component.
以上内容出自帮助作者: lovetest6 时间: 2005-6-15 09:44 http://bbs.51testing.com/viewthread.php?tid=14007&fpage=1