06-27-2018 04:54 AM
I am begginer in TestStand.
I want to start some python script in "Call Executable" step.
In middle of execution in this script there is a confirmation prompt, which pauses the script untill user input something.
After ecexuting the script i need to catch it's stdout to make some further decisions.
I have tried open script with "python.exe" and "scriptname.py" as an Argument Expression, or with "cmd.exe" as exec filename and "/c python scriptname.py" as an Argument Expression.
The problem is: in both cases TestStand does not open terminal window while executing, so script just started silently on background and freezes when it should ask for user input. So all i can do is kill it manually with process manager.
I have tried to use powershell instead of cmd and it works the same.
I have tried to start script with "cmd.exe" and "/c start python scriptname.py" command as Argument Expression, and it opens terminal window and user input prompt is works, but then TestStand can't catch stdout of the script because python proccess opens in different window/process, so returned stdout of parent process is just empty string.
Am i miss something and how i can do this?
06-28-2018 01:57 PM
Can you share the code or at least the section that is giving trouble?