01: package example;
02:
03: import junit.extensions.abbot.*;
04: import junit.framework.*;
05:
06: /** Simple example of a stress test on an app. */
07: public class MyCodeStressTest extends TestCase {
08:
09: public static Test suite() {
10: final int ITERATIONS = 10;
11: TestSuite suite = new TestSuite();
12: for (int i = 0; i < ITERATIONS; i++) {
13: suite.addTest(new ScriptFixture(
14: "src/example/StressMyCode.xml"));
15: }
16: return suite;
17: }
18:
19: public static void main(String[] args) {
20: TestHelper.runTests(args, MyCodeStressTest.class);
21: }
22: }
|