celerity_thingista 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.document +5 -0
  2. data/.gitignore +9 -0
  3. data/.gitmodules +3 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +278 -0
  7. data/README.rdoc +84 -0
  8. data/Rakefile +15 -0
  9. data/benchmark/bm_2000_spans.rb +48 -0
  10. data/benchmark/bm_digg.rb +26 -0
  11. data/benchmark/bm_google_images.rb +36 -0
  12. data/benchmark/bm_input_locator.rb +69 -0
  13. data/benchmark/bm_text_input.rb +19 -0
  14. data/benchmark/loader.rb +14 -0
  15. data/celerity.gemspec +26 -0
  16. data/lib/celerity.rb +75 -0
  17. data/lib/celerity/browser.rb +924 -0
  18. data/lib/celerity/clickable_element.rb +73 -0
  19. data/lib/celerity/collections.rb +164 -0
  20. data/lib/celerity/container.rb +802 -0
  21. data/lib/celerity/default_viewer.rb +14 -0
  22. data/lib/celerity/disabled_element.rb +40 -0
  23. data/lib/celerity/element.rb +314 -0
  24. data/lib/celerity/element_collection.rb +115 -0
  25. data/lib/celerity/element_locator.rb +164 -0
  26. data/lib/celerity/elements/button.rb +54 -0
  27. data/lib/celerity/elements/file_field.rb +29 -0
  28. data/lib/celerity/elements/form.rb +22 -0
  29. data/lib/celerity/elements/frame.rb +86 -0
  30. data/lib/celerity/elements/image.rb +89 -0
  31. data/lib/celerity/elements/label.rb +16 -0
  32. data/lib/celerity/elements/link.rb +43 -0
  33. data/lib/celerity/elements/meta.rb +14 -0
  34. data/lib/celerity/elements/non_control_elements.rb +124 -0
  35. data/lib/celerity/elements/option.rb +38 -0
  36. data/lib/celerity/elements/radio_check.rb +114 -0
  37. data/lib/celerity/elements/select_list.rb +146 -0
  38. data/lib/celerity/elements/table.rb +154 -0
  39. data/lib/celerity/elements/table_cell.rb +36 -0
  40. data/lib/celerity/elements/table_elements.rb +42 -0
  41. data/lib/celerity/elements/table_row.rb +54 -0
  42. data/lib/celerity/elements/text_field.rb +168 -0
  43. data/lib/celerity/exception.rb +83 -0
  44. data/lib/celerity/htmlunit.rb +64 -0
  45. data/lib/celerity/htmlunit/commons-codec-1.7.jar +0 -0
  46. data/lib/celerity/htmlunit/commons-collections-3.2.1.jar +0 -0
  47. data/lib/celerity/htmlunit/commons-io-2.4.jar +0 -0
  48. data/lib/celerity/htmlunit/commons-lang3-3.1.jar +0 -0
  49. data/lib/celerity/htmlunit/commons-logging-1.1.1.jar +0 -0
  50. data/lib/celerity/htmlunit/cssparser-0.9.9.jar +0 -0
  51. data/lib/celerity/htmlunit/htmlunit-2.12.jar +0 -0
  52. data/lib/celerity/htmlunit/htmlunit-core-js-2.12.jar +0 -0
  53. data/lib/celerity/htmlunit/httpclient-4.2.3.jar +0 -0
  54. data/lib/celerity/htmlunit/httpcore-4.2.2.jar +0 -0
  55. data/lib/celerity/htmlunit/httpmime-4.2.3.jar +0 -0
  56. data/lib/celerity/htmlunit/jetty-http-8.1.9.v20130131.jar +0 -0
  57. data/lib/celerity/htmlunit/jetty-io-8.1.9.v20130131.jar +0 -0
  58. data/lib/celerity/htmlunit/jetty-util-8.1.9.v20130131.jar +0 -0
  59. data/lib/celerity/htmlunit/jetty-websocket-8.1.9.v20130131.jar +0 -0
  60. data/lib/celerity/htmlunit/nekohtml-1.9.18.jar +0 -0
  61. data/lib/celerity/htmlunit/sac-1.3.jar +0 -0
  62. data/lib/celerity/htmlunit/serializer-2.7.1.jar +0 -0
  63. data/lib/celerity/htmlunit/xalan-2.7.1.jar +0 -0
  64. data/lib/celerity/htmlunit/xercesImpl-2.10.0.jar +0 -0
  65. data/lib/celerity/htmlunit/xml-apis-1.4.01.jar +0 -0
  66. data/lib/celerity/identifier.rb +28 -0
  67. data/lib/celerity/ignoring_web_connection.rb +15 -0
  68. data/lib/celerity/input_element.rb +25 -0
  69. data/lib/celerity/javascript_debugger.rb +32 -0
  70. data/lib/celerity/listener.rb +143 -0
  71. data/lib/celerity/resources/no_viewer.png +0 -0
  72. data/lib/celerity/short_inspect.rb +29 -0
  73. data/lib/celerity/util.rb +129 -0
  74. data/lib/celerity/version.rb +3 -0
  75. data/lib/celerity/viewer_connection.rb +89 -0
  76. data/lib/celerity/watir_compatibility.rb +70 -0
  77. data/lib/celerity/xpath_support.rb +50 -0
  78. data/spec/browser_authentication_spec.rb +16 -0
  79. data/spec/browser_spec.rb +439 -0
  80. data/spec/button_spec.rb +24 -0
  81. data/spec/clickable_element_spec.rb +39 -0
  82. data/spec/default_viewer_spec.rb +23 -0
  83. data/spec/element_spec.rb +77 -0
  84. data/spec/filefield_spec.rb +18 -0
  85. data/spec/htmlunit_spec.rb +63 -0
  86. data/spec/implementation.rb +7 -0
  87. data/spec/index_offset_spec.rb +24 -0
  88. data/spec/link_spec.rb +16 -0
  89. data/spec/listener_spec.rb +142 -0
  90. data/spec/spec_helper.rb +6 -0
  91. data/spec/table_spec.rb +41 -0
  92. data/spec/watir_compatibility_spec.rb +32 -0
  93. data/tasks/benchmark.rake +4 -0
  94. data/tasks/check.rake +24 -0
  95. data/tasks/clean.rake +3 -0
  96. data/tasks/fix.rake +25 -0
  97. data/tasks/jar.rake +55 -0
  98. data/tasks/rdoc.rake +4 -0
  99. data/tasks/snapshot.rake +25 -0
  100. data/tasks/spec.rake +27 -0
  101. data/tasks/website.rake +10 -0
  102. data/tasks/yard.rake +16 -0
  103. data/website/benchmarks.html +237 -0
  104. data/website/css/color.css +153 -0
  105. data/website/css/hacks.css +3 -0
  106. data/website/css/layout.css +179 -0
  107. data/website/css/screen.css +5 -0
  108. data/website/css/textmate.css +226 -0
  109. data/website/css/typography.css +72 -0
  110. data/website/gfx/body_bg.gif +0 -0
  111. data/website/gfx/button_bg.jpg +0 -0
  112. data/website/gfx/header_bg.jpg +0 -0
  113. data/website/gfx/header_left.jpg +0 -0
  114. data/website/gfx/header_right.jpg +0 -0
  115. data/website/gfx/nav_bg.jpg +0 -0
  116. data/website/index.html +125 -0
  117. data/website/yard/index.html +1 -0
  118. metadata +246 -0
