LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML report not updating with current input values in LV Unit Test Framework

Hello,

I have tried the sample vi provided by NI under NI Example Finder >> Toolkits and Modules >> Unit Test Framework >> User-Defined Test.lvproj.

1. Ran Unit Test, the way specified in image.

 

 

2018-04-04_1404_001.png

2. Changed the Input in "User-Defined test Advanced.vi"

2018-04-04_1412.png

3. Expected HTML report should show the Values X=10 and Y=20 but its showing X=3 and Y=4, whereas the output of X+Y showing correctly as 30.

 

Report Image:

2018-04-04_1416.png

As expected the Value must updated as per Inputs, but its not happening. Please help me on this. 

 

You can find attached Vis for Test.

 

0 Kudos
Message 1 of 2
(2,464 Views)

Hi tul_ghumade,

 

By looking at the code I can see that this is the expected behaviour.

 

If you look in the 'Failed' state in the case structure, you are only updating the 'x+y' parameter value. If you you could update the 'x' and 'y' parameters as well if you wanted, but you would have  to copy the cluster and build that array (inside the case structure)

0 Kudos
Message 2 of 2
(2,345 Views)