Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java test framework for Selenium RC

I'm going to use Selenium RC to replay some tests for a website. I want to kickoff those tests from a Java test framework so that I get nice reports how many tests failed, etc.

Which java test framework should I use? Is JUnit the preferred framework for this purpose?

like image 710
Sebi Avatar asked Feb 27 '23 03:02

Sebi


1 Answers

We use Selenium in conjunction with JUnit. The beauty of this method is the ease of creation of the JUnit tests since we record the Selenium tests in the Selenium IDE and then simply export them to JUnit (though some small tweaking is often necessary). You can then fairly easily integrate them into your continuous integration build and set a job to run them every hour or whatever suits. What I like about the JUnit approach is that everyone on my team is already intimately familiar with JUnit, so no learning curve required.

I'd also recommend checking out Selenium Grid which allows you to execute your tests in parallel allowing you to get through a lot more in a shorter time especially if you can take advantage of executing them across multiple machines.

like image 156
Chris Knight Avatar answered Mar 05 '23 18:03

Chris Knight