Check out this article:
http://www.informit.com/articles/printerfriendly.asp?p=370634

There is a description of gathering performance metrics that you might
find helpful.

-sean

On 7/18/05, Tuyet Cong-Ton-Nu <[EMAIL PROTECTED]> wrote:
> I have this routine that calculates starting time and finished time, but I
> can't figure out how to get the Elapsed time (finished time - starting
> time).
> I messed around with all sorts of permutations, but kept getting "0.00".
> Any suggestion is appreciated, thanks:
> 
> require 'test/unit'
> require 'test/unit/ui/console/testrunner'
> require 'watir/windowhelper'
> 
> require 'login.rb' #this is your test case file
> 
> MAX_ITERATIONS = 1
> 
> result = Test::Unit::TestResult.new
> 
> 
> MAX_ITERATIONS.times do
>     sleep 3
>     TC_Login.suite.run(result) do |s, name|
>         puts "Status=#{s} and name = #{name}"
>         time = Time.now.strftime("%m %d %Y %H %M %S")
>         puts "Time(MMDDYYYYhhmmss=#{time}"
>     end
>     puts result.to_s
>     puts result.failure_count
> 
> 
> 
> 
> end
> 
> exit!
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>

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

Reply via email to