Jump to content


Photo
- - - - -

Overwriting some class VIs has no effect


  • Please log in to reply
2 replies to this topic

#1 shb

shb
  • Members
  • 30 posts

Posted 18 January 2012 - 08:38 AM

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
  • 0

#2 Omar Mussa

Omar Mussa
  • Members
  • 92 posts
  • Gender:Male

Posted 21 January 2012 - 12:05 AM

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?
  • 0

#3 shb

shb
  • Members
  • 30 posts

Posted 14 September 2012 - 10:19 AM

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
  • 0