> So, I assume that begin/rescue only matters to the actual test case 
> that's calling it and it can't be called from a separate file. 
Not true.
> What else can I do?
if element.exists?
  $scriptLog.puts "##  \n##  PASS: Test for #{element}"
  #puts "PASS."
else
  $error = "** ERROR: Test for #{element} **"
  $errorLog = File.open("logs/#{Project}_error.log", 
File::CREAT|File::APPEND|File::WRONLY)
  $errorLog.puts "#############################################"
  $errorLog.puts "##  One or more errors found in #{$Testname}\n"
  $errorLog.puts "##  Time: #{$d}"
  $errorLog.puts "##  \n##  #{$error}"
  $errorLog.puts "#############################################\n"
  $scriptLog.puts "##  \n##  #{$error}"
  puts $error
 end


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to