TestComplete 未找到对象错误
我是 TestComplete 的新手。
我看了他们的几个视频,但是当我尝试同样的事情时,它给了我关于找不到对象的错误。我所做的只是记录进入网络应用程序并登录它。
有没有人遇到过此类问题,如果是的话,我们将不胜感激任何解决此问题的指示。
谢谢!
I am new to TestComplete.
I watched a couple of videos they have but when I tried the same thing it gives me error about not finding the objects. All I did was recorded going to a web app and logging into it.
Has anyone faced this kind of problem and if so any pointers to resolve this issue will be appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于这种情况,除了调查情况以找出为什么预期的识别标准与实际的识别标准不符之外,没有什么神奇的解决方案。
最近有一个关于名称映射的网络研讨会的录音 - 它描述了找不到对象时的一些情况,并就可能的解决方案提供了一些好的建议:
http://www.automatedqa.com/products/ testcomplete/screencasts/reliable-tests-for-dynamic-objects/
无论如何,您需要进行一些调查以确定情况的根本原因,然后才能尝试应用一些建议。
祝你好运。
There is no magic solution to such situations, other than investigating the situation to find out why the expected recognition criteria do not match the actual ones.
There is a recording of a recent webinar about Name Mapping - it describes some situations when objects are not found, and gives some good advices on the possible solutions:
http://www.automatedqa.com/products/testcomplete/screencasts/reliable-tests-for-dynamic-objects/
Anyway, you will need to make some investigations to determine the root cause of the situation before you can try applying some suggestions.
Good Luck.
TestComplete 8 的帮助系统包含一个很棒的主题,描述了“找不到对象”问题的所有可能原因,并提出了调试和解决这些问题的方法:处理“找不到对象”错误。
The help system of TestComplete 8 contains a great topic describing all possible causes of the 'Object not found' issue and suggesting ways for debugging and solving them: Handling the 'Object Not Found' Errors.
使用对象浏览器突出显示任何对象。您还可以编写脚本来在执行任何操作之前检查 Exists 属性。
对于我不确定是否存在的对象,我通常使用超时等待,然后检查 Exists 属性以避免对象未找到错误。
Use object browser to highlight any object. You can also script to check the Exists property before performing any action.
For objects which I am not sure would exists, I usually user Wait with timeout and then check the Exists property to avoid Object not found error.