运行应用程序时出现以下错误
我有一个用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果应用程序是用 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 thanWinObject
.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).