NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

standard output Python Steps (NOT as Call Executable)

Solved!
Go to solution

I am using Python Steps (via the special Step Types, not via Call Executable) with parameters input and Return value.That works great, in that way I can use several calls on created instances in one module at diffrenet moments during the testcycle.

 

Next to that those parameters and Return values I would also like to catch the standard output (print statements) for the report.

Does anyone know how to do that?

0 Kudos
Message 1 of 3
(2,453 Views)
Solution
Accepted by topic author PythonAddict

Hey,

 

The Python step types do not currently support standard out. If there is something that you want to pass to the standard out, we recommend that you pass the information to a variable and pass that back into TestStand. 

 

Thanks,

Roxy

Message 2 of 3
(2,435 Views)

Did not think of that option; If I understand it well it you can get values of a variable inside a class to TestStand without using the 'return' statement for it (as long as the variable still exists in the class). Will try it!

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