title: how to create log files for test execution
body: <p>I am trying to create a testcontroller and wants the execution of tests to be collected a a file. </p>
  
  <p>i know using, tee and redirecting the test script execution to a certain file, but I am interested to do it with python over linux.</p>
  
  <p>So, in this case whenever a test is executed the log file should get created, and all the execution logs including stdin,stdout and stderr should get collected to this file.</p>
  
  <p>Requesting some body to suggest me, how to implement this kind of idea!</p>
  
  <p>Thanks
  OpenFile</p>