for (int i = 0; i < numThreads; i++) {
// Get thread
Thread thread = threads[i];
if (thread instanceof TaskThread)
{
TaskThread taskThread = (TaskThread)thread;
taskThread.abort("Test aborted by the user", TestResult.Status.NOT_AVAILABLE, true);
}
}
}