Suppose you have three tests:
- Code: Select all
public class TestA extends UITestCase { ... }
- Code: Select all
public class TestB extends UITestCase { ... }
- Code: Select all
public class TestC extends UITestCase { ... }
Putting them in a suite is as simple as defining a class like this:
- Code: Select all
public class MyTestSuite extends TestCase
{
public static TestSuite suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(TestA.class);
suite.addTestSuite(TestB.class);
suite.addTestSuite(TestC.class);
return suite;
}
}
Running this test suite can be done with the standard PDE Junit Test Case launch configuration (Run>Run as>JUnit Plug-in Test).
For more info see this topic...
viewtopic.php?f=5&t=1742&start=0&st=0&sk=t&sd=a&hilit=tearDown
Happy testing!