@@ -0,0 +1,6 @@
1
+ $:.unshift File.expand_path("#{File.dirname(__FILE__)}/../lib")
2
+ require 'celerity'
3
+
4
+ include Celerity
5
+ include Celerity::Exception
6
+ java.lang.System.setProperty("java.awt.headless", "true")
@@ -0,0 +1,41 @@
1
+ # encoding: utf-8
2
+ require File.expand_path("../watirspec/spec_helper", __FILE__)
3
+
4
+ describe "Table" do
5
+
6
+ before :each do
7
+ browser.goto(WatirSpec.files + "/tables.html")
8
+ end
9
+
10
+ describe "#locate" do
11
+ it "is not nil for existing tables" do
12
+ browser.table(:id, 'axis_example').locate.should_not be_nil
13
+ end
14
+ end
15
+
16
+ it "finds table data cells through #parent" do
17
+ browser.span(:id => "cell-child").parent.should be_kind_of(Celerity::TableCell)
18
+ end
19
+
20
+ describe "#cells" do
21
+ it "doesn't find cells in nested tables" do
22
+ browser.table(:id => "outer").cells.length.should == 6
23
+ end
24
+
25
+ it "doesn't find cells in nested tables (for rows)" do
26
+ browser.table(:id => "outer").row(:id => "outer_second").cells.length.should == 2
27
+ end
28
+ end
29
+
30
+ describe "#tds" do
31
+ it "doesn't find cells in nested tables" do
32
+ browser.table(:id => "outer").tds.length.should == 6
33
+ end
34
+
35
+ it "doesn't find cells in nested tables (for rows)" do
36
+ browser.table(:id => "outer").row(:id => "outer_second").tds.length.should == 2
37
+ end
38
+ end
39
+
40
+ end
41
+
@@ -0,0 +1,32 @@
1
+ require File.expand_path("../watirspec/spec_helper", __FILE__)
2
+
3
+ describe "Button" do
4
+
5
+ before :each do
6
+ browser.goto(WatirSpec.host + "/forms_with_input_elements.html")
7
+ end
8
+
9
+ describe "#click_no_wait" do
10
+ it "behaves like #click" do
11
+ browser.button(:id, 'new_user_submit').click_no_wait
12
+ browser.text.should include("You posted the following content:")
13
+ end
14
+ end
15
+
16
+ end
17
+
18
+ describe "Link" do
19
+
20
+ before :each do
21
+ browser.goto(WatirSpec.host + "/non_control_elements.html")
22
+ end
23
+
24
+ describe "#click_no_wait" do
25
+ it "behaves like #click" do
26
+ browser.link(:text, "Link 3").click_no_wait
27
+ browser.text.include?("User administration").should be_true
28
+ end
29
+ end
30
+
31
+ end
32
+
@@ -0,0 +1,4 @@
1
+ desc "Run benchmark scripts"
2
+ task :benchmark do
3
+ Dir[File.dirname(__FILE__) + "/../benchmark/*.rb"].each { |f| load f }
4
+ end
data/tasks/check.rake ADDED
@@ -0,0 +1,24 @@
1
+ namespace :check do
2
+
3
+ desc 'Check syntax of all .rb files'
4
+ task :syntax do
5
+ failed = []
6
+
7
+ Dir['**/*.rb'].each do |f|
8
+ begin
9
+ eval("lambda do\n return true\n #{File.read f} \nend").call
10
+ print "."
11
+ rescue SyntaxError => e
12
+ print "!"
13
+ failed << [f, e.message]
14
+ end
15
+ end
16
+
17
+ if failed.empty?
18
+ puts "ok."
19
+ else
20
+ puts "\n\t#{failed.join("\n\t")}"
21
+ end
22
+ end
23
+
24
+ end
data/tasks/clean.rake ADDED
@@ -0,0 +1,3 @@
1
+ require 'rake/clean'
2
+
3
+ CLEAN.include "classes/", "pkg/", "doc/"
data/tasks/fix.rake ADDED
@@ -0,0 +1,25 @@
1
+ namespace :fix do
2
+
3
+ desc 'Make all ruby files use LF line endings'
4
+ task :crlf do
5
+ files = FileList['**/*.rb']
6
+ files.each do |f|
7
+ next if File.directory?(f)
8
+ s = IO.read(f)
9
+ s.gsub!(/\r?\n/, "\n")
10
+ File.open(f, "w") { |io| io.write(s) }
11
+ end
12
+ end
13
+
14
+ desc 'Remove trailing whitespace from all ruby files'
15
+ task :trailing_whitespace do
16
+ files = FileList['**/*.rb']
17
+ files.each do |f|
18
+ next if File.directory?(f)
19
+ s = IO.read(f)
20
+ s.gsub!(/\s*?($)/, '\1')
21
+ File.open(f, "w") { |io| io.write(s) }
22
+ end
23
+ end
24
+
25
+ end
data/tasks/jar.rake ADDED
@@ -0,0 +1,55 @@
1
+ namespace :jar do
2
+ target_dir = "classes"
3
+
4
+ desc "Compile and create celerity-complete-#{Celerity::VERSION}.jar (includes HtmlUnit)"
5
+ task :fat do
6
+ file_name = "pkg/celerity-complete-#{Celerity::VERSION}.jar"
7
+
8
+ ruby_files = Dir['lib/**/*.rb']
9
+ jar_files = Dir['lib/**/*.jar']
10
+ resources = Dir['lib/celerity/resources/*']
11
+
12
+ rm_rf target_dir if File.exist? target_dir
13
+ mkdir target_dir
14
+ mkdir_p resource_dir = "#{target_dir}/celerity/resources"
15
+
16
+ sh "jrubyc", "-d", "lib", "-t", target_dir, *ruby_files
17
+ resources.each { |extra| cp extra, resource_dir }
18
+
19
+ jar_files.each do |f|
20
+ cp f, target_dir
21
+ end
22
+
23
+ top_dir = Dir.pwd
24
+ chdir target_dir, :verbose => true
25
+ Dir['*.jar'].each do |file|
26
+ sh "jar", "xf", file
27
+ rm_f file
28
+ end
29
+ chdir top_dir, :verbose => true
30
+
31
+ mkdir_p "pkg"
32
+ sh "jar", "cvf", file_name, '-C', target_dir, '.'
33
+ end
34
+
35
+ desc "Compile and create celerity-#{Celerity::VERSION}.jar"
36
+ task :tiny do
37
+ file_name = "pkg/celerity-#{Celerity::VERSION}.jar"
38
+
39
+ ruby_files = Dir['lib/**/*.rb']
40
+ resources = Dir['lib/celerity/resources/*']
41
+
42
+ rm_rf target_dir if File.exist? target_dir
43
+ mkdir target_dir
44
+ mkdir_p resource_dir = "#{target_dir}/celerity/resources"
45
+
46
+ sh "jrubyc", "-d", "lib", "-t", target_dir, *ruby_files
47
+ resources.each { |extra| cp extra, resource_dir }
48
+
49
+ mkdir_p "pkg"
50
+ sh "jar", "cvf", file_name, '-C', target_dir, '.'
51
+ end
52
+ end
53
+
54
+ desc 'Alias for jar:tiny'
55
+ task :jar => %w[jar:tiny]
data/tasks/rdoc.rake ADDED
@@ -0,0 +1,4 @@
1
+ desc 'Generate RDoc'
2
+ task :rdoc do
3
+ puts `rdoc --inline-source --line-numbers --title 'Celerity Documentation' --opname index.html --main README.txt lib History.txt License.txt README.txt`
4
+ end
@@ -0,0 +1,25 @@
1
+ desc 'Download and unpack the latest HtmlUnit assembly'
2
+ task :snapshot, :file do |t, args|
3
+ if args.file
4
+ sh "cp #{args.file} ./"
5
+ basename = File.basename(args.file)
6
+ else
7
+ url = "http://build.canoo.com/htmlunit/artifacts//htmlunit-2.10-SNAPSHOT-with-dependencies.zip"
8
+ sh "curl -O #{url}"
9
+ basename = File.basename(url)
10
+ end
11
+
12
+ shortname = basename[/(.+?)\.zip/, 1].sub("-with-dependencies", '')
13
+ sh "rm -rf lib/celerity/htmlunit/*.jar"
14
+ sh "unzip -tq #{basename}"
15
+ sh %Q{unzip -C #{basename} "#{shortname}/lib/*.jar" -d lib/celerity/htmlunit }
16
+
17
+ puts "Fixing paths..."
18
+ sh "cp -R lib/celerity/htmlunit/#{shortname}/lib/*.jar lib/celerity/htmlunit/"
19
+
20
+ puts "Cleaning..."
21
+ rm_r "lib/celerity/htmlunit/#{shortname}/"
22
+ rm basename
23
+
24
+ puts "...done!"
25
+ end
data/tasks/spec.rake ADDED
@@ -0,0 +1,27 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ RSpec::Core::RakeTask.new(:spec) do |spec|
4
+ spec.ruby_opts = "-I lib:spec"
5
+ spec.pattern = 'spec/**/*_spec.rb'
6
+ end
7
+
8
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
9
+ spec.ruby_opts = "-I lib:spec"
10
+ spec.pattern = 'spec/**/*_spec.rb'
11
+ spec.rcov = true
12
+ spec.rcov_opts = %w[--exclude spec,fcntl,path_helper,yaml,rack,jruby --include lib/celerity --no-rcovrt]
13
+ end
14
+
15
+ if File.exist?(path = "spec/watirspec/watirspec.rake")
16
+ load path
17
+ end
18
+
19
+ namespace :watirspec do
20
+ desc 'Initialize and fetch the watirspec submodule'
21
+ task :init do
22
+ sh "git submodule init"
23
+ sh "git submodule update"
24
+ end
25
+ end
26
+
27
+ task :default => :spec
@@ -0,0 +1,10 @@
1
+ namespace :website do
2
+ desc 'Upload website files to rubyforge'
3
+ task :upload do
4
+ host = "jarib@rubyforge.org"
5
+ remote_dir = "/var/www/gforge-projects/celerity"
6
+ local_dir = 'website'
7
+
8
+ sh %{rsync -rlgoDCv #{local_dir}/ #{host}:#{remote_dir}}
9
+ end
10
+ end
data/tasks/yard.rake ADDED
@@ -0,0 +1,16 @@
1
+ begin
2
+ require 'yard'
3
+ YARD::Rake::YardocTask.new
4
+
5
+ desc 'Generate docs to website/yard'
6
+ namespace :yardoc do
7
+ YARD::Rake::YardocTask.new(:website) do |t|
8
+ t.options += ["-o", "website/yard"]
9
+ end
10
+ end
11
+
12
+ rescue LoadError
13
+ task :yardoc do
14
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
15
+ end
16
+ end
@@ -0,0 +1,237 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
3
+ <head>
4
+ <title>Celerity | Easy and fast functional test automation for web applications</title>
5
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
6
+ <link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" />
7
+ </head>
8
+ <body>
9
+ <div id="container">
10
+ <div id="header">
11
+ <h1><a href=".">Celerity</a></h1>
12
+ <div id="tagline">
13
+ { French célérité > Latin celeritas > Latin celer, fast, swift. <br />
14
+ Rapidity of motion; quickness; swiftness. }
15
+ </div>
16
+ <div id="leftSlice"></div>
17
+ <div id="rightSlice"></div>
18
+ </div>
19
+ <div id="nav">
20
+ <ul>
21
+ <li><a accesskey="h" title="Front page" href="." hreflang="en">Home</a></li>
22
+ <li><a accesskey="p" title="Celerity at Rubyforge" href="http://rubyforge.org/projects/celerity/" hreflang="en">Rubyforge project</a></li>
23
+ <li><a accesskey="d" title="Download Celerity" href="http://rubyforge.org/frs/?group_id=6198" hreflang="en">Download</a></li>
24
+ <li><a accesskey="o" title="Documentation" href="http://celerity.rubyforge.org/doc/" hreflang="en">Documentation</a></li>
25
+ <li><a accesskey="f" title="Discuss Celerity" href="http://rubyforge.org/forum/?group_id=6198" hreflang="en">Forum</a></li>
26
+ <li><a accesskey="m" title="Stay up-to-date" href="http://rubyforge.org/mail/?group_id=6198" hreflang="en">Mailing lists</a></li>
27
+ <li><a accesskey="s" title="Infinite monkey theorem" href="http://celerity.rubyforge.org/svn/" hreflang="en">Browse source</a></li>
28
+ <li><a accesskey="b" title="Report and browse bugs" href="http://rubyforge.org/tracker/?atid=24033&amp;group_id=6198&amp;func=browse" hreflang="en">Bug tracker</a></li>
29
+ <li><a accesskey="e" title="Request and browse new features" href="http://rubyforge.org/tracker/?atid=24036&amp;group_id=6198&amp;func=browse" hreflang="en">Feature tracker</a></li>
30
+ <li><a accesskey="n" title="Benchmarks" href="benchmarks.html" hreflang="en">Benchmarks</a></li>
31
+ <li><a accesskey="w" title="Wiki/FAQ" href="http://celerity.rubyforge.org/wiki/wiki.pl" hreflang="en">Wiki/FAQ</a></li>
32
+ <li><a accesskey="t" title="Tutorial" href="http://celerity.rubyforge.org/wiki/wiki.pl?GettingStarted" hreflang="en">Tutorial</a></li>
33
+ </ul>
34
+ </div>
35
+ <div id="content">
36
+ <h2>Benchmarks</h2>
37
+ <p>We've played a little with some early crude benchmarking. <del datetime="20080515">Three</del> <ins datetime="20080515">Four</ins> scenarios were benchmarked in Celerity and Watir.</p>
38
+ <ul>
39
+ <li><a href="http://celerity.rubyforge.org/svn/trunk/benchmark/bm_2000_spans.rb">Scenario 1: 2000 span elements (local file)</a></li>
40
+ <li><a href="http://celerity.rubyforge.org/svn/trunk/benchmark/bm_google_images.rb">Scenario 2: Looping a Google image search result</a></li>
41
+ <li><a href="http://celerity.rubyforge.org/svn/trunk/benchmark/bm_digg.rb">Scenario 3: Counting the number of "diggs" on digg.com's front page</a></li>
42
+ <li><a href="http://celerity.rubyforge.org/svn/trunk/benchmark/bm_input_locator.rb">Scenario 4: Locating different HTML input elements (local file)</a></li>
43
+ </ul>
44
+
45
+ <h2>Results: Overview</h2>
46
+ <p>This table provides a quick overview. For more accurate numbers, see below.</p>
47
+ <table>
48
+ <tr>
49
+ <th>Scenario</th>
50
+ <th>Watir (total)</th>
51
+ <th>Celerity (total)</th>
52
+ <th>Time reduction</th>
53
+ </tr>
54
+ <tr>
55
+ <td>1</td>
56
+ <td>316,97 s</td>
57
+ <td>0,59 s</td>
58
+ <td>99,81 %</td>
59
+ </tr>
60
+ <tr>
61
+ <td>2</td>
62
+ <td>278 s</td>
63
+ <td>86 s</td>
64
+ <td>69 %</td>
65
+ </tr>
66
+ <tr>
67
+ <td>3</td>
68
+ <td>128 s</td>
69
+ <td>33 s</td>
70
+ <td>74 %</td>
71
+ </tr>
72
+ <tr>
73
+ <td>4</td>
74
+ <td>185,00 s</td>
75
+ <td>4,67 s</td>
76
+ <td>97,48 %</td>
77
+ </tr>
78
+ </table>
79
+ <h2>Notes</h2>
80
+ <ul>
81
+ <li>Celerity 0.0.2 on JRuby 1.1 and Watir 1.5.4 on Ruby 1.8.6 was used.</li>
82
+ <li>Neither Watir nor Celerity downloaded any images in these scenarios. Watir (IE) had them cached, and disabling images in IE did not seem to affect the benchmarks (compared to when they are cached).</li>
83
+ </ul>
84
+ <h2>Results: Actual output from benchmark scripts</h2>
85
+ <p></p>
86
+ <h3>Watir on Ruby: Scenario 1</h3>
87
+ <pre>
88
+ n = 100
89
+ user system total real
90
+ Loop through all spans (n = 1) 62.469000 16.312000 78.781000 (198.016000)
91
+ Last span by id (String) 15.968000 4.953000 20.921000 ( 59.500000)
92
+ Last span by id (Regexp) 17.140000 5.015000 22.155000 ( 59.454000)
93
+
94
+ total : 316.97000002861
95
+ average: 105.656666676203
96
+
97
+ </pre>
98
+
99
+ <h3>Celerity on JRuby: Scenario 1</h3>
100
+ <pre>
101
+ n = 100
102
+ user system total real
103
+ Loop through all spans (n = 1) 0.438000 0.000000 0.438000 ( 0.446355)
104
+ Last span by id (String) 0.016000 0.000000 0.016000 ( 0.013113)
105
+ Last span by id (Regexp) 0.141000 0.000000 0.141000 ( 0.132035)
106
+
107
+ total : 0.5915031433105469
108
+ average: 0.19716771443684897
109
+
110
+ </pre>
111
+
112
+ <h3>Watir on Ruby: Scenario 2</h3>
113
+ <pre>
114
+ n = 5
115
+ user system total real
116
+ Google image search results 44.234000 11.047000 55.281000 (277.734000)
117
+
118
+ total : 277.733999967575
119
+ average: 277.733999967575
120
+
121
+ </pre>
122
+
123
+ <h3>Celerity on JRuby: Scenario 2</h3>
124
+ <pre>
125
+ n = 5
126
+ user system total real
127
+ Google image search results 86.016000 0.000000 86.016000 ( 86.005572)
128
+
129
+ total : 86.00557208061218
130
+ average: 86.00557208061218
131
+
132
+ </pre>
133
+
134
+ <h3>Watir on Ruby: Scenario 3</h3>
135
+ <pre>
136
+ n = 5
137
+ user system total real
138
+ Diggs on front page 7.344000 2.000000 9.344000 (127.907000)
139
+
140
+ total : 127.90700006485
141
+ average: 127.90700006485
142
+
143
+ </pre>
144
+
145
+ <h3>Celerity on JRuby: Scenario 3</h3>
146
+ <pre>
147
+ n = 5
148
+ user system total real
149
+ Diggs on front page 33.422000 0.000000 33.422000 ( 33.427076)
150
+
151
+ total : 33.4270761013031
152
+ average: 33.4270761013031
153
+
154
+ </pre>
155
+
156
+ <h3>Watir on Ruby: Scenario 4</h3>
157
+ <pre>
158
+ n = 1000
159
+ user system total real
160
+ text input by id (String) 1.093000 0.281000 1.374000 ( 2.765000)
161
+ text input by id (Regexp) 1.063000 0.250000 1.313000 ( 2.766000)
162
+ text input by name (String) 1.625000 0.281000 1.906000 ( 4.282000)
163
+ text input by name (Regexp) 1.594000 0.281000 1.875000 ( 4.266000)
164
+ select list by id (String) 1.813000 0.328000 2.141000 ( 4.704000)
165
+ select list by id (Regexp) 1.766000 0.235000 2.001000 ( 4.672000)
166
+ select list by name (String) 1.671000 0.312000 1.983000 ( 4.656000)
167
+ select list by name (Regexp) 1.797000 0.313000 2.110000 ( 4.671000)
168
+ checkbox by id (String) 5.844000 1.203000 7.047000 ( 14.047000)
169
+ checkbox by id (Regexp) 5.515000 1.203000 6.718000 ( 13.937000)
170
+ checkbox by name (String) 5.578000 1.063000 6.641000 ( 14.031000)
171
+ checkbox by name (Regexp) 5.328000 1.062000 6.390000 ( 14.359000)
172
+ checkbox by id (String) and value (String) 9.406000 2.188000 11.594000 ( 28.578000)
173
+ checkbox by id (Regexp) and value (Regexp) 9.718000 2.078000 11.796000 ( 25.437000)
174
+ checkbox by name (String) and value (String) 6.390000 1.203000 7.593000 ( 16.453000)
175
+ checkbox by name (Regexp) and value (Regexp) 9.578000 1.719000 11.297000 ( 25.375000)
176
+
177
+ total : 184.998999834061
178
+ average: 11.5624374896288
179
+
180
+ </pre>
181
+
182
+ <h3>Celerity on JRuby: Scenario 4</h3>
183
+ <pre>
184
+ n = 1000
185
+ user system total real
186
+ text input by id (String) 0.063000 0.000000 0.063000 ( 0.053699)
187
+ text input by id (Regexp) 0.360000 0.000000 0.360000 ( 0.357198)
188
+ text input by name (String) 0.313000 0.000000 0.313000 ( 0.322434)
189
+ text input by name (Regexp) 0.297000 0.000000 0.297000 ( 0.298454)
190
+ select list by id (String) 0.031000 0.000000 0.031000 ( 0.028299)
191
+ select list by id (Regexp) 0.297000 0.000000 0.297000 ( 0.303616)
192
+ select list by name (String) 0.219000 0.000000 0.219000 ( 0.228946)
193
+ select list by name (Regexp) 0.250000 0.000000 0.250000 ( 0.242370)
194
+ checkbox by id (String) 0.031000 0.000000 0.031000 ( 0.032020)
195
+ checkbox by id (Regexp) 0.360000 0.000000 0.360000 ( 0.348517)
196
+ checkbox by name (String) 0.469000 0.000000 0.469000 ( 0.469942)
197
+ checkbox by name (Regexp) 0.485000 0.000000 0.485000 ( 0.495507)
198
+ checkbox by id (String) and value (String) 0.015000 0.000000 0.015000 ( 0.029422)
199
+ checkbox by id (Regexp) and value (Regexp) 0.312000 0.000000 0.312000 ( 0.322679)
200
+ checkbox by name (String) and value (String) 0.547000 0.000000 0.547000 ( 0.536925)
201
+ checkbox by name (Regexp) and value (Regexp) 0.609000 0.000000 0.609000 ( 0.600956)
202
+
203
+ total : 4.670983791351318
204
+ average: 0.2919364869594574
205
+
206
+ </pre>
207
+ </div>
208
+ </div>
209
+ <div id="footer">
210
+ <p>
211
+ <span class="w3cbutton">
212
+ <a href="http://validator.w3.org/check?uri=referer" title="Valid XHTML 1.0 Strict" hreflang="en">
213
+ <span class="w3c">W3C</span>
214
+ <span class="spec">XHTML 1.0</span>
215
+ </a>
216
+ </span>
217
+ &nbsp;
218
+ <span class="w3cbutton">
219
+ <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS" hreflang="en">
220
+ <span class="w3c">W3C</span>
221
+ <span class="spec">CSS</span>
222
+ </a>
223
+ </span>
224
+ <!--&nbsp;
225
+ <span class="w3cbutton">
226
+ <a href="http://www.w3.org/WAI/WCAG1AAA-Conformance" title="Conforming with the highest level (AAA) of the Web Content Accessibility Guidelines 1.0" hreflang="en">
227
+ <span class="w3c">W3C</span>
228
+ <span class="spec">WAI&#8209;<span class="red">AAA</span>&nbsp;WCAG&nbsp;1.0</span>
229
+ </a>
230
+ </span>-->
231
+ </p>
232
+ <address>
233
+ <a href="mailto:tinius.alexander@lystadonline.no">T. Alexander Lystad</a>, 29th May 2008
234
+ </address>
235
+ </div>
236
+ </body>
237
+ </html>