OS.sleep(200);
sleepTime += 200;
}
// Get the action result.
ITestActionResult result = thread.getActionResult();
assertNotNull(result);
// Check for errors.
Throwable exc = result.getActionError();
if (null != exc) {
exc.printStackTrace();
}
// Check if the thread finished successfully.
assertFalse(thread.isActionStopped());
assertEquals(TestActionStatus.FINISHED, result.getActionStatus());
// Check that the page was read.
assertTrue(action.page.length() > 0);
assertTrue(-1 != action.page.indexOf("JDistUnit"));
assertTrue(-1 != action.page.indexOf("wikipedia"));