在 VMware 虚拟机上的 QuickTest Pro 10 中执行脚本时出错

发布于 2024-09-14 02:41:43 字数 649 浏览 4 评论 0原文

我已经在虚拟机上安装了 QTP 10.0尝试通过 QTP 运行基本代码行,即

MsgBox "ABC"

但是,当我尝试在虚拟机上执行脚本时,它在第一行失败,并显示:

**“测试由于不可恢复的错误,运行无法继续”

无法运行脚本。 描述:无效语法

行(1):“RunAction "Action1", oneiteration"。

我已在 4 台不同的 VM 计算机上尝试过此安装未能解决。

我认为 VMware 存在一些问题,或者可能是不支持调试器。

我使用的是Windows 2003 R2 Enterprise Edition SP2,并且虚拟机上安装了MS SQL 2005

我的QTP安装包括:

默认插件

Siebel Addin

Java Addin

.Net Addin

请帮我解决这个问题……

I have installed the QTP 10.0 on a virtual Machine & trying to run a basic line of code through QTP i.e.

MsgBox "ABC"

However, when I try to execute the script on the VM, it fails at the very first line saying that:

**"The test run cannot continue due to an irrecoverable error"

Failed to run script.
Description: Invalid Syntax

Line(1): "RunAction "Action1", oneiteration".

I have tried this installation on 4 different VM machines & failed to resolve it.

I think there is some issue with the VMware or may be the debugger is not supported.

I am using Windows 2003 R2 Enterprise Edition SP2 with MS SQL 2005 installed on the VMs.

My QTP Installation includes:

Default Add-ins

Siebel Addin

Java Addin

.Net Addin

Kindly help me out to solve this issue....

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

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

发布评论

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

评论(2

情未る 2024-09-21 02:41:43

尝试

MsgBox("ABC")

Try

MsgBox("ABC")
随波逐流 2024-09-21 02:41:43

您引用的错误行:

“RunAction“Action1”,一次迭代”

是从 Action0 调用的,可以在名为 Action0.mts 的 QTP 脚本文件夹中找到。

您可以检查该文件是否未损坏,并且行尾是否有换行符。

也有可能您已将默认的 Action1 重命名为其他名称,而 QTP 没有更新 Action0 来调用您重命名的函数。

另一个问题可能来自函数库中的错误、数据表的不正确路径或恢复场景。

谢谢,
马切伊

The error line which you quoted:

"RunAction "Action1", oneiteration"

is called from Action0 which could be found in QTP script folder under name Action0.mts.

You could check whether this file is not corrupted and has a new line character at the end of the line.

It is also possible that you've renamed the default Action1 to something else and QTP did not update Action0 to call your renamed function.

Another problem might come from a error in function library, incorrect path to the datatable or recovery scenario.

Thanks,
Maciej

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