Hi,
well you can add test case property runningDeleteCar which will indicate if tear down script is already running at that moment
Than your code should look like this:
while(context.expand( '${#TestCase#runningDeleteCar}' ) ){
Thread.sleep(100)
}
testRunner.testCase.setPropertyValue("runningDeleteCar","true");
TearDown_UpdateTestLink = testRunner.testCase.testSuite.project.getTestSuiteByName("GlobalMethods").testCases["DeleteCar"];
TearDown_DeleteCar.setPropertyValue("VehicleID", 1212131);
TearDown_DeleteCar.setPropertyValue("UserName", sTestCaseName);
TearDown_DeleteCar.setPropertyValue("Password", sResult);
runner3 = TearDown_DeleteCar.run( new com.eviware.soapui.support.types.StringToObjectMap(), false )
testRunner.testCase.setPropertyValue("runningDeleteCar","false");
Let us know does this helps.
regards
nebojsa
eviware.com