Run Selenium Test Automatically Every 5 minutes

非 Y 不嫁゛ 提交于 2020-01-03 14:21:28

问题


Is there a way to automate a selenium test to run every five minutes?


回答1:


If you've got your tests packed as an executable the easiest way may be to run a CRON job or a Windows scheduled task.

That said, Hudson (or another continuous integration system) are almost certainly better long term strategies.




回答2:


+1 to Hudson, but you might also want to check out my startup, BrowserMob. We provided free and commercial services that let you run Selenium scripts from multiple locations around the world and be alerted if there are problems.




回答3:


You could do that with Hudson CI (see this article), or do the same manually (in a cron or Windows scheduler), by using the Selenium RC from command-line:

java -jar /usr/local/bin/selenium-server.jar -htmlSuite "*firefox" http://example.com/ my_test_suite.html build/logs/seleniumhq.html



回答4:


+1 Hudson, it has a very good support for Selenium Tests, there are some commercial tools as well like Cruise Control, Anthill Pro.

Otherwise you can use the Cron jobs or windows schedular.




回答5:


If you are using RC, write an Ant script and then schedule it as mentioned in the other posts.



来源:https://stackoverflow.com/questions/3769900/run-selenium-test-automatically-every-5-minutes

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