Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 1000 can occur when calling setUp if setup is waiting on test completion and takes a while to fully complete after test/tearDown is called #51

Open
jimkring opened this issue Jan 7, 2020 · 1 comment
Assignees
Labels

Comments

@jimkring
Copy link
Contributor

jimkring commented Jan 7, 2020

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.

image

@jimkring jimkring added the bug label Jan 7, 2020
@jimkring jimkring self-assigned this Jan 7, 2020
@jimkring
Copy link
Contributor Author

jimkring commented Jan 7, 2020

Here is the fixed VI, fixed off of v3.0.2.294 installed here:

vi.lib\addons_JKI Toolkits\VI Tester\TestCase.llb\closeMethodViReference.vi

closeMethodViReference.vi.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant