简体   繁体   English

Oracle自动化测试服

[英]Oracle Automated Testing Suit

I have a script written in OATs for automation. 我有一个用OAT编写的自动化脚本。

The script fails at a new random line every time I run it. 每次我运行脚本时,脚本都会在新的随机行上失败。 And every time it gives error as 并且每次它给出错误为

object not found 找不到对象

It is basically not able to locate the xpath (though it is present). 它基本上无法找到xpath(尽管存在)。 When I re-run the script (without any modification in the code), it passes through and if it fails again, it fails at a new location (different xpath). 当我重新运行脚本时(在代码中未进行任何修改),脚本将通过,如果再次失败,则它将在新位置(不同的xpath)失败。 Does anyone has any idea what could possibly be wrong here? 有谁知道这里可能有什么问题吗?

Thanks. 谢谢。

This question is pretty old, but still try to answer my best might help someone 这个问题已经很老了,但仍然尝试尽我所能可能会帮助某人

Script intermittently failing in your case though all the objects and property values are correct Reason is time variation of objects to load. 尽管所有对象和属性值都正确,但脚本间歇性地失败,原因是要加载的对象随时间变化。 You have to increase synctime inbetween bojects by using WaitForPageloaded(); 您必须通过使用WaitForPageloaded()增加对象之间的同步时间; method 方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM