Apologies if this is an obvious question. I have written some tests in Java using webdriver backed selenium - these tests all run perfectly when ran individually. I would now like a way of running a selection of these together, in a testSuite. From what I have found so far the suggestion has been the following:
package my.package;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class My_TestSuite
public static Test suite() {
suite.addTestSuite(US298.class);
suite.addTestSuite(US111.class);
//etc
return suite;
}
public static void main (String[] args) {
junit.textui.TestRunner.run(suite());
}
}
I got this from attempting to export an existing test suite from the Selenium IDE, to try and give me an idea as to how to do this but it has not helped! Any help greatly appreciated - many thanks.