从 .NET 类执行 QTP 自动化,无需启动 QTP 实例
是否有人有构建 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 usemdrv.exe
(from QTP's bin directory) which loads a subset of QTP.