In a testcase where the setUp.vi takes a long time to clean up and finish executing after the test method or tearDown.vi completes, sometimes it's still running and the call to setUp.vi for the next test method will fail with something like the following:
[code: 1000 source: Invoke Node in TestCase.lvclass:CallTestMethod.vi->TestCase.lvclass:run.vi->TestSuite.lvclass:run.vi->TestRunner.lvclass:run.vi->GraphicalTestRunner.lvlib:Load and Execute Tests Process__core.vi->GraphicalTestRunner.lvlib:Load and Execute Tests Process.vi->GraphicalTestRunner.lvlib:Dynamic Load and Execute Tests Process.vi->Graphical Test Runner - Main UI - .vi
Method Name: Run VI
VI Path: My_TestCase\setUp.vi]
The solution is to wait for setUp to finish running inside of TestCase.lvclass:closeMethodViReference.vi, before we close it's reference.
In a testcase where the setUp.vi takes a long time to clean up and finish executing after the test method or tearDown.vi completes, sometimes it's still running and the call to setUp.vi for the next test method will fail with something like the following:
The solution is to wait for setUp to finish running inside of TestCase.lvclass:closeMethodViReference.vi, before we close it's reference.