Jump to content
shb

Overwriting some class VIs has no effect

Recommended Posts

I created a TestCase where I have overwritten the two class VIs listAllTestMethods.vi and countTestCases.vi. But the Tests listed in VI Tester are the same as before. What are this VIs for?

 

Greetings,

shb

Share this post


Link to post
Share on other sites

I created a TestCase where I have overwritten the two class VIs listAllTestMethods.vi and countTestCases.vi. But the Tests listed in VI Tester are the same as before.

 

At this point, I see these VIs as part of the framework that you don't need to overwrite.

 

countTestCases should not be overwritten. I'm not even sure why its over-writable - will check into that.

 

listAllTestMethods I think can be used to replace the framework's dynamic discovery of test methods. I think this VI is intended overwrite-able but I will have to verify that.

 

Out of curiosity, why are you trying to overwrite these methods?

Share this post


Link to post
Share on other sites

At this point, I see these VIs as part of the framework that you don't need to overwrite.

 

countTestCases should not be overwritten. I'm not even sure why its over-writable - will check into that.

 

listAllTestMethods I think can be used to replace the framework's dynamic discovery of test methods. I think this VI is intended overwrite-able but I will have to verify that.

 

Out of curiosity, why are you trying to overwrite these methods?

 

I tried to implement something like Parametrized Unit Testing.

 

I currently use two work arounds:

  • Create a test for every value. All this test VIs call a common SubVI executing the test.
  • The test contains a loop which is run for every test value. The first failure breaks, the remaining are not run.

 

I only overwrote countTestCases because only overwriting listAllTestMethods did not work

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.

Guest
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.

Loading...

×
×
  • Create New...

Important Information

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