mediawiki-selenium 0.1.16pre → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/docs/jenkins-email.template +89 -0
- data/docs/jenkins.md +1 -1
- data/docs/job.md +1 -1
- data/docs/jobs.md +40 -37
- data/docs/template.md +58 -25
- data/lib/mediawiki/selenium/env.rb +14 -6
- data/lib/mediawiki/selenium/hooks.rb +11 -1
- data/lib/mediawiki/selenium/version.rb +1 -1
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed6df642233be5df01b6284cf4397ffe74e14c8
|
4
|
+
data.tar.gz: fa01a5068cd9d39cc50f21c6675707bce96ec3f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b3b2f32540657a257a8b720e82a9702fefac04a3329b50a5e020a803e2eb2d722e956c2de950ea3285cc267f46f1e624be286ada58250c7f693f349145298d9
|
7
|
+
data.tar.gz: 08ccd99ddc331087135eae01c5c2b040029d03c8423e5c98f3f760e5b545914fd997736354893275f4f561d7ff1e0dcef5209f50a0cfc9096476633dc7f9f077
|
data/README.md
CHANGED
@@ -53,15 +53,16 @@ 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
|
-
|
56
|
+
1. 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
|
+
2. ContentTranslation: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/ContentTranslation), [GitHub](https://github.com/wikimedia/mediawiki-extensions-ContentTranslation), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-ContentTranslation), `/tests/browser` folder
|
58
|
+
3. 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
|
59
|
+
4. 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
|
60
|
+
5. 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
|
61
|
+
6. 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
|
62
|
+
7. 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
|
63
|
+
8. 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
|
64
|
+
9. 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
|
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
|
65
66
|
|
66
67
|
## Contributing
|
67
68
|
|
@@ -0,0 +1,89 @@
|
|
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
|
+
|
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 instant-messaging plugin, Jenkins IRC Plugin
|
5
|
+
- Jenkins > Manage Jenkins > Manage Plugins > Available > ChuckNorris Plugin, Green Balls, Jenkins Email Extension Plugin, 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.1.0 \
|
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 cucumber: || echo "Failure in cucumber"
|
4
4
|
- Recipients:
|
5
|
-
- Branch: master
|
6
5
|
- MediaWiki URL:
|
7
6
|
- Folder:
|
8
7
|
- Repository URL:
|
9
8
|
- MediaWiki user:
|
10
9
|
- 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
|
23
|
+
- bundle exec cucumber: --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
|
41
|
+
- bundle exec cucumber: --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
|
53
|
+
- bundle exec cucumber: --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
|
57
|
+
- bundle exec cucumber: --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
|
61
|
+
- bundle exec cucumber: --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
|
72
|
+
- bundle exec cucumber: --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
|
84
|
+
- bundle exec cucumber: --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
|
88
|
+
- bundle exec cucumber: --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
|
92
|
+
- bundle exec cucumber: --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
|
103
|
+
- bundle exec cucumber: --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,49 +118,52 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
# MobileFrontend
|
121
|
-
- Recipients: cmcmahon@wikimedia.org mobile-l@lists.wikimedia.org mobile-tech@wikimedia.org zfilipin@wikimedia.org
|
121
|
+
- Recipients: cmcmahon@wikimedia.org jhall@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
|
128
|
+
- bundle exec cucumber: --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
|
134
|
+
- bundle exec cucumber: --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
|
140
|
+
- bundle exec cucumber: --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
|
146
|
+
- bundle exec cucumber: --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
|
-
|
155
|
-
## Translate-sandbox.translatewiki.net-linux-firefox
|
156
153
|
- 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
|
159
|
-
- MediaWiki URL: sandbox.translatewiki.net
|
160
154
|
- Folder: tests/browser/
|
155
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
161
156
|
- Repository URL: Translate
|
162
|
-
|
163
|
-
-
|
157
|
+
|
158
|
+
## Translate-sandbox.translatewiki.net-linux-firefox
|
159
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
160
|
+
- MediaWiki URL: sandbox.translatewiki.net
|
161
|
+
- MediaWiki user: Selenium-Translate
|
162
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATE_TRANSLATEWIKI_NET
|
163
|
+
|
164
|
+
## Translate-meta.wikimedia.org-linux-firefox
|
165
|
+
- bundle exec cucumber: --tags @meta.wikimedia.org
|
166
|
+
- MediaWiki URL: meta.wikimedia.org
|
164
167
|
|
165
168
|
|
166
169
|
|
@@ -169,7 +172,7 @@
|
|
169
172
|
|
170
173
|
## TwnMainPage-sandbox.translatewiki.net-linux-firefox
|
171
174
|
- Browser Label: firefox
|
172
|
-
- bundle exec
|
175
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
173
176
|
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org smazeland@wikimedia.org zfilipin@wikimedia.org
|
174
177
|
- MediaWiki URL: sandbox.translatewiki.net
|
175
178
|
- Folder: tests/browser/
|
@@ -188,19 +191,19 @@
|
|
188
191
|
|
189
192
|
|
190
193
|
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
191
|
-
- bundle exec
|
194
|
+
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
192
195
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
193
196
|
- MediaWiki user: Uls
|
194
197
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
195
198
|
|
196
199
|
## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-linux-firefox
|
197
|
-
- bundle exec
|
200
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
198
201
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
199
202
|
- MediaWiki user: Uls
|
200
203
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
201
204
|
|
202
205
|
## UniversalLanguageSelector-sandbox.translatewiki.net-linux-firefox
|
203
|
-
- bundle exec
|
206
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
204
207
|
- MediaWiki URL: sandbox.translatewiki.net
|
205
208
|
- MediaWiki user: Selenium
|
206
209
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
@@ -215,28 +218,28 @@
|
|
215
218
|
|
216
219
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
|
217
220
|
- Browser Label: chrome
|
218
|
-
- bundle exec
|
219
|
-
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
221
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
222
|
+
- Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
220
223
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
221
224
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
222
225
|
|
223
226
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-firefox
|
224
227
|
- Browser Label: firefox
|
225
|
-
- bundle exec
|
226
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
228
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
229
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
227
230
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
228
231
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
229
232
|
|
230
233
|
## VisualEditor-test2.wikipedia.org-linux-chrome
|
231
234
|
- Browser Label: chrome
|
232
|
-
- bundle exec
|
233
|
-
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
235
|
+
- bundle exec cucumber: --tags @test2.wikipedia.org
|
236
|
+
- Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
234
237
|
- MediaWiki URL: test2.wikipedia.org
|
235
238
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
236
239
|
|
237
240
|
## VisualEditor-test2.wikipedia.org-linux-firefox
|
238
241
|
- Browser Label: firefox
|
239
|
-
- bundle exec
|
240
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
242
|
+
- bundle exec cucumber: --tags @test2.wikipedia.org
|
243
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
241
244
|
- MediaWiki URL: test2.wikipedia.org
|
242
245
|
- 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_CUCUMBER
|
38
|
+
- Display Name: bundle exec cucumber --backtrace --verbose --profile ci
|
39
39
|
- Type: Text-field
|
40
40
|
|
41
41
|
## Recipients
|
@@ -76,20 +76,6 @@
|
|
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
|
-
|
93
79
|
## MediaWiki URL
|
94
80
|
|
95
81
|
- ID: MEDIAWIKI_URL
|
@@ -107,6 +93,7 @@
|
|
107
93
|
- en.m.wikipedia.org
|
108
94
|
- en.wikipedia.beta.wmflabs.org
|
109
95
|
- en.wikipedia.org
|
96
|
+
- meta.wikimedia.org
|
110
97
|
- sandbox.translatewiki.net
|
111
98
|
- test2.m.wikipedia.org
|
112
99
|
- test2.wikipedia.org
|
@@ -138,6 +125,11 @@
|
|
138
125
|
- Display Name: MediaWiki password variable
|
139
126
|
- Type: Text-field
|
140
127
|
|
128
|
+
## Build schedule
|
129
|
+
- ID: BUILD_SCHEDULE
|
130
|
+
- Display Name: Build schedule
|
131
|
+
- Type: Text-field
|
132
|
+
|
141
133
|
## Jelly-based transformation
|
142
134
|
|
143
135
|
- Property
|
@@ -182,7 +174,7 @@
|
|
182
174
|
</userRemoteConfigs>
|
183
175
|
<branches>
|
184
176
|
<hudson.plugins.git.BranchSpec>
|
185
|
-
<name
|
177
|
+
<name>master</name>
|
186
178
|
</hudson.plugins.git.BranchSpec>
|
187
179
|
</branches>
|
188
180
|
<disableSubmodules>false</disableSubmodules>
|
@@ -214,7 +206,7 @@
|
|
214
206
|
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
215
207
|
<triggers class="vector">
|
216
208
|
<hudson.triggers.TimerTrigger>
|
217
|
-
<spec
|
209
|
+
<spec>${BUILD_SCHEDULE}</spec>
|
218
210
|
</hudson.triggers.TimerTrigger>
|
219
211
|
</triggers>
|
220
212
|
<concurrentBuild>false</concurrentBuild>
|
@@ -228,13 +220,13 @@
|
|
228
220
|
export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
|
229
221
|
|
230
222
|
curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
|
231
|
-
RUBY_VERSION=2.
|
223
|
+
RUBY_VERSION=2.1.0 \
|
232
224
|
source ./use-ruby
|
233
225
|
|
234
226
|
gem install bundler --no-ri --no-rdoc
|
235
227
|
if [ -d "${FOLDER}" ]; then cd ${FOLDER}; fi
|
236
228
|
bundle install
|
237
|
-
bundle exec ${
|
229
|
+
bundle exec cucumber --backtrace --verbose --profile ci ${BUNDLE_EXEC_CUCUMBER}
|
238
230
|
</command>
|
239
231
|
</hudson.tasks.Shell>
|
240
232
|
</builders>
|
@@ -244,11 +236,52 @@
|
|
244
236
|
<keepLongStdio>false</keepLongStdio>
|
245
237
|
<testDataPublishers/>
|
246
238
|
</hudson.tasks.junit.JUnitResultArchiver>
|
247
|
-
<hudson.
|
248
|
-
<
|
249
|
-
<
|
250
|
-
|
251
|
-
|
239
|
+
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.36">
|
240
|
+
<recipientList>${RECIPIENTS}</recipientList>
|
241
|
+
<configuredTriggers>
|
242
|
+
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
|
243
|
+
<email>
|
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>
|
252
285
|
<hudson.plugins.ircbot.IrcPublisher plugin="ircbot@2.21">
|
253
286
|
<targets class="java.util.Collections$EmptyList"/>
|
254
287
|
<strategy>STATECHANGE_ONLY</strategy>
|
@@ -42,18 +42,27 @@ def local_browser(language)
|
|
42
42
|
end
|
43
43
|
|
44
44
|
if language == "default"
|
45
|
-
Watir::Browser.new browser_label
|
45
|
+
browser = 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
|
49
51
|
elsif browser_label == :chrome
|
50
52
|
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
|
51
59
|
else
|
52
|
-
raise "Changing default language is currently supported only for Firefox and
|
60
|
+
raise "Changing default language is currently supported only for Chrome, Firefox and PhantomJS!"
|
53
61
|
end
|
54
|
-
profile["intl.accept_languages"] = language
|
55
|
-
Watir::Browser.new browser_label, :profile => profile
|
56
62
|
end
|
63
|
+
|
64
|
+
browser.window.resize_to 1280, 1024
|
65
|
+
browser
|
57
66
|
end
|
58
67
|
def sauce_api(json)
|
59
68
|
RestClient::Request.execute(
|
@@ -91,9 +100,8 @@ def sauce_browser(test_name, language)
|
|
91
100
|
http_client: Selenium::WebDriver::Remote::Http::Persistent.new,
|
92
101
|
url: "http://#{ENV['SAUCE_ONDEMAND_USERNAME']}:#{ENV['SAUCE_ONDEMAND_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub",
|
93
102
|
desired_capabilities: caps)
|
94
|
-
browser.window.resize_to 1280, 1024
|
95
103
|
browser.wd.file_detector = lambda do |args|
|
96
|
-
# args => [
|
104
|
+
# args => ["/path/to/file"]
|
97
105
|
str = args.first.to_s
|
98
106
|
str if File.exist?(str)
|
99
107
|
end
|
@@ -18,7 +18,17 @@ Before("@login") do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
Before do |scenario|
|
21
|
-
|
21
|
+
@config = config
|
22
|
+
@random_string = Random.new.rand.to_s
|
23
|
+
if ENV["REUSE_BROWSER"] == "true" and $browser # CirrusSearch and VisualEditor need this
|
24
|
+
@browser = $browser
|
25
|
+
else
|
26
|
+
unless @language or @user_agent # only UniversalLanguageSelector needs @language, only MobileFrontend needs @user_agent
|
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
|
22
32
|
end
|
23
33
|
|
24
34
|
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.16
|
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: 2014-01-17 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,10 +117,11 @@ executables: []
|
|
117
117
|
extensions: []
|
118
118
|
extra_rdoc_files: []
|
119
119
|
files:
|
120
|
-
- .gitreview
|
120
|
+
- ".gitreview"
|
121
121
|
- CREDITS
|
122
122
|
- LICENSE
|
123
123
|
- README.md
|
124
|
+
- docs/jenkins-email.template
|
124
125
|
- docs/jenkins.md
|
125
126
|
- docs/job.md
|
126
127
|
- docs/jobs.md
|
@@ -142,17 +143,17 @@ require_paths:
|
|
142
143
|
- lib
|
143
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
145
|
requirements:
|
145
|
-
- -
|
146
|
+
- - ">="
|
146
147
|
- !ruby/object:Gem::Version
|
147
148
|
version: '0'
|
148
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
150
|
requirements:
|
150
|
-
- -
|
151
|
+
- - ">="
|
151
152
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
153
|
+
version: '0'
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.2.0
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: An easy way to run MediaWiki Selenium tests.
|