if (runMode == RunTestCaseRunModeTypeConfig.PARALLELL) {
runningTestCase = createTestCase(targetTestCase);
} else {
runningTestCase = targetTestCase;
TestCaseRunner targetTestRunner = SoapUI.getTestMonitor().getTestRunner(targetTestCase);
if (targetTestRunner != null && targetTestRunner.getStatus() == TestRunner.Status.RUNNING) {
if (runMode == RunTestCaseRunModeTypeConfig.SINGLETON_AND_FAIL) {
result.setStatus(TestStepStatus.FAILED);
result.addMessage("Target TestCase is already running");
result.stopTimer();
runningTestCase = null;
} else {
targetTestRunner.waitUntilFinished();
}
}
}
if (runningTestCase != null) {