After I use a Watir statement like @@ie.link(:text, "some link text").click I
need to know the http returned status Code, such as a 404 or 500.
I assume I can refer to this page
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for the correct
information on what those status value mean.
I tent do all my test using this form
@@log.info "test something"
begin
# do something using Watir
assert(some stuff here)
@@log.info "PASS"
rescue => e
@@log.info "FAIL"
end
I because I 'rescue' everything, getting a 500 or 404 would just give me a
fail. I would like to add info to the log that is failed and got this http
status.
Any suggests?
Cheers
Pierre
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general