简体   繁体   English

如何知道在QTP / UFT中在任何随机测试项目中使用了哪些外接程序?

[英]How to know that in QTP/UFT which add-in's were used in any random test project?

这里的情况是我有一个已经测试过的项目,但是我不知道那个测试过的项目中使用了哪个加载项,所以我的问题是我如何才能知道那个测试项目中使用了哪个加载项?测试脚本准备测试环境?

You can get that info using QTP/UFT Automation Object Model. 您可以使用QTP / UFT自动化对象模型来获取该信息。

Set QTP = CreateObject("QuickTest.Application")
arrAddins = QTP.GetAssociatedAddinsForTest(testPath)

Ref: 参考:

http://helpfiles.intactcloud.com/QTP/11.00/QTP11-00_AutomationObjectModel/QuickTest~Application~GetAssociatedAddinsForTest.html http://helpfiles.intactcloud.com/QTP/11.00/QTP11-00_AutomationObjectModel/QuickTest~Application~GetAssociatedAddinsForTest.html

You can open the test and then you can check and modify the add-in's for opened test from “File-Settings-Properties” . 您可以打开测试,然后可以从“ File-Settings-Properties”检查并修改已打开测试的加载项。

Other things you can do with Add-in Manager are shown in below link 下面的链接显示了您可以使用外接程序管理器执行的其他操作

http://www.ufthelp.com/2013/04/understanding-add-in-manager-in-uft.html http://www.ufthelp.com/2013/04/understanding-add-in-manager-in-uft.html

Check the Important section of that link to see the screenshot of the option that I have specified. 检查该链接的“ 重要”部分,以查看我指定的选项的屏幕截图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM