LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Test

Anyone using the unit test framework? I just got a license today and have started playing with it.

 

Can you give any tips or suggestions? Anything in particular I should watch out for?

 

One thing that comes to mind is if the vi under test has a dialog button that pops up. How do I deal with that? Is there any way to simulate user interaction on the front panel?

I

=====================
LabVIEW 2012


0 Kudos
Message 1 of 5
(2,947 Views)

Hey Steve,

 

I have found some documents that I hope will help you.

Prove It Works: Using the Unit Test Framework for Software Testing and Validation

 

Regards,

A. Zaatari

National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(2,897 Views)

Thanks. I am looking over those links.

 

But what I still can not figure out is how to automate the testing of a vi that requires user interaction such as if it displays a popup dialog. I am thinking it is not possible.

 

Hey all you regulars, Jack, Christian, Ben, Darin, Darren, tst, Jeff, Broken Arrow, etc.... Does anyone use either the NI unit test framework or vi tester? What about Requirements Gateway? I am just curious as to how popular this stuff is..

 

Edit: Oh yea is there another forum for those?

=====================
LabVIEW 2012


0 Kudos
Message 3 of 5
(2,875 Views)

Hi,

 

I'm a bit curious about this toolkit.

Is it possible to simulate the state of physical inputs?

I understand that you can simulate the state of the inputs of the VI but can you simulate inputs that come from acquisition devices.

My goal is to validate a program which purpose is to acquire data, process them and send them via an EDEGE connexion.

I need to test the program with the complete range of my inputs (wich are PT100 probes) so i realy need a way to simulate their state.

 

thanks

 

 

0 Kudos
Message 4 of 5
(2,772 Views)

Hello supercoincoin!

 

You can simulate inputs using the Measurement and Automation Explorer:

 

http://www.ni.com/white-paper/3698/en#toc3 

 

You can go over the functionality of the Unit Test Framework toolkit here:

 

http://sine.ni.com/psp/app/doc/p/id/psp-844/lang/en 

 

I hope this is helpful.

 

Have a good day!

 

Andres G
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(2,746 Views)