selenium.open() becomes unresponsive in an iterative test

∥☆過路亽.° 提交于 2019-12-20 07:29:15

问题


I have a set of test steps that I have to execute with different parameters. I have scripted this in Eclipse/TestNG, driven by the parameters supplied via an excel sheet. Now, the test steps involve setting the property of a page, and then opening another page to confirm that the property is set. So, in effect, I use a simple selenium.open("my_first_url"); at the beginning of the test, set the property, and then another selenium.open("my_second_url"); to open the other url where the assertion is performed. There are about 9-10 sets of test data.

Here's the problem- By the time the test iterates through the 4th iteration, selenium RC simply pauses (hangs?) at the selenium.open(...); command. I have noticed this happening before, but simply thought of it as a test anomaly.

Any pointers would be appreciated. Thanks.


回答1:


Add below line above selenium.open() method

selenium.setTimeout("0");



回答2:


I'm still not sure of what causes this in FF. To work around, I upgraded to the alpha release of the selenium server 2.0.



来源:https://stackoverflow.com/questions/3787402/selenium-open-becomes-unresponsive-in-an-iterative-test

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!