mediawiki-selenium 0.1.16 → 0.1.17pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -10
- data/docs/jenkins.md +1 -1
- data/docs/job.md +1 -1
- data/docs/jobs.md +37 -40
- data/docs/template.md +25 -58
- data/lib/mediawiki/selenium/env.rb +6 -14
- data/lib/mediawiki/selenium/hooks.rb +6 -11
- data/lib/mediawiki/selenium/version.rb +1 -1
- metadata +21 -22
- data/docs/jenkins-email.template +0 -89
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f15e50774a4feee1da045d77efbefd7568b08a47
|
4
|
+
data.tar.gz: 8c49478af7c6f9d509ddc3f98359201447448cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 571b5af062c112d0aed93e3610e630134d1075b80195d40223a97adf04ae0da5637bae313f2347066dc141be4bf5ae2339cf0a1ee22c6fb8149e20ca6fb281e6
|
7
|
+
data.tar.gz: 58316afdd160d8b408a5a4e4910d955910f6a1bbd887d5bd6e00ceafbc7dc1c5510ccaef5bec52f6138f4904e3c930444ab86aaabf583dccb81822c4acedd9d0
|
data/README.md
CHANGED
@@ -53,16 +53,15 @@ mediawiki-selenium gem: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects
|
|
53
53
|
|
54
54
|
Repositories that use the gem:
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
10. browsertests: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/qa/browsertests), [GitHub](https://github.com/wikimedia/qa-browsertests), [Jenkins](https://wmf.ci.cloudbees.com/view/r-bt/), [Code Climate](https://codeclimate.com/github/wikimedia/qa-browsertests), `/` folder
|
56
|
+
- CirrusSearch: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/CirrusSearch), [GitHub](https://github.com/wikimedia/mediawiki-extensions-CirrusSearch), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-CirrusSearch), `/tests/browser` folder
|
57
|
+
- Flow: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Flow), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Flow), [Jenkins](https://wmf.ci.cloudbees.com/view/r-fl/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Flow), `/tests/browser` folder
|
58
|
+
- MobileFrontend: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MobileFrontend), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MobileFrontend), [Jenkins](https://wmf.ci.cloudbees.com/view/r-mf/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-MobileFrontend), `/tests/browser` folder
|
59
|
+
- Translate: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Translate), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Translate), [Jenkins](https://wmf.ci.cloudbees.com/view/r-tr/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Translate), `/tests/browser` folder
|
60
|
+
- TwnMainPage: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/TwnMainPage), [GitHub](https://github.com/wikimedia/mediawiki-extensions-TwnMainPage), [Jenkins](https://wmf.ci.cloudbees.com/view/r-tw/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-TwnMainPage), `/tests/browser` folder
|
61
|
+
- UniversalLanguageSelector: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/UniversalLanguageSelector), [GitHub](https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector), [Jenkins](https://wmf.ci.cloudbees.com/view/r-uls/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-UniversalLanguageSelector), `/tests/browser` folder
|
62
|
+
- VisualEditor: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/VisualEditor), [GitHub](https://github.com/wikimedia/mediawiki-extensions-VisualEditor), [Jenkins](https://wmf.ci.cloudbees.com/view/r-ve/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-VisualEditor), `/modules/ve-mw/test/browser` folder
|
63
|
+
- Wikibase: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/Wikibase), [GitHub](https://github.com/wikimedia/mediawiki-extensions-Wikibase), [Jenkins](https://wikidata-cloudbees.ci.cloudbees.com/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-Wikibase), `/tests/browser` folder
|
64
|
+
- browsertests: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/qa/browsertests), [GitHub](https://github.com/wikimedia/qa-browsertests), [Jenkins](https://wmf.ci.cloudbees.com/view/r-bt/), [Code Climate](https://codeclimate.com/github/wikimedia/qa-browsertests), `/` folder
|
66
65
|
|
67
66
|
## Contributing
|
68
67
|
|
data/docs/jenkins.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Plugins
|
4
4
|
|
5
|
-
- Jenkins > Manage Jenkins > Manage Plugins > Available > ChuckNorris Plugin, Green Balls, Jenkins
|
5
|
+
- Jenkins > Manage Jenkins > Manage Plugins > Available > ChuckNorris Plugin, Green Balls, Jenkins instant-messaging plugin, Jenkins IRC Plugin
|
6
6
|
|
7
7
|
## IRC Notification
|
8
8
|
|
data/docs/job.md
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
|
19
19
|
|
20
20
|
curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
|
21
|
-
RUBY_VERSION=2.
|
21
|
+
RUBY_VERSION=2.0.0-p247 \
|
22
22
|
source ./use-ruby
|
23
23
|
|
24
24
|
gem install bundler --no-ri --no-rdoc
|
data/docs/jobs.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# all jobs
|
2
2
|
- Browser Label:
|
3
|
-
- bundle exec
|
3
|
+
- bundle exec:
|
4
4
|
- Recipients:
|
5
|
+
- Branch: master
|
5
6
|
- MediaWiki URL:
|
6
7
|
- Folder:
|
7
8
|
- Repository URL:
|
8
9
|
- MediaWiki user:
|
9
10
|
- MediaWiki password variable:
|
10
|
-
- Build schedule: 0 3,18 * * *
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
# browsertests-commons.wikimedia.beta.wmflabs.org
|
22
22
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
23
|
-
- bundle exec cucumber
|
23
|
+
- bundle exec: cucumber --verbose --profile ci --tags @commons.wikimedia.beta.wmflabs.org
|
24
24
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
25
25
|
|
26
26
|
## browsertests-commons.wikimedia.beta.wmflabs.org-linux-chrome
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
# browsertests-en.wikipedia.beta.wmflabs.org
|
41
|
-
- bundle exec cucumber
|
41
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org
|
42
42
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
43
43
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
44
44
|
|
@@ -50,15 +50,15 @@
|
|
50
50
|
|
51
51
|
## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_6
|
52
52
|
- Browser Label: internet_explorer_6
|
53
|
-
- bundle exec cucumber
|
53
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie6-bug
|
54
54
|
|
55
55
|
## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_7
|
56
56
|
- Browser Label: internet_explorer_7
|
57
|
-
- bundle exec cucumber
|
57
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie7-bug
|
58
58
|
|
59
59
|
## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_8
|
60
60
|
- Browser Label: internet_explorer_8
|
61
|
-
- bundle exec cucumber
|
61
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie8-bug
|
62
62
|
|
63
63
|
## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_9
|
64
64
|
- Browser Label: internet_explorer_9
|
@@ -69,7 +69,7 @@
|
|
69
69
|
|
70
70
|
|
71
71
|
# browsertests-test2.wikipedia.org
|
72
|
-
- bundle exec cucumber
|
72
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org
|
73
73
|
- MediaWiki URL: test2.wikipedia.org
|
74
74
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
75
75
|
|
@@ -81,15 +81,15 @@
|
|
81
81
|
|
82
82
|
## browsertests-test2.wikipedia.org-windows-internet_explorer_6
|
83
83
|
- Browser Label: internet_explorer_6
|
84
|
-
- bundle exec cucumber
|
84
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org --tags ~@ie6-bug
|
85
85
|
|
86
86
|
## browsertests-test2.wikipedia.org-windows-internet_explorer_7
|
87
87
|
- Browser Label: internet_explorer_7
|
88
|
-
- bundle exec cucumber
|
88
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org --tags ~@ie7-bug
|
89
89
|
|
90
90
|
## browsertests-test2.wikipedia.org-windows-internet_explorer_8
|
91
91
|
- Browser Label: internet_explorer_8
|
92
|
-
- bundle exec cucumber
|
92
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org --tags ~@ie8-bug
|
93
93
|
|
94
94
|
## browsertests-test2.wikipedia.org-windows-internet_explorer_9
|
95
95
|
- Browser Label: internet_explorer_9
|
@@ -100,7 +100,7 @@
|
|
100
100
|
|
101
101
|
|
102
102
|
# Flow
|
103
|
-
- bundle exec cucumber
|
103
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org
|
104
104
|
- Recipients: zfilipin@wikimedia.org cmcmahon@wikimedia.org
|
105
105
|
- MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
|
106
106
|
- Folder: tests/browser/
|
@@ -118,52 +118,49 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
# MobileFrontend
|
121
|
-
- Recipients: cmcmahon@wikimedia.org
|
121
|
+
- Recipients: cmcmahon@wikimedia.org mobile-l@lists.wikimedia.org mobile-tech@wikimedia.org zfilipin@wikimedia.org
|
122
122
|
- Folder: tests/browser/
|
123
123
|
- Repository URL: MobileFrontend
|
124
124
|
- MediaWiki user: Selenium_user
|
125
125
|
|
126
126
|
## MobileFrontend-en.m.wikipedia.beta.wmflabs.org-linux-chrome
|
127
127
|
- Browser Label: chrome
|
128
|
-
- bundle exec cucumber
|
128
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.m.wikipedia.beta.wmflabs.org
|
129
129
|
- MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
|
130
130
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
131
131
|
|
132
132
|
## MobileFrontend-en.m.wikipedia.beta.wmflabs.org-linux-firefox
|
133
133
|
- Browser Label: firefox
|
134
|
-
- bundle exec cucumber
|
134
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.m.wikipedia.beta.wmflabs.org
|
135
135
|
- MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
|
136
136
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
137
137
|
|
138
138
|
## MobileFrontend-en.m.wikipedia.org-linux-firefox
|
139
139
|
- Browser Label: firefox
|
140
|
-
- bundle exec cucumber
|
140
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.m.wikipedia.org
|
141
141
|
- MediaWiki URL: en.m.wikipedia.org
|
142
142
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
143
143
|
|
144
144
|
## MobileFrontend-test2.m.wikipedia.org-linux-firefox
|
145
145
|
- Browser Label: firefox
|
146
|
-
- bundle exec cucumber
|
146
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.m.wikipedia.org
|
147
147
|
- MediaWiki URL: test2.m.wikipedia.org
|
148
148
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
149
149
|
|
150
150
|
|
151
151
|
|
152
152
|
# Translate
|
153
|
-
|
154
|
-
- Folder: tests/browser/
|
155
|
-
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
156
|
-
- Repository URL: Translate
|
153
|
+
|
157
154
|
|
158
155
|
## Translate-sandbox.translatewiki.net-linux-firefox
|
159
|
-
-
|
156
|
+
- Browser Label: firefox
|
157
|
+
- bundle exec: cucumber --verbose --profile ci --tags @sandbox.translatewiki.net
|
158
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
160
159
|
- MediaWiki URL: sandbox.translatewiki.net
|
161
|
-
-
|
162
|
-
-
|
163
|
-
|
164
|
-
|
165
|
-
- bundle exec cucumber: --tags @meta.wikimedia.org
|
166
|
-
- MediaWiki URL: meta.wikimedia.org
|
160
|
+
- Folder: tests/browser/
|
161
|
+
- Repository URL: Translate
|
162
|
+
- MediaWiki user: Selenium
|
163
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
167
164
|
|
168
165
|
|
169
166
|
|
@@ -172,7 +169,7 @@
|
|
172
169
|
|
173
170
|
## TwnMainPage-sandbox.translatewiki.net-linux-firefox
|
174
171
|
- Browser Label: firefox
|
175
|
-
- bundle exec cucumber
|
172
|
+
- bundle exec: cucumber --verbose --profile ci --tags @sandbox.translatewiki.net
|
176
173
|
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
177
174
|
- MediaWiki URL: sandbox.translatewiki.net
|
178
175
|
- Folder: tests/browser/
|
@@ -191,19 +188,19 @@
|
|
191
188
|
|
192
189
|
|
193
190
|
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
194
|
-
- bundle exec cucumber
|
191
|
+
- bundle exec: cucumber --verbose --profile ci --tags @commons.wikimedia.beta.wmflabs.org
|
195
192
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
196
193
|
- MediaWiki user: Uls
|
197
194
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
198
195
|
|
199
196
|
## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-linux-firefox
|
200
|
-
- bundle exec cucumber
|
197
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org
|
201
198
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
202
199
|
- MediaWiki user: Uls
|
203
200
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
204
201
|
|
205
202
|
## UniversalLanguageSelector-sandbox.translatewiki.net-linux-firefox
|
206
|
-
- bundle exec cucumber
|
203
|
+
- bundle exec: cucumber --verbose --profile ci --tags @sandbox.translatewiki.net
|
207
204
|
- MediaWiki URL: sandbox.translatewiki.net
|
208
205
|
- MediaWiki user: Selenium
|
209
206
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
@@ -218,28 +215,28 @@
|
|
218
215
|
|
219
216
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
|
220
217
|
- Browser Label: chrome
|
221
|
-
- bundle exec cucumber
|
222
|
-
- Recipients: cmcmahon@wikimedia.org
|
218
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org
|
219
|
+
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
223
220
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
224
221
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
225
222
|
|
226
223
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-firefox
|
227
224
|
- Browser Label: firefox
|
228
|
-
- bundle exec cucumber
|
229
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org
|
225
|
+
- bundle exec: cucumber --verbose --profile ci --tags @en.wikipedia.beta.wmflabs.org
|
226
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
230
227
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
231
228
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
232
229
|
|
233
230
|
## VisualEditor-test2.wikipedia.org-linux-chrome
|
234
231
|
- Browser Label: chrome
|
235
|
-
- bundle exec cucumber
|
236
|
-
- Recipients: cmcmahon@wikimedia.org
|
232
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org
|
233
|
+
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
237
234
|
- MediaWiki URL: test2.wikipedia.org
|
238
235
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
239
236
|
|
240
237
|
## VisualEditor-test2.wikipedia.org-linux-firefox
|
241
238
|
- Browser Label: firefox
|
242
|
-
- bundle exec cucumber
|
243
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org
|
239
|
+
- bundle exec: cucumber --verbose --profile ci --tags @test2.wikipedia.org
|
240
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
244
241
|
- MediaWiki URL: test2.wikipedia.org
|
245
242
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
data/docs/template.md
CHANGED
@@ -34,8 +34,8 @@
|
|
34
34
|
|
35
35
|
## bundle exec
|
36
36
|
|
37
|
-
- ID:
|
38
|
-
- Display Name: bundle exec
|
37
|
+
- ID: BUNDLE_EXEC
|
38
|
+
- Display Name: bundle exec
|
39
39
|
- Type: Text-field
|
40
40
|
|
41
41
|
## Recipients
|
@@ -76,6 +76,20 @@
|
|
76
76
|
- Display Name: VisualEditor
|
77
77
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
|
78
78
|
|
79
|
+
## Branch
|
80
|
+
|
81
|
+
- ID: BRANCH
|
82
|
+
- Display Name: Branch
|
83
|
+
- Type: Select a string among many
|
84
|
+
- UI Mode: Dropdown list (no inline help, but more compact UI)
|
85
|
+
- Options
|
86
|
+
- Display Name: (name)
|
87
|
+
- Value: (name)
|
88
|
+
|
89
|
+
- name:
|
90
|
+
- debug
|
91
|
+
- master
|
92
|
+
|
79
93
|
## MediaWiki URL
|
80
94
|
|
81
95
|
- ID: MEDIAWIKI_URL
|
@@ -93,7 +107,6 @@
|
|
93
107
|
- en.m.wikipedia.org
|
94
108
|
- en.wikipedia.beta.wmflabs.org
|
95
109
|
- en.wikipedia.org
|
96
|
-
- meta.wikimedia.org
|
97
110
|
- sandbox.translatewiki.net
|
98
111
|
- test2.m.wikipedia.org
|
99
112
|
- test2.wikipedia.org
|
@@ -125,11 +138,6 @@
|
|
125
138
|
- Display Name: MediaWiki password variable
|
126
139
|
- Type: Text-field
|
127
140
|
|
128
|
-
## Build schedule
|
129
|
-
- ID: BUILD_SCHEDULE
|
130
|
-
- Display Name: Build schedule
|
131
|
-
- Type: Text-field
|
132
|
-
|
133
141
|
## Jelly-based transformation
|
134
142
|
|
135
143
|
- Property
|
@@ -174,7 +182,7 @@
|
|
174
182
|
</userRemoteConfigs>
|
175
183
|
<branches>
|
176
184
|
<hudson.plugins.git.BranchSpec>
|
177
|
-
<name
|
185
|
+
<name>${BRANCH}</name>
|
178
186
|
</hudson.plugins.git.BranchSpec>
|
179
187
|
</branches>
|
180
188
|
<disableSubmodules>false</disableSubmodules>
|
@@ -206,7 +214,7 @@
|
|
206
214
|
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
207
215
|
<triggers class="vector">
|
208
216
|
<hudson.triggers.TimerTrigger>
|
209
|
-
<spec
|
217
|
+
<spec>0 3,18 * * *</spec>
|
210
218
|
</hudson.triggers.TimerTrigger>
|
211
219
|
</triggers>
|
212
220
|
<concurrentBuild>false</concurrentBuild>
|
@@ -220,13 +228,13 @@
|
|
220
228
|
export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
|
221
229
|
|
222
230
|
curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
|
223
|
-
RUBY_VERSION=2.
|
231
|
+
RUBY_VERSION=2.0.0-p247 \
|
224
232
|
source ./use-ruby
|
225
233
|
|
226
234
|
gem install bundler --no-ri --no-rdoc
|
227
235
|
if [ -d "${FOLDER}" ]; then cd ${FOLDER}; fi
|
228
236
|
bundle install
|
229
|
-
bundle exec
|
237
|
+
bundle exec ${BUNDLE_EXEC}
|
230
238
|
</command>
|
231
239
|
</hudson.tasks.Shell>
|
232
240
|
</builders>
|
@@ -236,52 +244,11 @@
|
|
236
244
|
<keepLongStdio>false</keepLongStdio>
|
237
245
|
<testDataPublishers/>
|
238
246
|
</hudson.tasks.junit.JUnitResultArchiver>
|
239
|
-
<hudson.
|
240
|
-
<
|
241
|
-
<
|
242
|
-
|
243
|
-
|
244
|
-
<recipientList></recipientList>
|
245
|
-
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
|
246
|
-
<body>$PROJECT_DEFAULT_CONTENT</body>
|
247
|
-
<sendToDevelopers>false</sendToDevelopers>
|
248
|
-
<sendToRequester>false</sendToRequester>
|
249
|
-
<includeCulprits>false</includeCulprits>
|
250
|
-
<sendToRecipientList>true</sendToRecipientList>
|
251
|
-
<attachmentsPattern></attachmentsPattern>
|
252
|
-
<attachBuildLog>false</attachBuildLog>
|
253
|
-
<compressBuildLog>false</compressBuildLog>
|
254
|
-
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
|
255
|
-
<contentType>project</contentType>
|
256
|
-
</email>
|
257
|
-
</hudson.plugins.emailext.plugins.trigger.FailureTrigger>
|
258
|
-
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
|
259
|
-
<email>
|
260
|
-
<recipientList></recipientList>
|
261
|
-
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
|
262
|
-
<body>$PROJECT_DEFAULT_CONTENT</body>
|
263
|
-
<sendToDevelopers>false</sendToDevelopers>
|
264
|
-
<sendToRequester>false</sendToRequester>
|
265
|
-
<includeCulprits>false</includeCulprits>
|
266
|
-
<sendToRecipientList>true</sendToRecipientList>
|
267
|
-
<attachmentsPattern></attachmentsPattern>
|
268
|
-
<attachBuildLog>false</attachBuildLog>
|
269
|
-
<compressBuildLog>false</compressBuildLog>
|
270
|
-
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
|
271
|
-
<contentType>project</contentType>
|
272
|
-
</email>
|
273
|
-
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
|
274
|
-
</configuredTriggers>
|
275
|
-
<contentType>text/html</contentType>
|
276
|
-
<defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
|
277
|
-
<defaultContent>$${SCRIPT, template="wikimedia.template"}</defaultContent>
|
278
|
-
<attachmentsPattern></attachmentsPattern>
|
279
|
-
<presendScript></presendScript>
|
280
|
-
<attachBuildLog>false</attachBuildLog>
|
281
|
-
<compressBuildLog>false</compressBuildLog>
|
282
|
-
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
283
|
-
<saveOutput>false</saveOutput>
|
284
|
-
</hudson.plugins.emailext.ExtendedEmailPublisher>
|
247
|
+
<hudson.tasks.Mailer>
|
248
|
+
<recipients>${RECIPIENTS}</recipients>
|
249
|
+
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
|
250
|
+
<sendToIndividuals>false</sendToIndividuals>
|
251
|
+
</hudson.tasks.Mailer>
|
285
252
|
<hudson.plugins.ircbot.IrcPublisher plugin="ircbot@2.21">
|
286
253
|
<targets class="java.util.Collections$EmptyList"/>
|
287
254
|
<strategy>STATECHANGE_ONLY</strategy>
|
@@ -42,27 +42,18 @@ def local_browser(language)
|
|
42
42
|
end
|
43
43
|
|
44
44
|
if language == "default"
|
45
|
-
|
45
|
+
Watir::Browser.new browser_label
|
46
46
|
else
|
47
47
|
if browser_label == :firefox
|
48
48
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
49
|
-
profile["intl.accept_languages"] = language
|
50
|
-
browser = Watir::Browser.new browser_label, profile: profile
|
51
49
|
elsif browser_label == :chrome
|
52
50
|
profile = Selenium::WebDriver::Chrome::Profile.new
|
53
|
-
profile["intl.accept_languages"] = language
|
54
|
-
browser = Watir::Browser.new browser_label, profile: profile
|
55
|
-
elsif browser_label == :phantomjs
|
56
|
-
capabilities = Selenium::WebDriver::Remote::Capabilities.phantomjs
|
57
|
-
capabilities["phantomjs.page.customHeaders.Accept-Language"] = language
|
58
|
-
browser = Watir::Browser.new browser_label, desired_capabilities: capabilities
|
59
51
|
else
|
60
|
-
raise "Changing default language is currently supported only for
|
52
|
+
raise "Changing default language is currently supported only for Firefox and Chrome!"
|
61
53
|
end
|
54
|
+
profile["intl.accept_languages"] = language
|
55
|
+
Watir::Browser.new browser_label, :profile => profile
|
62
56
|
end
|
63
|
-
|
64
|
-
browser.window.resize_to 1280, 1024
|
65
|
-
browser
|
66
57
|
end
|
67
58
|
def sauce_api(json)
|
68
59
|
RestClient::Request.execute(
|
@@ -100,8 +91,9 @@ def sauce_browser(test_name, language)
|
|
100
91
|
http_client: Selenium::WebDriver::Remote::Http::Persistent.new,
|
101
92
|
url: "http://#{ENV['SAUCE_ONDEMAND_USERNAME']}:#{ENV['SAUCE_ONDEMAND_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub",
|
102
93
|
desired_capabilities: caps)
|
94
|
+
browser.window.resize_to 1280, 1024
|
103
95
|
browser.wd.file_detector = lambda do |args|
|
104
|
-
# args => [
|
96
|
+
# args => ['/path/to/file']
|
105
97
|
str = args.first.to_s
|
106
98
|
str if File.exist?(str)
|
107
99
|
end
|
@@ -18,17 +18,12 @@ Before("@login") do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
Before do |scenario|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
@browser = browser(environment, test_name(scenario), "default")
|
28
|
-
$browser = @browser # CirrusSearch and VisualEditor need this
|
29
|
-
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
30
|
-
end
|
31
|
-
end
|
21
|
+
require "selenium-webdriver"
|
22
|
+
browser = Selenium::WebDriver.for :phantomjs
|
23
|
+
browser.navigate.to "http://cloudbees.com"
|
24
|
+
browser.save_screenshot "cloudbees.png"
|
25
|
+
|
26
|
+
puts @browser = Watir::Browser.new(:phantomjs)
|
32
27
|
end
|
33
28
|
|
34
29
|
After do |scenario|
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediawiki-selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zeljko Filipin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: net-http-persistent
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: page-object
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rest-client
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-expectations
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: syntax
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: |-
|
@@ -117,11 +117,10 @@ executables: []
|
|
117
117
|
extensions: []
|
118
118
|
extra_rdoc_files: []
|
119
119
|
files:
|
120
|
-
-
|
120
|
+
- .gitreview
|
121
121
|
- CREDITS
|
122
122
|
- LICENSE
|
123
123
|
- README.md
|
124
|
-
- docs/jenkins-email.template
|
125
124
|
- docs/jenkins.md
|
126
125
|
- docs/job.md
|
127
126
|
- docs/jobs.md
|
@@ -143,17 +142,17 @@ require_paths:
|
|
143
142
|
- lib
|
144
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
144
|
requirements:
|
146
|
-
- -
|
145
|
+
- - '>='
|
147
146
|
- !ruby/object:Gem::Version
|
148
147
|
version: '0'
|
149
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
149
|
requirements:
|
151
|
-
- -
|
150
|
+
- - '>'
|
152
151
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
152
|
+
version: 1.3.1
|
154
153
|
requirements: []
|
155
154
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.1.11
|
157
156
|
signing_key:
|
158
157
|
specification_version: 4
|
159
158
|
summary: An easy way to run MediaWiki Selenium tests.
|
data/docs/jenkins-email.template
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
<STYLE>
|
2
|
-
BODY, TABLE, TD, TH, P {
|
3
|
-
font-family: Verdana, Helvetica, sans serif;
|
4
|
-
font-size: 11px;
|
5
|
-
color: black;
|
6
|
-
}
|
7
|
-
h1 {
|
8
|
-
color: black;
|
9
|
-
}
|
10
|
-
h2 {
|
11
|
-
color: black;
|
12
|
-
}
|
13
|
-
h3 {
|
14
|
-
color: black;
|
15
|
-
}
|
16
|
-
TD.bg1 {
|
17
|
-
font-size: 120%
|
18
|
-
}
|
19
|
-
TD.bg2 {
|
20
|
-
font-size: 110%
|
21
|
-
}
|
22
|
-
TD.bg3 {
|
23
|
-
}
|
24
|
-
TD.test_passed {
|
25
|
-
color: blue;
|
26
|
-
}
|
27
|
-
TD.test_failed {
|
28
|
-
color: red;
|
29
|
-
}
|
30
|
-
TD.console {
|
31
|
-
font-family: Courier New;
|
32
|
-
}
|
33
|
-
</STYLE>
|
34
|
-
<BODY>
|
35
|
-
<TABLE>
|
36
|
-
<TR>
|
37
|
-
<TD align="left"><B style="font-size: 250%;"> <span style="color:<%= build.result.toString() == 'SUCCESS' ? 'blue' : build.result.toString() == 'FAILURE' ? 'red' : 'yellow' %>">${build.result}:</span> ${project.name} Build #<A href="${rooturl}${build.url}">${build.number}</A> (${it.timestampString})</B></TD>
|
38
|
-
</TR>
|
39
|
-
</TABLE>
|
40
|
-
<BR/>
|
41
|
-
|
42
|
-
<!-- JUnit TEMPLATE -->
|
43
|
-
|
44
|
-
<% def junitResultList = it.JUnitTestResult
|
45
|
-
if (junitResultList.size() > 0) { %>
|
46
|
-
<TD><H1><A href="${rooturl}${build.url}testReport/"><B>Test Result</B></A></H1>
|
47
|
-
<DIV>
|
48
|
-
<DIV>
|
49
|
-
${build.testResultAction.getFailCount()} failed, ${build.testResultAction.getSkipCount()} skipped
|
50
|
-
</DIV>
|
51
|
-
<div style="width:100%; height:1em; background-color: #729FCF">
|
52
|
-
<div style="width:${ build.testResultAction.getFailCount() / build.testResultAction.getTotalCount() * 100 }%; height: 1em; background-color: #EF2929; float: left"></div><div style="width:${ build.testResultAction.getSkipCount() / build.testResultAction.getTotalCount() * 100 }%; height: 1em; background-color: #FCE94F; float: left"></div>
|
53
|
-
</div>
|
54
|
-
<h2>Failed Tests</h2>
|
55
|
-
<Table border="1" style="border-collapse: collapse; border-spacing: 2px; border-color: gray; white-space: nowrap; width: 100%;">
|
56
|
-
<tr>
|
57
|
-
<Td><b>Test Name</B></td><td style="width:5m"><B>Duration</B></td><Td style="width:5em"><b>Age</b></td>
|
58
|
-
</tr>
|
59
|
-
<% it.JUnitTestResult.each { junitResult ->
|
60
|
-
junitResult.getChildren().each { packageResult -> %>
|
61
|
-
|
62
|
-
<% packageResult.getFailedTests().each{ failed_test -> %>
|
63
|
-
<tr>
|
64
|
-
<Td><A href="${rooturl}${build.url}testReport${failed_test.getUrl()}">${failed_test.getFullName()}</A></td><td>${failed_test.getDurationString()}</td><Td><A href="${rooturl}${project.url}${build.number - failed_test.getAge()}/">${failed_test.getAge()}</A></td>
|
65
|
-
</tr>
|
66
|
-
<% } %>
|
67
|
-
|
68
|
-
<% }
|
69
|
-
} %>
|
70
|
-
</table>
|
71
|
-
<h2>All Tests</h2>
|
72
|
-
<table border="1" style="border-collapse: collapse; border-spacing: 2px; border-color: gray; white-space: nowrap; width: 100%;">
|
73
|
-
<tr>
|
74
|
-
<Td><b>Package</B></td><td style="width:6em"><B>Duration</B></td><td style="width:5em"><b>Fail</b></td><td style="width:5em"><b>Skip</b></td><Td style="width:5em"><b>Total</b></td>
|
75
|
-
</tr>
|
76
|
-
<% it.JUnitTestResult.each { junitResult ->
|
77
|
-
junitResult.getChildren().each { packageResult -> %>
|
78
|
-
|
79
|
-
<tr>
|
80
|
-
<Td><A href="${rooturl}${build.url}testReport${packageResult.getUrl()}">${packageResult.getName()}</a></td><td>${packageResult.getDurationString()}</td><td>${packageResult.getFailCount()}</td><td>${packageResult.getSkipCount()}</td><td>${packageResult.getTotalCount()}</td>
|
81
|
-
</tr>
|
82
|
-
|
83
|
-
<% }
|
84
|
-
} %>
|
85
|
-
</table>
|
86
|
-
<BR/>
|
87
|
-
<% } %>
|
88
|
-
</BODY>
|
89
|
-
|