从 .NET 类执行 QTP 自动化,无需启动 QTP 实例

发布于 2024-09-07 22:08:08 字数 450 浏览 3 评论 0原文

是否有人有构建 .NET 测试执行工具的经验,该工具可以执行现有 QuickTest Professional VBScript 自动化脚本中的逻辑,但无需启动 QTP 实例?我们正在过渡到 Visual Studio 2010 和相关的测试管理工具,但我们不能(合理地)放弃我们现有的 QTP 工作。

有一些解决方案可以执行现有的 QTP 自动化,但我见过的解决方案需要启动 QTP 的实际实例。此问题的解决方案不需要调用 QTP 应用程序的实例(即使在“不可见”模式下)。当然,调用 QTP 中包含的库是允许的,也是预期的。

作为参考,我们试图避免启动 QTP(并等待应用程序的各个部分完成其任务)的痛苦。 QTP 对我们来说非常不可信,并且有很多 bug,我们希望最小化我们与之交互的 QTP 表面积。

或者,最好的解决方案是将我们现有的 VBScript 自动化无缝且轻松地转换为 .NET 自动化,但我对此并没有屏息以待。 :)

Does anyone have experience building a .NET test execution harness that can execute the logic in existing QuickTest Professional VBScript automation scripts, but without starting an instance of QTP? We are in the process of transitioning to Visual Studio 2010 and the related test management tools, but we can't (justifiably) throw away our existing QTP work.

There are solutions for executing existing QTP automations, but the ones I've seen require launching an actual instance of QTP. A solution for this problem won't require invoking an instance of the QTP application (even in "invisible" mode). Naturally, invoking the libraries included with QTP is permissible, and expected.

For reference, it's the pain of launching QTP (and waiting for various parts of the application to do their thing) that we're trying to avoid. QTP is very untrustworthy to us, and has many bugs, and we want to minimize the QTP surface area with which we interact.

Alternatively, the best solution would involve transforming our existing VBScript automations into .NET automations seamlessly and painlessly, but I'm not holding my breath on that one. :)

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

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

发布评论

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

评论(1

乱了心跳 2024-09-14 22:08:08

QTP 的自动化 API 涉及启动 QTPro.exe 实例(如您所说),如果您只想运行脚本,那么您可以使用 mdrv.exe (来自QTP 的 bin 目录),它加载 QTP 的子集。

QTP's automation API involves launching an instance of QTPro.exe (as you said), if all you want to do is run a script then you can use mdrv.exe (from QTP's bin directory) which loads a subset of QTP.

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