04-04-2018 03:52 AM - edited 04-04-2018 04:14 AM
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.
2. Changed the Input in "User-Defined test Advanced.vi"
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:
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.
07-10-2018 12:19 PM
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)