Unit Testing Group

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with the UTF Test Report when we use SetupVI

Hi Everyone,

I am using UTF to automate my unit testing. I am facing one problem with the test reports that are generated after the execution of the UTF.

I have used the SetupVI to pass the inputs to my VI Under Test.

image.png

In the Test case page, It will disable those inputs.

image.png

After running this unit test, It will create the test report, in the report the Values of Operation, A and B are shown as zero(default values). It is not capturing the values passed from the SetupVI to the VI under test and those are not added in the report.

image.png

Is there any way to get those values listed in the report?

 

Thanks

Ravi

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

Dear Ravi,

 

just checked, I didn't find a way to print those values directly. As a workaround you can use a teardown VI to print those values (because the report does not print the outputs of the setup but it does print the outputs of the teardown). Unfortunately, UTF does not provide a data flow across the setup and the teardown, which can make things tricky. A workaround for this is to have the setup, VI under test and teardown as member VIs of a class and store aux test data in the class.   

 

Peter

 

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