QTP设置动态动作和存储库路径

发布于 2024-09-11 03:45:51 字数 170 浏览 1 评论 0原文

我正在开发 QTP avec Web 插件。我想知道是否有一种方法可以动态设置操作和存储库路径。因为当我将所有测试复制到不同的机器中时,如果存储库或重用操作的路径不相同,我必须打开每个测试以重置丢失资源中的路径。如果这个想法不能在QTP中完成,是否有其他语言,比如c#可以做到这种事情? 预先非常感谢。

艾伦

I'm working on QTP avec web add-in. I would like to know if there is a way to set the action and repository path dynamically. Because when I copy all the test in different machines, if the paths of the repository or reuse actions are not the same, I have to open each test to reset the path in missing resources. If this idea cannot be done within QTP, is there any other language, like c# could do this kind of thing?
Thanks a lot in advance.

Allen

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜血缘 2024-09-18 03:45:51

您可以使用 LoadAndRunAction 函数(自 QTP10 起可用)动态加载操作,并且可以使用 RepositoriesCollection.Add 加载共享对象存储库。

You can load actions dynamically by using the LoadAndRunAction function (available since QTP10) and you can load shared object repositories by using RepositoriesCollection.Add.

烈酒灼喉 2024-09-18 03:45:51

我不需要这样做,所以我不知道确切的答案。

您是否看过随 QTP 一起安装的 AutomationObjectModel.chm 和 Utility.chm 文档?
Utility.chm 具有 RepositoriesCollections 对象和 LoadAndRunAction Statement 可以帮助您。 AutomationObjectModel.chm 具有各种 Action* 对象。

I didn't need to do this, so I don't know the exact answer.

Have you looked at AutomationObjectModel.chm and Utility.chm docs that are installed along with QTP?
Utility.chm has RepositoriesCollections object and LoadAndRunAction Statement that can help you. AutomationObjectModel.chm has various Action* objects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文