I have developed a python script for performing a series of tasks and this script is being called from TestManager using System command "ExecuteExternalCommand". The script runs well for a while, but after sometime it stops execution and the test manager times out. However the script works well and executes till the end when executed from Windows command line. I want to know if there is way to debug the python script execution status or any way to know the reason behind the script execution being stalled after a while.
Without further information I can only guess but the configuration entry "Wait for exit" is empty? Otherwise the program is terminated after the specified time.
The Wait for exit is configured to 20 mins. The test program is terminated after 20 mins. But the python script when executed from Windows command line finishes execution well within 20 mins.
could it be that your python script writes quite a lot to the standard output and/or standard error?
If that's the case then one of the streams, which are used to redirect the output of the process, could be full and block the process until its terminated.
Thank you for the quick response. My python script indeed had some prints to the standard output. Deleting them fixed the issue.
Your problem was filed on our Jira Database as issue TM-232, so it will be fixed eventually.
Log in to post a comment.