QTP 中的描述不匹配

发布于 2025-01-03 07:29:31 字数 97 浏览 4 评论 0原文

我使用 QTP 9.2 测试结果产生警告: 使用测试对象描述未找到该对象。检查对象的属性。 调用智能识别机制。

原因:未找到对象。 如何解决这个警告?我是QTP新手

Im using QTP 9.2
Test result generates warning:
The object was not found using the test object description. Check the object's properties.
The smart identification mechanism was invoked.

Reason: object not found.
how to resolve with this warning? I am new to QTP

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

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

发布评论

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

评论(3

一江春梦 2025-01-10 07:29:31

资源 -->对象存储库 -->选择导致异常的元素 -->在描述中(存在于对象存储库内的右侧面板中)-->删除描述中存在的属性

在此处输入图像描述

当我使用innertext检索测试它发生了。因为innertext的值是动态的并且每次都在变化。对象存储库中的文本对象属性值与运行时对象内部文本值不匹配。所以会出现异常。

resources --> Object Repository --> select the element that caused exception --> in the description (present in right panel inside object repository)--> delete the properties present in the description

enter image description here

When I used innertext to retrive test it happened. because the value of innertext is dynamic and changes every time. the text object property value in Object repository and runtime object inner text value mismatched. so exception occurs.

帅气称霸 2025-01-10 07:29:31

看来,没有足够的信息让 QTP 找到对象。
尝试向对象添加新属性,或从应用程序更新它以获取更新的属性。

It seems, there is no enough information, for QTP to find the object.
Try to add new properties to the object, or update it from the application to get updated properties.

凉薄对峙 2025-01-10 07:29:31

根据运行时创建的对象(即,如果由于某种未知原因,每次运行时对象的参数有所不同),您可能还会发现使用描述性编程而不是对象存储库更有好处。谷歌搜索一下很快就能让你很好地使用描述性编程......

Depending on the the object is created at run time (ie, if the parameters for the object vary from run to run for some unknown reason), you may also find using Descriptive Programming, rather than the Object Repository beneficial. A bit of googling will soon have you using descriptive programming nicely...

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