Background I have just been fooling around with Junit's parameterization support. Here is what I learned so far JUnit 4 has support for parameterization. In short, write test points, and run them for different parameters. for eg. The Test point could be test() { launch browser for (browsername); } and it needs to be run for multiple browsers. The Parameter here is the 'browsername'. JUnit allows you to define a @Parameters decorated method (with any name) which you use to define what the list of browser names are. Of course, you can even have multiple parameters (which is why the weird List of array syntax appears) Thus, if you want to run launchbrowser() with 'ie', 'firefox', 'chrome', you write (Note: you need to add @RunWith(Parameterized.class). See Junit4 doc for details. @RunWith(Parameterized.class) public class myTest { @Parameters public static Collection mybrowsers() { // Return a collection of string[]'s here // Weird that JUnit re...
I want to learn something new every day, but can I?