01-31-2019 12:49 AM
Hi all,
I am using JKI VI Tester for the unit test coverage.
I want to know how we can make use of setUp and tearDown VIs in the test suite.
I have used New VI but never used setUp and tearDown VIs in test suite.
Please reply if you have used those VIs, along with the use case.
Thanks in advance,
Bhargavi Gowri.
01-31-2019 11:09 AM
I twitted for JKI to come to take a look at this post
https://twitter.com/Fabiola31416/status/1091020559457181696
01-31-2019 11:39 AM
Hi, Bhargavi. There is a VI Tester Getting Started Guide with links to videos and a VI Tester discussion forum monitored by JKI here. The use case is where you want to reuse a setup and teardown across a set of different test cases.
02-07-2019 03:58 AM
Hi Fab
Thanks for twitting my post..!!
Thanks,
Bhargavi Gowri.
02-07-2019 04:03 AM - edited 02-07-2019 04:04 AM
Hi Jim Kring,
Thanks for the information
Meanwhile I have got some time to play with the Test Suite and understand where and how I can use setUp and tearDown VIs 🙂
Now, I am using those in my application and it suits my needs.
One thing I want to mention here is,
I was trying to transfer data from setUp VI of Test Suite to setUp VI of Test Case, and I wasn't able to do it. I had to use functional global to do the same. Please let me know if there is any other better way to do this.
Thanks,
Bhargavi Gowri.
02-07-2019 09:51 AM
Bhargavi,
I don't know how you are structuring your tests, so this might not help at all.
We tend to group several test VIs within a single TestCase class. You can delete the SetUp.vi and TearDown.vi from the class and instead, right-click on your child of TestCase class and select New for Override. Then, override globalSetUp.vi and globalTearDown.vi. These execute once. The globalSetUp.vi execute once before running all the test VIs within a TestCase class and the globalTearDown.vi execute once after the last test VI in a Test case class executes.
I hope this helps.
Regards,
Fab