mediawiki-selenium 0.1.17pre → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/docs/UploadWizard-commons.wikimedia.org.md +51 -0
- data/docs/jenkins-email.template +89 -0
- data/docs/jenkins.md +1 -1
- data/docs/job.md +1 -1
- data/docs/jobs.md +63 -38
- data/docs/template.md +52 -26
- data/lib/mediawiki/selenium.rb +2 -2
- data/lib/mediawiki/selenium/env.rb +54 -10
- data/lib/mediawiki/selenium/hooks.rb +12 -10
- data/lib/mediawiki/selenium/sauce.rb +2 -2
- data/lib/mediawiki/selenium/version.rb +3 -3
- metadata +23 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a10c5746c6c8a1b401d4f0d0878127d381b3b2
|
4
|
+
data.tar.gz: b22975aff748b90c5b2e808ddb03d2900f64976f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2008e8b08f41995f1b673543a33b5d702ded22e7f2d723c9dcb56a32be43dfb62797973634eed83b2879f090215124ee2071398acc9ac137a7d4201c5602aa
|
7
|
+
data.tar.gz: e8dd32927c100c9d4cf930784c263bd2961859fffce69d1b07e0b4ea4e5241245de5264e35ea0e3c22e6744ed090791c320798f27b9a80b17c8e0b0f7e30ad98
|
data/README.md
CHANGED
@@ -53,15 +53,17 @@ 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. MultimediaViewer: [Gerrit](https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/MultimediaViewer), [GitHub](https://github.com/wikimedia/mediawiki-extensions-MultimediaViewer), [Jenkins](https://wmf.ci.cloudbees.com/view/r-mv/), [Code Climate](https://codeclimate.com/github/wikimedia/mediawiki-extensions-MultimediaViewer), `/tests/browser` folder
|
61
|
+
6. 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
|
62
|
+
7. 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
|
63
|
+
8. 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
|
64
|
+
9. 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
|
65
|
+
10. 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
|
66
|
+
11. 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
67
|
|
66
68
|
## Contributing
|
67
69
|
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# UploadWizard-commons.wikimedia.org
|
2
|
+
|
3
|
+
- Jenkins > New Job
|
4
|
+
- Job name: UploadWizard-commons.wikimedia.org
|
5
|
+
- Build a free-style software project
|
6
|
+
- OK
|
7
|
+
- Jenkins > Job > Configure
|
8
|
+
- Source Code Management > Git > Repositories > Repository URL: https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard
|
9
|
+
- Build Triggers > Build periodically > Schedule: H */6 * * * (every 6 hours)
|
10
|
+
- Build > Add build step > Execute shell
|
11
|
+
|
12
|
+
--
|
13
|
+
|
14
|
+
git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard refs/changes/61/109661/6 && git checkout FETCH_HEAD
|
15
|
+
export MEDIAWIKI_PASSWORD_VARIABLE=MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
16
|
+
virtualenv --distribute DEV
|
17
|
+
DEV/bin/pip install -rtests/api/requirements.txt
|
18
|
+
DEV/bin/python tests/api/upload-wizard_tests.py --username "Selenium_user" --api_url "https://commons.wikimedia.org/w/api.php"
|
19
|
+
|
20
|
+
--
|
21
|
+
|
22
|
+
- Add post-build action
|
23
|
+
- E-mail Notification > Recipients > aarcos.wiki@gmail.com cmcmahon@wikimedia.org gtisza@wikimedia.org zfilipin@wikimedia.org
|
24
|
+
- IRC Notification (notifies #wikimedia-qa by default)
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
# UploadWizard-commons.wikimedia.beta.wmflabs.org
|
29
|
+
|
30
|
+
- Jenkins > New Job
|
31
|
+
- Job name: UploadWizard-commons.wikimedia.beta.wmflabs.org
|
32
|
+
- Build a free-style software project
|
33
|
+
- OK
|
34
|
+
- Jenkins > Job > Configure
|
35
|
+
- Source Code Management > Git > Repositories > Repository URL: https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard
|
36
|
+
- Build Triggers > Poll SCM > Schedule > * * * * * (every minute)
|
37
|
+
- Build > Add build step > Execute shell
|
38
|
+
|
39
|
+
--
|
40
|
+
|
41
|
+
git fetch https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard refs/changes/61/109661/6 && git checkout FETCH_HEAD
|
42
|
+
export MEDIAWIKI_PASSWORD_VARIABLE=MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
43
|
+
virtualenv --distribute DEV
|
44
|
+
DEV/bin/pip install -rtests/api/requirements.txt
|
45
|
+
DEV/bin/python tests/api/upload-wizard_tests.py --username "Selenium_user" --api_url "http://commons.wikimedia.beta.wmflabs.org/w/api.php"
|
46
|
+
|
47
|
+
--
|
48
|
+
|
49
|
+
- Add post-build action
|
50
|
+
- E-mail Notification > Recipients > aarcos.wiki@gmail.com cmcmahon@wikimedia.org gtisza@wikimedia.org zfilipin@wikimedia.org
|
51
|
+
- IRC Notification (notifies #wikimedia-qa by default)
|
@@ -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:
|
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,67 @@
|
|
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
|
+
# MultimediaViewer
|
153
|
+
|
154
|
+
## MultimediaViewer-en.wikipedia.beta.wmflabs.org-linux-firefox
|
155
|
+
- Browser Label: firefox
|
156
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
157
|
+
- Recipients: aarcos.wiki@gmail.com cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
158
|
+
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
159
|
+
- Folder: tests/browser/
|
160
|
+
- Repository URL: MultimediaViewer
|
161
|
+
- MediaWiki user: Selenium_user
|
162
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
163
|
+
- Build schedule: 0 3,18 * * *
|
153
164
|
|
154
165
|
|
155
|
-
|
166
|
+
|
167
|
+
# Translate
|
156
168
|
- 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
169
|
- Folder: tests/browser/
|
170
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org zfilipin@wikimedia.org
|
161
171
|
- Repository URL: Translate
|
162
|
-
|
163
|
-
-
|
172
|
+
|
173
|
+
## Translate-sandbox.translatewiki.net-linux-firefox
|
174
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
175
|
+
- MediaWiki URL: sandbox.translatewiki.net
|
176
|
+
- MediaWiki user: Selenium-Translate
|
177
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATE_TRANSLATEWIKI_NET
|
178
|
+
|
179
|
+
## Translate-meta.wikimedia.org-linux-firefox
|
180
|
+
- bundle exec cucumber: --tags @meta.wikimedia.org
|
181
|
+
- MediaWiki URL: meta.wikimedia.org
|
164
182
|
|
165
183
|
|
166
184
|
|
@@ -169,8 +187,8 @@
|
|
169
187
|
|
170
188
|
## TwnMainPage-sandbox.translatewiki.net-linux-firefox
|
171
189
|
- Browser Label: firefox
|
172
|
-
- bundle exec
|
173
|
-
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org
|
190
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
191
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org zfilipin@wikimedia.org
|
174
192
|
- MediaWiki URL: sandbox.translatewiki.net
|
175
193
|
- Folder: tests/browser/
|
176
194
|
- Repository URL: TwnMainPage
|
@@ -182,25 +200,32 @@
|
|
182
200
|
|
183
201
|
# UniversalLanguageSelector
|
184
202
|
- Browser Label: firefox
|
185
|
-
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org
|
203
|
+
- Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org sthottingal@wikimedia.org zfilipin@wikimedia.org
|
186
204
|
- Folder: tests/browser/
|
187
205
|
- Repository URL: UniversalLanguageSelector
|
188
206
|
|
189
207
|
|
190
208
|
## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
|
191
|
-
- bundle exec
|
209
|
+
- bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
|
192
210
|
- MediaWiki URL: commons.wikimedia.beta.wmflabs.org
|
193
211
|
- MediaWiki user: Uls
|
194
212
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
195
213
|
|
196
214
|
## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-linux-firefox
|
197
|
-
- bundle exec
|
215
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
216
|
+
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
217
|
+
- MediaWiki user: Uls
|
218
|
+
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
219
|
+
|
220
|
+
## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_8
|
221
|
+
- Browser Label: internet_explorer_8
|
222
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
198
223
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
199
224
|
- MediaWiki user: Uls
|
200
225
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
|
201
226
|
|
202
227
|
## UniversalLanguageSelector-sandbox.translatewiki.net-linux-firefox
|
203
|
-
- bundle exec
|
228
|
+
- bundle exec cucumber: --tags @sandbox.translatewiki.net
|
204
229
|
- MediaWiki URL: sandbox.translatewiki.net
|
205
230
|
- MediaWiki user: Selenium
|
206
231
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
|
@@ -215,28 +240,28 @@
|
|
215
240
|
|
216
241
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
|
217
242
|
- Browser Label: chrome
|
218
|
-
- bundle exec
|
219
|
-
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
243
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
244
|
+
- Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
220
245
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
221
246
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
222
247
|
|
223
248
|
## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-firefox
|
224
249
|
- Browser Label: firefox
|
225
|
-
- bundle exec
|
226
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
250
|
+
- bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
|
251
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
227
252
|
- MediaWiki URL: en.wikipedia.beta.wmflabs.org
|
228
253
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
|
229
254
|
|
230
255
|
## VisualEditor-test2.wikipedia.org-linux-chrome
|
231
256
|
- Browser Label: chrome
|
232
|
-
- bundle exec
|
233
|
-
- Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
|
257
|
+
- bundle exec cucumber: --tags @test2.wikipedia.org
|
258
|
+
- Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
234
259
|
- MediaWiki URL: test2.wikipedia.org
|
235
260
|
- MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
|
236
261
|
|
237
262
|
## VisualEditor-test2.wikipedia.org-linux-firefox
|
238
263
|
- Browser Label: firefox
|
239
|
-
- bundle exec
|
240
|
-
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org zfilipin@wikimedia.org
|
264
|
+
- bundle exec cucumber: --tags @test2.wikipedia.org
|
265
|
+
- Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
|
241
266
|
- MediaWiki URL: test2.wikipedia.org
|
242
267
|
- 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
|
@@ -52,18 +52,21 @@
|
|
52
52
|
- UI Mode: Dropdown list (no inline help, but more compact UI)
|
53
53
|
- Options
|
54
54
|
|
55
|
-
- Display Name: browsertests
|
56
|
-
- Value: https://gerrit.wikimedia.org/r/qa/browsertests
|
57
|
-
|
58
55
|
- Display Name: CirrusSearch
|
59
56
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch
|
60
57
|
|
58
|
+
- Display Name: ContentTranslation
|
59
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
|
60
|
+
|
61
61
|
- Display Name: Flow
|
62
62
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow
|
63
63
|
|
64
64
|
- Display Name: MobileFrontend
|
65
65
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend
|
66
66
|
|
67
|
+
- Display Name: MultimediaViewer
|
68
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
|
69
|
+
|
67
70
|
- Display Name: Translate
|
68
71
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Translate
|
69
72
|
|
@@ -76,19 +79,11 @@
|
|
76
79
|
- Display Name: VisualEditor
|
77
80
|
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
|
78
81
|
|
79
|
-
|
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)
|
82
|
+
- Display Name: Wikibase
|
83
|
+
- Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase
|
88
84
|
|
89
|
-
-
|
90
|
-
|
91
|
-
- master
|
85
|
+
- Display Name: browsertests
|
86
|
+
- Value: https://gerrit.wikimedia.org/r/qa/browsertests
|
92
87
|
|
93
88
|
## MediaWiki URL
|
94
89
|
|
@@ -107,6 +102,7 @@
|
|
107
102
|
- en.m.wikipedia.org
|
108
103
|
- en.wikipedia.beta.wmflabs.org
|
109
104
|
- en.wikipedia.org
|
105
|
+
- meta.wikimedia.org
|
110
106
|
- sandbox.translatewiki.net
|
111
107
|
- test2.m.wikipedia.org
|
112
108
|
- test2.wikipedia.org
|
@@ -138,6 +134,11 @@
|
|
138
134
|
- Display Name: MediaWiki password variable
|
139
135
|
- Type: Text-field
|
140
136
|
|
137
|
+
## Build schedule
|
138
|
+
- ID: BUILD_SCHEDULE
|
139
|
+
- Display Name: Build schedule
|
140
|
+
- Type: Text-field
|
141
|
+
|
141
142
|
## Jelly-based transformation
|
142
143
|
|
143
144
|
- Property
|
@@ -182,7 +183,7 @@
|
|
182
183
|
</userRemoteConfigs>
|
183
184
|
<branches>
|
184
185
|
<hudson.plugins.git.BranchSpec>
|
185
|
-
<name
|
186
|
+
<name>master</name>
|
186
187
|
</hudson.plugins.git.BranchSpec>
|
187
188
|
</branches>
|
188
189
|
<disableSubmodules>false</disableSubmodules>
|
@@ -214,7 +215,7 @@
|
|
214
215
|
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
215
216
|
<triggers class="vector">
|
216
217
|
<hudson.triggers.TimerTrigger>
|
217
|
-
<spec
|
218
|
+
<spec>${BUILD_SCHEDULE}</spec>
|
218
219
|
</hudson.triggers.TimerTrigger>
|
219
220
|
</triggers>
|
220
221
|
<concurrentBuild>false</concurrentBuild>
|
@@ -228,13 +229,13 @@
|
|
228
229
|
export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
|
229
230
|
|
230
231
|
curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
|
231
|
-
RUBY_VERSION=2.
|
232
|
+
RUBY_VERSION=2.1.0 \
|
232
233
|
source ./use-ruby
|
233
234
|
|
234
235
|
gem install bundler --no-ri --no-rdoc
|
235
236
|
if [ -d "${FOLDER}" ]; then cd ${FOLDER}; fi
|
236
237
|
bundle install
|
237
|
-
bundle exec ${
|
238
|
+
bundle exec cucumber --backtrace --verbose --profile ci ${BUNDLE_EXEC_CUCUMBER}
|
238
239
|
</command>
|
239
240
|
</hudson.tasks.Shell>
|
240
241
|
</builders>
|
@@ -244,11 +245,36 @@
|
|
244
245
|
<keepLongStdio>false</keepLongStdio>
|
245
246
|
<testDataPublishers/>
|
246
247
|
</hudson.tasks.junit.JUnitResultArchiver>
|
247
|
-
<hudson.
|
248
|
-
<
|
249
|
-
<
|
250
|
-
|
251
|
-
|
248
|
+
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.36">
|
249
|
+
<recipientList>${RECIPIENTS}</recipientList>
|
250
|
+
<configuredTriggers>
|
251
|
+
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
|
252
|
+
<email>
|
253
|
+
<recipientList></recipientList>
|
254
|
+
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
|
255
|
+
<body>$PROJECT_DEFAULT_CONTENT</body>
|
256
|
+
<sendToDevelopers>false</sendToDevelopers>
|
257
|
+
<sendToRequester>false</sendToRequester>
|
258
|
+
<includeCulprits>false</includeCulprits>
|
259
|
+
<sendToRecipientList>true</sendToRecipientList>
|
260
|
+
<attachmentsPattern></attachmentsPattern>
|
261
|
+
<attachBuildLog>false</attachBuildLog>
|
262
|
+
<compressBuildLog>false</compressBuildLog>
|
263
|
+
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
|
264
|
+
<contentType>project</contentType>
|
265
|
+
</email>
|
266
|
+
</hudson.plugins.emailext.plugins.trigger.FailureTrigger>
|
267
|
+
</configuredTriggers>
|
268
|
+
<contentType>text/html</contentType>
|
269
|
+
<defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
|
270
|
+
<defaultContent>$${SCRIPT, template="wikimedia.template"}</defaultContent>
|
271
|
+
<attachmentsPattern></attachmentsPattern>
|
272
|
+
<presendScript></presendScript>
|
273
|
+
<attachBuildLog>false</attachBuildLog>
|
274
|
+
<compressBuildLog>false</compressBuildLog>
|
275
|
+
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
276
|
+
<saveOutput>false</saveOutput>
|
277
|
+
</hudson.plugins.emailext.ExtendedEmailPublisher>
|
252
278
|
<hudson.plugins.ircbot.IrcPublisher plugin="ircbot@2.21">
|
253
279
|
<targets class="java.util.Collections$EmptyList"/>
|
254
280
|
<strategy>STATECHANGE_ONLY</strategy>
|
data/lib/mediawiki/selenium.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
This file is subject to the license terms in the LICENSE file found in the
|
3
3
|
mediawiki-selenium top-level directory and at
|
4
|
-
https://
|
4
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of
|
5
5
|
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
6
|
distributed except according to the terms contained in the LICENSE file.
|
7
7
|
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
8
|
mediawiki-selenium top-level directory and at
|
9
|
-
https://
|
9
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
12
|
require "mediawiki/selenium/env"
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
This file is subject to the license terms in the LICENSE file found in the
|
3
3
|
mediawiki-selenium top-level directory and at
|
4
|
-
https://
|
4
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of
|
5
5
|
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
6
|
distributed except according to the terms contained in the LICENSE file.
|
7
7
|
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
8
|
mediawiki-selenium top-level directory and at
|
9
|
-
https://
|
9
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
12
|
# before all
|
@@ -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(
|
@@ -66,8 +75,44 @@ RestClient::Request.execute(
|
|
66
75
|
)
|
67
76
|
end
|
68
77
|
def sauce_browser(test_name, language)
|
69
|
-
|
70
|
-
|
78
|
+
browsers = {
|
79
|
+
|
80
|
+
"chrome" =>
|
81
|
+
{"name" => "chrome",
|
82
|
+
"platform" => "Linux",
|
83
|
+
"version" => nil},
|
84
|
+
|
85
|
+
"firefox" =>
|
86
|
+
{"name" => "firefox",
|
87
|
+
"platform" => "Linux",
|
88
|
+
"version" => 26},
|
89
|
+
|
90
|
+
"internet_explorer_6" =>
|
91
|
+
{"name" => "internet_explorer",
|
92
|
+
"platform" => "Windows XP",
|
93
|
+
"version"=> 6},
|
94
|
+
|
95
|
+
"internet_explorer_7" =>
|
96
|
+
{"name" => "internet_explorer",
|
97
|
+
"platform" => "Windows XP",
|
98
|
+
"version"=> 7},
|
99
|
+
|
100
|
+
"internet_explorer_8" =>
|
101
|
+
{"name" => "internet_explorer",
|
102
|
+
"platform" => "Windows XP",
|
103
|
+
"version"=> 8},
|
104
|
+
|
105
|
+
"internet_explorer_9" =>
|
106
|
+
{"name" => "internet_explorer",
|
107
|
+
"platform" => "Windows 7",
|
108
|
+
"version"=> 9},
|
109
|
+
|
110
|
+
"internet_explorer_10" =>
|
111
|
+
{"name" => "internet_explorer",
|
112
|
+
"platform" => "Windows 8",
|
113
|
+
"version"=> 10}}
|
114
|
+
|
115
|
+
browser_label = browsers[ENV["BROWSER_LABEL"]]
|
71
116
|
|
72
117
|
if language == "default"
|
73
118
|
caps = Selenium::WebDriver::Remote::Capabilities.send(browser_label["name"])
|
@@ -91,9 +136,8 @@ def sauce_browser(test_name, language)
|
|
91
136
|
http_client: Selenium::WebDriver::Remote::Http::Persistent.new,
|
92
137
|
url: "http://#{ENV['SAUCE_ONDEMAND_USERNAME']}:#{ENV['SAUCE_ONDEMAND_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub",
|
93
138
|
desired_capabilities: caps)
|
94
|
-
browser.window.resize_to 1280, 1024
|
95
139
|
browser.wd.file_detector = lambda do |args|
|
96
|
-
# args => [
|
140
|
+
# args => ["/path/to/file"]
|
97
141
|
str = args.first.to_s
|
98
142
|
str if File.exist?(str)
|
99
143
|
end
|
@@ -1,16 +1,14 @@
|
|
1
1
|
=begin
|
2
2
|
This file is subject to the license terms in the LICENSE file found in the
|
3
3
|
mediawiki-selenium top-level directory and at
|
4
|
-
https://
|
4
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of
|
5
5
|
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
6
|
distributed except according to the terms contained in the LICENSE file.
|
7
7
|
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
8
|
mediawiki-selenium top-level directory and at
|
9
|
-
https://
|
9
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
|
-
config = YAML.load_file("config/config.yml")
|
13
|
-
|
14
12
|
Before("@login") do
|
15
13
|
ENV["MEDIAWIKI_PASSWORD"] = ENV[ENV["MEDIAWIKI_PASSWORD_VARIABLE"]] if ENV["MEDIAWIKI_PASSWORD_VARIABLE"]
|
16
14
|
puts "MEDIAWIKI_USER environment variable is not defined! Please export a value for that variable before proceeding." unless ENV["MEDIAWIKI_USER"]
|
@@ -18,12 +16,16 @@ Before("@login") do
|
|
18
16
|
end
|
19
17
|
|
20
18
|
Before do |scenario|
|
21
|
-
|
22
|
-
browser
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
@random_string = Random.new.rand.to_s
|
20
|
+
if ENV["REUSE_BROWSER"] == "true" and $browser # CirrusSearch and VisualEditor need this
|
21
|
+
@browser = $browser
|
22
|
+
else
|
23
|
+
unless @language or @user_agent # only UniversalLanguageSelector needs @language, only MobileFrontend needs @user_agent
|
24
|
+
@browser = browser(environment, test_name(scenario), "default")
|
25
|
+
$browser = @browser # CirrusSearch and VisualEditor need this
|
26
|
+
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
27
|
+
end
|
28
|
+
end
|
27
29
|
end
|
28
30
|
|
29
31
|
After do |scenario|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
This file is subject to the license terms in the LICENSE file found in the
|
3
3
|
mediawiki-selenium top-level directory and at
|
4
|
-
https://
|
4
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of
|
5
5
|
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
6
|
distributed except according to the terms contained in the LICENSE file.
|
7
7
|
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
8
|
mediawiki-selenium top-level directory and at
|
9
|
-
https://
|
9
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
12
|
require "cucumber/formatter/junit"
|
@@ -1,16 +1,16 @@
|
|
1
1
|
=begin
|
2
2
|
This file is subject to the license terms in the LICENSE file found in the
|
3
3
|
mediawiki-selenium top-level directory and at
|
4
|
-
https://
|
4
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of
|
5
5
|
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
6
|
distributed except according to the terms contained in the LICENSE file.
|
7
7
|
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
8
|
mediawiki-selenium top-level directory and at
|
9
|
-
https://
|
9
|
+
https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Mediawiki
|
13
13
|
module Selenium
|
14
|
-
VERSION = "0.1.
|
14
|
+
VERSION = "0.1.17"
|
15
15
|
end
|
16
16
|
end
|
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.17
|
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-28 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,12 @@ 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/UploadWizard-commons.wikimedia.org.md
|
125
|
+
- docs/jenkins-email.template
|
124
126
|
- docs/jenkins.md
|
125
127
|
- docs/job.md
|
126
128
|
- docs/jobs.md
|
@@ -142,17 +144,17 @@ require_paths:
|
|
142
144
|
- lib
|
143
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
146
|
requirements:
|
145
|
-
- -
|
147
|
+
- - ">="
|
146
148
|
- !ruby/object:Gem::Version
|
147
149
|
version: '0'
|
148
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
151
|
requirements:
|
150
|
-
- -
|
152
|
+
- - ">="
|
151
153
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
154
|
+
version: '0'
|
153
155
|
requirements: []
|
154
156
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.2.0
|
156
158
|
signing_key:
|
157
159
|
specification_version: 4
|
158
160
|
summary: An easy way to run MediaWiki Selenium tests.
|