开发者

Has anyone had trouble with Selenium tests results being inconsistent?

I'm currently using Selenium RC and JUnit to test some basic login and regist开发者_如何学Cration scenarios. The problem is that my tests don't always give the same results. Sometimes running them will be fine and the tests pass. Other times, they'll get stuck at certain points during the login/registration process and time out. I've been trying to debug this for a long time, but with no permanent success.

Is Selenium being flaky and has anyone else had similar issues?


I have used selenium for 3 years. Sometimes I have some strange situations but usually it is my wine or software problem. It's good practice to auto stop script or use screenshot function. To see that source of problem.


Yes, when I use Ajax validation the results are inconsistent. I am testing using the Yii framework. I am generating random valid passwords, but from time to time Selenium goes too fast (!) for the Ajax to focus.

If I slow down the speed to 100 it tends to work about four out of five times. Any slower than that and the tests are agonizingly slow.

$this->setSpeed(100);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