// tutorial18.ot
group "tutorial_18";
test("Repeating test") repeat 10;
{
output("Testing repeat\n");
verify(3 == 3);
}
Normally, a test will only run once. But, with repeat, you will be able to run the test several times. It is not often that you will have any use of repeat. You will need to have something random in your test, otherwise there will be no difference between 2 runs of the test. The test in this tutorial is a good example of a test that is a bad example of when to use repeat.
========================================================================= Opera Testsuite ========================================================================= ========================================================================= E:/src/operaclean/opera-windows7/modules/selftest/documentation/tutorial/tutorial18.ot(2): tutorial_18 ========================================================================= Repeating test ................................................ Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Testing repeat Passed ========================================================================= 1 test run, 0 tests failed, 0 tests skipped, 1 test OK =========================================================================