LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit test framework, test cases LV2010

Hello,

 

I am learning how to use the UFT in LV 2010, so I created a simple vi in a project, right clicked on the vi and selected Unit test>New test.

The test file was created, and when I go to the test cases, I don't see my neither my inputs nor my outputs, although in the configuration I have Include controls and indicators from connector pane. Also in the test cases I cannot do anything, neither add nor remove inputs or outputs, I can only add test cases.

I included a screenshot of the test cases window.

 

Thanks 

0 Kudos
Message 1 of 3
(2,487 Views)

Hi Moobe,

 

Can you post your code or a screen shot of your block diagram to help me troubleshoot your vi?

 

Thanks!

Sarah Yost
Senior Product Marketing Manager
0 Kudos
Message 2 of 3
(2,453 Views)

Moobe,

 

Can you check a couple of things:

 

1.  In the Configuration category, can you make sure that you've correctly selected the VI Under Test?

2.  Even though you selected "Include Controls and Indicators from the Connector Pane", you have to make sure you've added them to the VI.

3.  In the test cases, try clicking the Update button.

 

I did a simple unit test with an Add subVI and it worked fine.  You will be able to add inputs or outputs, only test cases.  The I/O should be added automatically.

0 Kudos
Message 3 of 3
(2,444 Views)