Hi, Im new to watir and running scripts from it. Just want to ask if how can I get or extract the error messages Scite displays on the left panel and import it to a textfile? or is it really possible to do? Thanks.
views:
41answers:
2
+1
Q:
Watir, How can i fetch the errors it displays after running a test script and place it on a file
+2
A:
I am not sure how would you do it from Scite, but if you execute Watir script from command line, you can redirect output to file:
$ ruby watir_script.rb > results.txt
If you use test framework like RSpec, there are a lot of options for storing test results in files.
Željko Filipin
2010-10-21 09:37:05
Thanks a lot!!! :D I'll try RSpec as you mentioned.
Erin
2010-10-22 02:02:05
Feel free to mark my answer as `accepted` if you think it solved your problem. :)
Željko Filipin
2010-10-22 09:38:58
+1
A:
From Scite, you click in the output frame, Ctrl-A (to select all), Ctrl-C (to copy), then paste into what every application you like such as notepad.
I agree with Zeljko, you should use a good framework like rspec or testunit. Goodluck.
Dave McNulla
2010-10-21 18:25:54