|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| MyCodeStressTest.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package example;
|
|
| 2 |
|
|
| 3 |
import junit.extensions.abbot.*;
|
|
| 4 |
import junit.framework.*;
|
|
| 5 |
import abbot.script.*;
|
|
| 6 |
import abbot.util.AWTFixtureHelper;
|
|
| 7 |
import abbot.finder.TestHierarchy;
|
|
| 8 |
|
|
| 9 |
/** Simple example of a stress test on an app. */
|
|
| 10 |
public class MyCodeStressTest extends TestCase { |
|
| 11 |
|
|
| 12 | 0 |
public static Test suite() { |
| 13 | 0 |
final int ITERATIONS = 10;
|
| 14 | 0 |
TestSuite suite = new TestSuite();
|
| 15 | 0 |
for (int i=0;i < ITERATIONS;i++) { |
| 16 | 0 |
suite.addTest(new ScriptFixture("src/example/StressMyCode.xml")); |
| 17 |
} |
|
| 18 | 0 |
return suite;
|
| 19 |
} |
|
| 20 |
|
|
| 21 | 0 |
public static void main(String[] args) { |
| 22 | 0 |
TestHelper.runTests(args, MyCodeStressTest.class);
|
| 23 |
} |
|
| 24 |
} |
|
| 25 |
|
|
||||||||||