OS.sleep(200);
// Sleep 1 second; this should be enough to read 10 lines.
// Then stop the action.
OS.sleep(1000);
thread.stopAction();
assertTrue(thread.isActionStopped());
// Get the action result.
ITestActionResult result = thread.getActionResult();
assertNotNull(result);