testability-driver-runner 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/bin/sierra +19 -0
  2. data/bin/tdrunner +17 -0
  3. data/lib/tdrunner.rb +208 -0
  4. data/lib/tdrunner.yml +1 -0
  5. data/lib/tdrunner_cucumber.rb +222 -0
  6. data/lib/tdrunner_cucumber_runners.rb +35 -0
  7. data/lib/tdrunner_file_finder.rb +45 -0
  8. data/lib/tdrunner_monitor.rb +473 -0
  9. data/lib/tdrunner_profile.rb +416 -0
  10. data/lib/tdrunner_test_unit.rb +433 -0
  11. data/rakefile +135 -0
  12. data/readme +186 -0
  13. data/websi/README +243 -0
  14. data/websi/Rakefile +10 -0
  15. data/websi/app/controllers/application_controller.rb +29 -0
  16. data/websi/app/controllers/report_editor/test_run/cases_controller.rb +307 -0
  17. data/websi/app/controllers/report_editor_controller.rb +25 -0
  18. data/websi/app/controllers/websi_controller.rb +478 -0
  19. data/websi/app/controllers/websi_script.rb +26 -0
  20. data/websi/app/controllers/websi_support.rb +142 -0
  21. data/websi/app/helpers/application_helper.rb +22 -0
  22. data/websi/app/helpers/report_editor/report_editor_helper.rb +26 -0
  23. data/websi/app/helpers/report_editor/test_run/cases_helper.rb +26 -0
  24. data/websi/app/helpers/websi_helper.rb +21 -0
  25. data/websi/app/views/layouts/application.rhtml +17 -0
  26. data/websi/app/views/websi/execution.html.erb +28 -0
  27. data/websi/app/views/websi/index.html.erb +23 -0
  28. data/websi/app/views/websi/profile.html.erb +30 -0
  29. data/websi/app/views/websi/results.html.erb +30 -0
  30. data/websi/app/views/websi/tests.html.erb +23 -0
  31. data/websi/app/views/websi/weights.html.erb +16 -0
  32. data/websi/config/boot.rb +129 -0
  33. data/websi/config/database.yml +22 -0
  34. data/websi/config/environment.rb +60 -0
  35. data/websi/config/environments/development.rb +36 -0
  36. data/websi/config/environments/production.rb +47 -0
  37. data/websi/config/environments/test.rb +47 -0
  38. data/websi/config/initializers/backtrace_silencers.rb +26 -0
  39. data/websi/config/initializers/inflections.rb +29 -0
  40. data/websi/config/initializers/mime_types.rb +24 -0
  41. data/websi/config/initializers/new_rails_defaults.rb +40 -0
  42. data/websi/config/initializers/session_store.rb +34 -0
  43. data/websi/config/locales/en.yml +5 -0
  44. data/websi/config/routes.rb +62 -0
  45. data/websi/db/development.sqlite3 +0 -0
  46. data/websi/db/seeds.rb +26 -0
  47. data/websi/doc/README_FOR_APP +2 -0
  48. data/websi/log/development.log +0 -0
  49. data/websi/log/production.log +0 -0
  50. data/websi/log/server.log +0 -0
  51. data/websi/log/test.log +0 -0
  52. data/websi/public/report_editor/test_run/_index.html +12 -0
  53. data/websi/public/robots.txt +5 -0
  54. data/websi/public/stylesheets/tdriver_report_style.css +220 -0
  55. data/websi/public/tests/config/web_profile.sip +0 -0
  56. data/websi/public/tests/example_profile.sip +8 -0
  57. data/websi/public/tests/tdrunner.yml +3 -0
  58. data/websi/public/tests/web_profile.sip +8 -0
  59. data/websi/public/tests/websi_parameters.xml +4 -0
  60. data/websi/script/about +4 -0
  61. data/websi/script/console +3 -0
  62. data/websi/script/dbconsole +3 -0
  63. data/websi/script/destroy +3 -0
  64. data/websi/script/generate +3 -0
  65. data/websi/script/performance/benchmarker +3 -0
  66. data/websi/script/performance/profiler +3 -0
  67. data/websi/script/plugin +3 -0
  68. data/websi/script/runner +3 -0
  69. data/websi/script/server +3 -0
  70. data/websi/test/functional/websi_controller_test.rb +27 -0
  71. data/websi/test/performance/browsing_test.rb +28 -0
  72. data/websi/test/test_helper.rb +57 -0
  73. data/websi/test/unit/helpers/websi_helper_test.rb +23 -0
  74. metadata +199 -0
