运行应用程序时出现以下错误

发布于 2024-08-29 05:12:02 字数 156 浏览 5 评论 0原文

我有一个用 C Sharp 开发的应用程序,它在 QTP 中执行,但出现以下错误:

无法识别对象“2”(WinObject 类)。验证该对象的属性是否与应用程序中当前显示的对象匹配。

谁能帮我解决这个问题吗?

I have an application developed in C Sharp, which is executed in QTP but i get the following error:

Cannot identify the object "2" (of class WinObject). Verify that this object's properties match an object currently displayed in your application.

Can anyone help me resolve it?

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

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

发布评论

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

评论(1

陈年往事 2024-09-05 05:12:02

如果应用程序是用 C# 开发的,请确保已加载 .NET 插件,则对象应该是 SwfObject 而不是 WinObject

在任何情况下,使用对象间谍指向您认为应该与测试中的测试对象匹配的控件,并查看其属性有何不同(您还可以使用对象存储库中的从应用程序更新按钮) 。

If the application is developed in C# make sure you have the .NET addin loaded, then the object should be SwfObject rather than WinObject.

In any case use the object spy to point at the control you think should match the test object in the test and see how its properties differ (you can also use the update from application button from the object repository).

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