From: Dave Burt Date: 2005-06-03T14:15:24+09:00 Subject: Re: How to write in a Text file "Hasmukh K P" asked... >I am very new to Ruby. I have written some test case for my Web >application. I need to log the information of my Testcase results in Text >file. > I tried Log, but couldn't succeed. > Can anyone tell me, how can I do this !! That depends on what test framework you are using. Most should have logging capability of some sort. If they just output to STDOUT, you can redirect that output to a file from your shell, probably something like this: run_tests.rb > log_file.txt Also, if you are doing web testing and haven't seen Watir, you should check it out. Here's a nice document walking through a basic test: http://www.kohl.ca/articles/watir_works.pdf And here's Watir: http://wtr.rubyforge.org/ Cheers, Dave