Category Archives: Selenium

JUnit4, Selenium and Spring test context

In a previous post I wrote about using JUnit4 with Selenium. So how about injecting your JUnit run listener via Spring? My first attempt modified my runner to be a subclass of SpringJUnit4ClassRunner Then I created the usual XML spring config file but named it after my test class name. So for FooTests I created […]

Also posted in Spring Framework, Testing | Tagged , , | 3 Responses

JUnit4 and Selenium

The Selenium website seems to be biased towards TestNG. That’s fine but I’m using JUnit4. One nice feature of the selenium testcase class is to produce a screendump for failures. But it’s a JUnit 3 class; it seems they have not noticed that JUnit4 exists. So how to get a screendump with a JUnit4 test […]

Also posted in Testing | Tagged , | 3 Responses