Selenium Capabilities

I'm drowning in the Selenium documentation. What I've got so far is the ability to record a script in FireFox, export it to the new WebDriver format (JUnit4), open and tweak the test in Eclipse, then run it as a JUnit test in Eclipse.

What I'm wanting next:

  • to run the same test on multiple browsers
  • to have a suite of tests run on a remote server at a set interval
  • receive notification if a test fails
  • Is this possible using the path I've started down above? It's hard to tell, but I'm not sure that WebDriver is compatible with the RC server. Or, should I just take my suite of JUnit tests and integrate them with something like Cruise Control?

    Thank you...


    to run the same test on multiple browsers

    See: How to run Google Chrome with Selenium RC?

    to have a suite of tests run on a remote server at a set interval

    This is hard, especially when you are running on headless (terminal only) machine. See this article. But not impossible, read further.

    receive notification if a test fails

    The typical configuration is to use CI server like Bamboo, take advantage of cargo-maven-plugin to deploy your application and run Selenium tests during integration-test phase. Easier said than done. Since CI server is typically headless, you will need freaks of nature like xvfb , taking a lot of screenshots since you have no idea what is happening during the build when it fails, and so on... But it is possible, we managed to setup such a process in our company and are very happy for it.


    Bromine helps you to run on several browsers. Regarding "Scheduling" as already said, maven would help. Try to gather infos about Hudson. It helps a lot in scheduling. It supports selenium too. It helps to send notification also.

    链接地址: http://www.djcxy.com/p/52320.html

    上一篇: 如何在同一浏览器上重新运行Selenium 2.0(webdriver)测试?

    下一篇: 硒能力