Jump to content

Strange VI Tester Failure (Object not carried from setUp to test method)

Recommended Posts

I ran across a problem in a project where, after creating and initializing the class under test in the setUp VI, unbundling it in the test VI returns a default object rather than the one I instantiated.







I've attached a project with the class under test (ListImp) and two test cases.  Both test cases have (as near as I can tell) identical setUp code and identical code in the test method (testCount).  However, one test passes while the other test fails.  Any idea what's causing this?

[Edit - The about box reports "version (Feb 11 2019)".]

[Edit 2 - Another piece of potentially relevant information is the Test_ListImp..._2 test class was brought forward from an older version of VI Tester.  I don't know what version, but according to my repository it was sometime before Feb. 2013.  The other test class (the one that passed) was created with the current version of VI Tester.] 


VI Tester Error.zip

Edited by Daklu
  • Like 1

Share this post

Link to post
Share on other sites

Thanks Jim.  It's not urgent, but I wanted to let you know about it.

Once I figured out it was related to classes being created in a previous version of VI Tester it was easy enough to work around.

Edited by Daklu

Share this post

Link to post
Share on other sites

BTW, (and not related to this thread in any way whatsoever...) I cloned the repo to see if I could implement the changes for Issue #40 .

Package 3.0.2 is available on VIPM.  Should that branch be merged into master or do you have other plans?  (I'm wondering if I should branch from master or 95c579a.)


Edited by Daklu

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.