开发者

Selenium Capabilities

开发者 https://www.devze.com 2023-02-15 16:23 出处:网络
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

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 someth开发者_Go百科ing 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.

0

精彩评论

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