From: Navya Amerineni Date: 2006-03-20T14:30:14+09:00 Subject: capturing the stdout --0-201793164-1142832597=:79909 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi all, I am running a test case and need it capture the output it gives me. require 'stringio' old_stdout = $stdout $stdout = StringIO.new ............ @reqout = $stdout.string $stdout = old_stdout the above code captures the stdout if something written explicily (like puts). but it doesnot capture the output or running a testcase. i want to capture the results if the testcases. is there a way it could be done. Thanks, Navya. --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. --0-201793164-1142832597=:79909--