@@ -0,0 +1,34 @@
1
+ ############################################################################
2
+ ##
3
+ ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4
+ ## All rights reserved.
5
+ ## Contact: Nokia Corporation (testabilitydriver@nokia.com)
6
+ ##
7
+ ## This file is part of Testability Driver.
8
+ ##
9
+ ## If you have questions regarding the use of this file, please contact
10
+ ## Nokia at testabilitydriver@nokia.com .
11
+ ##
12
+ ## This library is free software; you can redistribute it and/or
13
+ ## modify it under the terms of the GNU Lesser General Public
14
+ ## License version 2.1 as published by the Free Software Foundation
15
+ ## and appearing in the file LICENSE.LGPL included in the packaging
16
+ ## of this file.
17
+ ##
18
+ ############################################################################
19
+
20
+ # Be sure to restart your server when you modify this file.
21
+
22
+ # Your secret key for verifying cookie session data integrity.
23
+ # If you change this key, all old sessions will become invalid!
24
+ # Make sure the secret is at least 30 characters and all random,
25
+ # no regular words or you'll be exposed to dictionary attacks.
26
+ ActionController::Base.session = {
27
+ :key => '_websi_session',
28
+ :secret => 'a59efdac8d0d768b0a25cd1273a37def678b6c752211f5e57f3691b89a60b167a9df8577fe95d494f761a749337f3f99241d7e335c2051c685f1a97d4a730b4c'
29
+ }
30
+
31
+ # Use the database for sessions instead of the cookie-based default,
32
+ # which shouldn't be used to store highly confidential information
33
+ # (create the session table with "rake db:sessions:create")
34
+ # ActionController::Base.session_store = :active_record_store
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,62 @@
1
+ ############################################################################
2
+ ##
3
+ ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4
+ ## All rights reserved.
5
+ ## Contact: Nokia Corporation (testabilitydriver@nokia.com)
6
+ ##
7
+ ## This file is part of Testability Driver.
8
+ ##
9
+ ## If you have questions regarding the use of this file, please contact
10
+ ## Nokia at testabilitydriver@nokia.com .
11
+ ##
12
+ ## This library is free software; you can redistribute it and/or
13
+ ## modify it under the terms of the GNU Lesser General Public
14
+ ## License version 2.1 as published by the Free Software Foundation
15
+ ## and appearing in the file LICENSE.LGPL included in the packaging
16
+ ## of this file.
17
+ ##
18
+ ############################################################################
19
+
20
+ ActionController::Routing::Routes.draw do |map|
21
+ # The priority is based upon order of creation: first created -> highest priority.
22
+
23
+ # Sample of regular route:
24
+ # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
25
+ # Keep in mind you can assign values other than :controller and :action
26
+
27
+ # Sample of named route:
28
+ # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
29
+ # This route can be invoked with purchase_url(:id => product.id)
30
+
31
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
32
+ # map.resources :products
33
+
34
+ # Sample resource route with options:
35
+ # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
36
+
37
+ # Sample resource route with sub-resources:
38
+ # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
39
+
40
+ # Sample resource route with more complex sub-resources
41
+ # map.resources :products do |products|
42
+ # products.resources :comments
43
+ # products.resources :sales, :collection => { :recent => :get }
44
+ # end
45
+
46
+ # Sample resource route within a namespace:
47
+ # map.namespace :admin do |admin|
48
+ # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
49
+ # admin.resources :products
50
+ # end
51
+
52
+ # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
53
+ # map.root :controller => "welcome"
54
+
55
+ # See how all your routes lay out with "rake routes"
56
+
57
+ # Install the default routes as the lowest priority.
58
+ # Note: These default routes make all actions in every controller accessible via GET requests. You should
59
+ # consider removing or commenting them out if you're using named routes and resources.
60
+ map.connect ':controller/:action/:id'
61
+ map.connect ':controller/:action/:id.:format'
62
+ end
File without changes
data/websi/db/seeds.rb ADDED
@@ -0,0 +1,26 @@
1
+ ############################################################################
2
+ ##
3
+ ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4
+ ## All rights reserved.
5
+ ## Contact: Nokia Corporation (testabilitydriver@nokia.com)
6
+ ##
7
+ ## This file is part of Testability Driver.
8
+ ##
9
+ ## If you have questions regarding the use of this file, please contact
10
+ ## Nokia at testabilitydriver@nokia.com .
11
+ ##
12
+ ## This library is free software; you can redistribute it and/or
13
+ ## modify it under the terms of the GNU Lesser General Public
14
+ ## License version 2.1 as published by the Free Software Foundation
15
+ ## and appearing in the file LICENSE.LGPL included in the packaging
16
+ ## of this file.
17
+ ##
18
+ ############################################################################
19
+
20
+ # This file should contain all the record creation needed to seed the database with its default values.
21
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
22
+ #
23
+ # Examples:
24
+ #
25
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
26
+ # Major.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <title>Sierra test run</title>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ </body>
12
+ </html>
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,220 @@
1
+ body
2
+ {
3
+ background-color:#74C2E1;
4
+ font-family: sans-serif;
5
+ font-size: small;
6
+ }
7
+ .navigation_section
8
+ {
9
+ background-color:#0191C8;
10
+ width:800px;
11
+ height:40px;
12
+ margin-left : auto;
13
+ margin-right: auto;
14
+ font-family: sans-serif;
15
+ font-size: medium;
16
+ }
17
+ .summary
18
+ {
19
+ background-color:White;
20
+ width:800px;
21
+ height:100%;
22
+ margin-left : auto;
23
+ margin-right: auto;
24
+
25
+ }
26
+ .summary_total_run
27
+ {
28
+ background-color:White;
29
+ width:800px;
30
+ height:100%;
31
+ margin-left : auto;
32
+ margin-right: auto;
33
+
34
+ }
35
+ .summary_passed
36
+ {
37
+ background-color:White;
38
+ width:800px;
39
+ height:100%;
40
+ margin-left : auto;
41
+ margin-right: auto;
42
+
43
+ }
44
+ .statistics
45
+ {
46
+ background-color:White;
47
+ width:800px;
48
+ height:100%;
49
+ margin-left : auto;
50
+ margin-right: auto;
51
+
52
+ }
53
+ .summary_failed
54
+ {
55
+ background-color:White;
56
+ width:800px;
57
+ height:100%;
58
+ margin-left : auto;
59
+ margin-right: auto;
60
+
61
+ }
62
+ .summary_not_run
63
+ {
64
+ background-color:White;
65
+ width:800px;
66
+ height:100%;
67
+ margin-left : auto;
68
+ margin-right: auto;
69
+
70
+ }
71
+ .test_passed
72
+ {
73
+ background-color:White;
74
+ width:800px;
75
+ height:100%;
76
+ margin-left : auto;
77
+ margin-right: auto;
78
+
79
+ }
80
+ .test_failed
81
+ {
82
+ background-color:White;
83
+ width:800px;
84
+ height:100%;
85
+ margin-left : auto;
86
+ margin-right: auto;
87
+
88
+ }
89
+ .test_not_run
90
+ {
91
+ background-color:White;
92
+ width:800px;
93
+ height:100%;
94
+ margin-left : auto;
95
+ margin-right: auto;
96
+
97
+ }
98
+ .environment
99
+ {
100
+ background-color:White;
101
+ width:800px;
102
+ height:100%;
103
+ margin-left : auto;
104
+ margin-right: auto;
105
+
106
+ }
107
+ .page_title
108
+ {
109
+ background-color:#0191C8;
110
+ width:800px;
111
+ min-height:100%;
112
+ margin-left : auto;
113
+ margin-right: auto;
114
+ color : white;
115
+ }
116
+ .table
117
+ {
118
+ width: 100%;
119
+ }
120
+ a:link { color:Black;}
121
+ a:visited { color:Black;}
122
+ a:hover { color:White; background-color:#005B9A;}
123
+
124
+ #navigation
125
+ {
126
+ list-style-type:none;
127
+ padding:10px 10px 20px 10px;
128
+ margin-left : auto;
129
+ margin-right: auto;
130
+ }
131
+
132
+ #navigation li {
133
+ float:left;
134
+ margin:0 2px;
135
+ }
136
+ #navigation li a {
137
+ display:block;
138
+ padding:2px 10px;
139
+ background-color:#E0E0E0;
140
+ color:#2E3C1F;
141
+ text-decoration:none;
142
+ }
143
+ #navigation li a.current {
144
+ background-color:#74C2E1;
145
+ color:#FFFFFF;
146
+ }
147
+ #navigation li a:hover {
148
+ background-color:#3C72B0;
149
+ color:#FFFFFF;
150
+ }
151
+ #failed_case
152
+ {
153
+ background-color:Red;
154
+ }
155
+ #passed_case
156
+ {
157
+ background-color:Lime;
158
+ }
159
+ #not_run_case
160
+ {
161
+ background-color:#E0E0E0;
162
+ }
163
+ #container{
164
+ width:800px;
165
+ height:250px;
166
+ overflow:hidden;
167
+ }
168
+ #container iframe {
169
+ width:800px;
170
+ height:400px;
171
+ margin-top:-120px;
172
+ border:0;
173
+ }
174
+ img
175
+ {
176
+ width:50%;
177
+ height:50%;
178
+ }
179
+ .togList
180
+ {
181
+
182
+ }
183
+
184
+ .togList dt
185
+ {
186
+
187
+ }
188
+
189
+ .togList dt span
190
+ {
191
+
192
+ }
193
+
194
+ .togList dd
195
+ {
196
+ width: 90%;
197
+ padding-bottom: 15px;
198
+ }
199
+
200
+ html.isJS .togList dd
201
+ {
202
+ display: none;
203
+ }
204
+ input.btn {
205
+ color:#050;
206
+ font: bold 84% 'trebuchet ms',helvetica,sans-serif;
207
+ border: 1px solid;
208
+ border-color: #696 #363 #363 #696;
209
+ }
210
+ input.btn:hover{
211
+ background-color:#dff4ff;
212
+ border:1px solid #c2e1ef;
213
+ color:#336699;
214
+ }
215
+
216
+ .behaviour_table_title
217
+ {
218
+ background-color:#CCCCCC;
219
+ }
220
+
File without changes
@@ -0,0 +1,8 @@
1
+ test_plain_launch_close_calculator(TC_QT_Tutorials)=0
2
+ test_plain_launch_calculate_close(TC_QT_Tutorials)=0
3
+ test_add_to_result(TC_Calculator)=2
4
+ test_subtraction(TC_Calculator)=0
5
+ test_memory_store(TC_Calculator)=1
6
+ test_simple_addition(TC_Calculator)=0
7
+ test_calculator_objects(TC_Calculator)=0
8
+ test_memory_recall(TC_Calculator)=0
@@ -0,0 +1,3 @@
1
+ web_profile: -i 1 --tdriver_parameters C:/dev_rails/websi/public/tests/websi_parameters.xml -e web_profile C:\tdriver\doc\tutorials\examples\qt
2
+ example_profile: -i 1 -e example_profile C:\tdriver\doc\tutorials\examples\qt\
3
+
@@ -0,0 +1,8 @@
1
+ test_plain_launch_close_calculator(TC_QT_Tutorials)=0
2
+ test_plain_launch_calculate_close(TC_QT_Tutorials)=0
3
+ test_add_to_result(TC_Calculator)=0
4
+ test_subtraction(TC_Calculator)=0
5
+ test_memory_store(TC_Calculator)=0
6
+ test_simple_addition(TC_Calculator)=0
7
+ test_calculator_objects(TC_Calculator)=1
8
+ test_memory_recall(TC_Calculator)=0
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0"?>
2
+ <parameters>
3
+ <parameter value="C:/dev_rails/websi/public/tests/reports/" name="report_outputter_path"/>
4
+ </parameters>
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/destroy'