The video below shows the steps to create a DQMH Unit Test for Unit Test Framework

bit.ly/CreateDQMHUnitTestsVITester

  1. Follow the steps described in Creating DQMH Unit Tests.
  2. Verify that you have JKI VI Tester installed.
  3. On the project tool bar click on the Right-click on the Add New Test Case button.
  4. When prompted, save your new test case in the <Project>\Unit Tests\<DQMH Module Name> folder. Make sure your test case class includes the word Test in its name.
  5. If you plan to have multiple test cases and only start and stop the DQMH module once, delete the setUp.vi and tearDown.vi and right click on the class and select New>VI for Override... and use globalSetUp.vi and globalTearDown.vi instead.
    1. Place the <DQMH Module Name> setup.vi that the New DQMH Unit Test added to the Unit Tests virtual folder to your project inside the setUp or globalSetUp.vi.
    2. Place the <DQMH Module Name> teardown.vi that the New DQMH Unit Test added to the Unit Tests virtual folder to your project inside the tearDown or globalTearDown.vi.
  6. Right-click on testExample.vit and select New From Template. This will create the new unit test for your code. Replace the temp_VI_UnderTest.vi with the Test - <Module Name> - <Request Name> <number>.vi that the New DQMH Unit Test added to the Unit Tests virtual folder to your project.
  7. Save your test class
  8. Save your project
  9. On the project tool bar click on Open VI Tester button
  10. If your new test is not listed, click on the Reload test hierarchy button
  11. Run your unit test