mediawiki_selenium 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6de69a636cc165f7c0d799893bca28397b68deb3
4
- data.tar.gz: e13d797d79ee37040720660f06d5b5530754c30f
3
+ metadata.gz: 13b7a0acadd46a58bd9dd400c84f1f4f2364b747
4
+ data.tar.gz: ccd50f20f76850b5cb29d70b44499a53ee5594b2
5
5
  SHA512:
6
- metadata.gz: 2060c29441bd49733cfc4343580f9bc4ff74c988ce1b91faed6a37e598745f1f49d74cd632c85b2a5f2de217471e21e20f0c76c5a6e873a90936ef49c98b2d9c
7
- data.tar.gz: 086fa183994dc262f94393fd735b326d13759356b2daef6dbc366c4fb7253c113c301d8fef668291857aeb06c8f6abc61c6532495a37f8728cd5f47bcd3bafb2
6
+ metadata.gz: f8170dde4aea2595e5ed0cbb601bbd8fe9d27984526f1d3e0d008a9219e28bbd2761b83210b41906c6887b565e9d8c63af63bf05aad54b4f4a00d0cd57c84ab8
7
+ data.tar.gz: 97693131fa625f3bcf72a6a9d62e7b31f0e1be67df5a45062c3ebc8e8690d30cd35e044611a34fc88a2363db63036b468cee321a3902d967f4c5ae0f8b5d861a
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- #ruby=ruby-2.1.0
1
+ #ruby=ruby-2.1.1
2
2
  #ruby-gemset=mediawiki_selenium
data/README.md CHANGED
@@ -93,3 +93,11 @@ Repositories that use the gem:
93
93
  5. Create new Pull Request
94
94
 
95
95
  https://www.mediawiki.org/wiki/QA/Browser_testing#How_to_contribute
96
+
97
+ ## Release notes
98
+
99
+ ### 0.2.8
100
+
101
+ #### Enhancements
102
+
103
+ * Possibility to set BROWSER_TIMEOUT
@@ -27,8 +27,7 @@ def browser(environment, test_name, language)
27
27
  end
28
28
  end
29
29
  def environment
30
- if ENV["BROWSER"] and ENV["BROWSER"] != "phantomjs" and
31
- ENV["SAUCE_ONDEMAND_USERNAME"] and ENV["SAUCE_ONDEMAND_ACCESS_KEY"]
30
+ if ENV["SAUCE_ONDEMAND_USERNAME"] and ENV["SAUCE_ONDEMAND_ACCESS_KEY"] and ENV["BROWSER"] != "phantomjs"
32
31
  :saucelabs
33
32
  else
34
33
  :local
@@ -41,7 +40,17 @@ def local_browser(language)
41
40
  browser_name = :firefox
42
41
  end
43
42
 
44
- if language == "default"
43
+ if language == "default" && ENV["BROWSER_TIMEOUT"] && browser_name == :firefox
44
+ timeout = ENV["BROWSER_TIMEOUT"].to_i
45
+
46
+ client = Selenium::WebDriver::Remote::Http::Default.new
47
+ client.timeout = timeout
48
+
49
+ profile = Selenium::WebDriver::Firefox::Profile.new
50
+ profile["dom.max_script_run_time"] = timeout
51
+ profile["dom.max_chrome_script_run_time"] = timeout
52
+ browser = Watir::Browser.new browser_name, :http_client => client, :profile => profile
53
+ elsif language == "default"
45
54
  browser = Watir::Browser.new browser_name
46
55
  else
47
56
  if browser_name == :firefox
@@ -77,7 +86,18 @@ end
77
86
  def sauce_browser(test_name, language)
78
87
  abort "Environment variables BROWSER, PLATFORM and VERSION have to be set" if (ENV["BROWSER"] == nil) or (ENV["PLATFORM"] == nil) or (ENV["VERSION"] == nil)
79
88
 
80
- if language == "default"
89
+ require "selenium/webdriver/remote/http/persistent" # http_client
90
+ client = Selenium::WebDriver::Remote::Http::Persistent.new
91
+
92
+ if language == "default" && ENV["BROWSER_TIMEOUT"] && ENV["BROWSER"] == "firefox"
93
+ timeout = ENV["BROWSER_TIMEOUT"].to_i
94
+ client.timeout = timeout
95
+
96
+ profile = Selenium::WebDriver::Firefox::Profile.new
97
+ profile["dom.max_script_run_time"] = timeout
98
+ profile["dom.max_chrome_script_run_time"] = timeout
99
+ caps = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile)
100
+ elsif language == "default"
81
101
  caps = Selenium::WebDriver::Remote::Capabilities.send(ENV["BROWSER"])
82
102
  elsif ENV["BROWSER"] == "firefox"
83
103
  profile = Selenium::WebDriver::Firefox::Profile.new
@@ -93,10 +113,9 @@ def sauce_browser(test_name, language)
93
113
  caps.version = ENV["VERSION"]
94
114
  caps[:name] = "#{test_name} #{ENV['JOB_NAME']}##{ENV['BUILD_NUMBER']}"
95
115
 
96
- require "selenium/webdriver/remote/http/persistent" # http_client
97
116
  browser = Watir::Browser.new(
98
117
  :remote,
99
- http_client: Selenium::WebDriver::Remote::Http::Persistent.new,
118
+ http_client: client,
100
119
  url: "http://#{ENV['SAUCE_ONDEMAND_USERNAME']}:#{ENV['SAUCE_ONDEMAND_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub",
101
120
  desired_capabilities: caps)
102
121
  browser.wd.file_detector = lambda do |args|
@@ -10,5 +10,5 @@ https://git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.
10
10
  =end
11
11
 
12
12
  module MediawikiSelenium
13
- VERSION = "0.2.7"
13
+ VERSION = "0.2.8"
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediawiki_selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris McMahon
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-02-21 00:00:00.000000000 Z
15
+ date: 2014-03-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: cucumber
@@ -193,13 +193,6 @@ files:
193
193
  - Gemfile.lock
194
194
  - LICENSE
195
195
  - README.md
196
- - docs/UploadWizard.md
197
- - docs/jenkins-email.template
198
- - docs/jenkins.md
199
- - docs/job.md
200
- - docs/jobs.md
201
- - docs/template.md
202
- - docs/view.md
203
196
  - lib/mediawiki_selenium.rb
204
197
  - lib/mediawiki_selenium/step_definitions/login_steps.rb
205
198
  - lib/mediawiki_selenium/step_definitions/preferences_steps.rb
data/docs/UploadWizard.md DELETED
@@ -1,54 +0,0 @@
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
- set -e
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
- DEV/bin/python tests/api/upload-wizard_tests.py --gen_new_image --username "Selenium_user" --api_url "https://commons.wikimedia.org/w/api.php"
20
-
21
- --
22
-
23
- - Add post-build action
24
- - E-mail Notification > Recipients > aarcos.wiki@gmail.com cmcmahon@wikimedia.org gtisza@wikimedia.org zfilipin@wikimedia.org
25
- - IRC Notification (notifies #wikimedia-qa by default)
26
-
27
-
28
-
29
- # UploadWizard-commons.wikimedia.beta.wmflabs.org
30
-
31
- - Jenkins > New Job
32
- - Job name: UploadWizard-commons.wikimedia.beta.wmflabs.org
33
- - Build a free-style software project
34
- - OK
35
- - Jenkins > Job > Configure
36
- - Source Code Management > Git > Repositories > Repository URL: https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard
37
- - Build Triggers > Build periodically > Schedule: H */6 * * * (every 6 hours)
38
- - Build Triggers > Poll SCM > Schedule > * * * * * (every minute)
39
- - Build > Add build step > Execute shell
40
-
41
- --
42
-
43
- set -e
44
- export MEDIAWIKI_PASSWORD_VARIABLE=MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
45
- virtualenv --distribute DEV
46
- DEV/bin/pip install -rtests/api/requirements.txt
47
- DEV/bin/python tests/api/upload-wizard_tests.py --username "Selenium_user" --api_url "http://commons.wikimedia.beta.wmflabs.org/w/api.php"
48
- DEV/bin/python tests/api/upload-wizard_tests.py --gen_new_image --username "Selenium_user" --api_url "http://commons.wikimedia.beta.wmflabs.org/w/api.php"
49
-
50
- --
51
-
52
- - Add post-build action
53
- - E-mail Notification > Recipients > aarcos.wiki@gmail.com cmcmahon@wikimedia.org gtisza@wikimedia.org zfilipin@wikimedia.org
54
- - IRC Notification (notifies #wikimedia-qa by default)
@@ -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
-
data/docs/jenkins.md DELETED
@@ -1,30 +0,0 @@
1
- # Jenkins
2
-
3
- ## Plugins
4
-
5
- - Jenkins > Manage Jenkins > Manage Plugins > Available > ChuckNorris Plugin, Green Balls, Jenkins Email Extension Plugin, Jenkins instant-messaging plugin, Jenkins IRC Plugin
6
-
7
- ## IRC Notification
8
-
9
- - Jenkins > Manage Jenkins > Configure System
10
- - Enable IRC Notification > check
11
- - Hostname: irc.freenode.net
12
- - Port: 6667
13
- - Channels
14
- - Name: #wikimedia-qa
15
- - Notification only: check
16
- - Advanced...
17
- - Nickname: wmf-selenium-bot
18
- - Login: wmf-selenium-bot
19
- - nickname and login have to be the same
20
-
21
- ## Environment variables
22
-
23
- - Jenkins > Manage Jenkins > Configure System > Global properties > Environment variables > List of key-value pairs
24
- - name
25
- - SAUCE_ONDEMAND_ACCESS_KEY
26
- - SAUCE_ONDEMAND_USERNAME
27
- - MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
28
- - MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
29
- - MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
30
- - MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
data/docs/job.md DELETED
@@ -1,34 +0,0 @@
1
- # Job
2
-
3
- - Jenkins > New Job
4
- - Job name: (name)
5
- - Build a free-style software project
6
- - OK
7
- - Jenkins > Job > Configure
8
- - Project name: (name)
9
- - Source Code Management > Git > Repositories > Repository URL: (repository)
10
- - Build > Add build step > Execute shell
11
-
12
- --
13
-
14
- export MEDIAWIKI_USER=${MEDIAWIKI_USER}
15
- export MEDIAWIKI_PASSWORD_VARIABLE=${MEDIAWIKI_PASSWORD_VARIABLE}
16
-
17
- export BROWSER=${browser}
18
- export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
19
-
20
- curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
21
- RUBY_VERSION=2.1.0 \
22
- source ./use-ruby
23
-
24
- gem install bundler --no-ri --no-rdoc
25
- if [ -d "${FOLDER}" ]; then cd ${FOLDER}; fi
26
- bundle install
27
- bundle exec ${BUNDLE_EXEC}
28
-
29
- --
30
-
31
- - Post-build Actions > Add post-build action
32
- - Publish JUnit test result report > Test report XMLs: reports/junit/*.xml
33
- - E-mail Notification > Recipients: (recipients)
34
- - IRC Notification
data/docs/jobs.md DELETED
@@ -1,287 +0,0 @@
1
- # all jobs
2
- - Browser Label:
3
- - bundle exec cucumber:
4
- - Recipients:
5
- - MediaWiki URL:
6
- - Folder: tests/browser/ (if not stated differently)
7
- - Repository URL:
8
- - MediaWiki user:
9
- - MediaWiki password variable:
10
- - Build schedule: 0 3,18 * * * (if not stated differently)
11
-
12
-
13
-
14
- # browsertests
15
- - Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
16
- - Repository URL: browsertests
17
- - MediaWiki user: Selenium_user
18
-
19
-
20
- # browsertests-en.wikipedia.beta.wmflabs.org
21
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
22
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
23
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
24
-
25
- ## browsertests-en.wikipedia.beta.wmflabs.org-linux-chrome
26
- - Browser Label: chrome
27
-
28
- ## browsertests-en.wikipedia.beta.wmflabs.org-linux-firefox
29
- - Browser Label: firefox
30
-
31
- ## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_6
32
- - Browser Label: internet_explorer_6
33
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie6-bug
34
-
35
- ## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_7
36
- - Browser Label: internet_explorer_7
37
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie7-bug
38
-
39
- ## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_8
40
- - Browser Label: internet_explorer_8
41
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org --tags ~@ie8-bug
42
-
43
- ## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_9
44
- - Browser Label: internet_explorer_9
45
-
46
- ## browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_10
47
- - Browser Label: internet_explorer_10
48
-
49
-
50
- # browsertests-test2.wikipedia.org
51
- - bundle exec cucumber: --tags @test2.wikipedia.org
52
- - MediaWiki URL: test2.wikipedia.org
53
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
54
-
55
- ## browsertests-test2.wikipedia.org-linux-chrome
56
- - Browser Label: chrome
57
-
58
- ## browsertests-test2.wikipedia.org-linux-firefox
59
- - Browser Label: firefox
60
-
61
- ## browsertests-test2.wikipedia.org-windows-internet_explorer_6
62
- - Browser Label: internet_explorer_6
63
- - bundle exec cucumber: --tags @test2.wikipedia.org --tags ~@ie6-bug
64
-
65
- ## browsertests-test2.wikipedia.org-windows-internet_explorer_7
66
- - Browser Label: internet_explorer_7
67
- - bundle exec cucumber: --tags @test2.wikipedia.org --tags ~@ie7-bug
68
-
69
- ## browsertests-test2.wikipedia.org-windows-internet_explorer_8
70
- - Browser Label: internet_explorer_8
71
- - bundle exec cucumber: --tags @test2.wikipedia.org --tags ~@ie8-bug
72
-
73
- ## browsertests-test2.wikipedia.org-windows-internet_explorer_9
74
- - Browser Label: internet_explorer_9
75
-
76
- ## browsertests-test2.wikipedia.org-windows-internet_explorer_10
77
- - Browser Label: internet_explorer_10
78
-
79
-
80
-
81
- # CirrusSearch
82
- - Browser Label: firefox
83
- - Recipients: cmcmahon@wikimedia.org neverett@wikimedia.org zfilipin@wikimedia.org
84
- - Repository URL: CirrusSearch
85
-
86
- ## CirrusSearch-test2.wikipedia.org-linux-firefox
87
- - bundle exec cucumber: --tags @test2.wikipedia.org
88
- - MediaWiki URL: test2.wikipedia.org
89
-
90
- ## CirrusSearch-en.wikipedia.beta.wmflabs.org-linux-firefox
91
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
92
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
93
-
94
-
95
-
96
- # Flow
97
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
98
- - Recipients: zfilipin@wikimedia.org cmcmahon@wikimedia.org
99
- - MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
100
- - Repository URL: Flow
101
- - MediaWiki user: Selenium_user
102
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
103
-
104
- ## Flow-en.wikipedia.beta.wmflabs.org-linux-chrome
105
- - Browser Label: chrome
106
-
107
- ## Flow-en.wikipedia.beta.wmflabs.org-linux-firefox
108
- - Browser Label: firefox
109
-
110
-
111
-
112
- # MobileFrontend
113
- - Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org mobile-l@lists.wikimedia.org mobile-tech@wikimedia.org zfilipin@wikimedia.org
114
- - Repository URL: MobileFrontend
115
- - MediaWiki user: Selenium_user
116
-
117
- ## MobileFrontend-en.m.wikipedia.beta.wmflabs.org-linux-chrome
118
- - Browser Label: chrome
119
- - bundle exec cucumber: --tags @en.m.wikipedia.beta.wmflabs.org
120
- - MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
121
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
122
-
123
- ## MobileFrontend-en.m.wikipedia.beta.wmflabs.org-linux-firefox
124
- - Browser Label: firefox
125
- - bundle exec cucumber: --tags @en.m.wikipedia.beta.wmflabs.org
126
- - MediaWiki URL: en.m.wikipedia.beta.wmflabs.org
127
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
128
-
129
- ## MobileFrontend-en.m.wikipedia.org-linux-firefox
130
- - Browser Label: firefox
131
- - bundle exec cucumber: --tags @en.m.wikipedia.org
132
- - MediaWiki URL: en.m.wikipedia.org
133
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
134
-
135
- ## MobileFrontend-test2.m.wikipedia.org-linux-firefox
136
- - Browser Label: firefox
137
- - bundle exec cucumber: --tags @test2.m.wikipedia.org
138
- - MediaWiki URL: test2.m.wikipedia.org
139
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
140
-
141
-
142
-
143
- # MultimediaViewer
144
-
145
- ## MultimediaViewer-en.wikipedia.beta.wmflabs.org-linux-firefox
146
- - Browser Label: firefox
147
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
148
- - Recipients: aarcos.wiki@gmail.com cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
149
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
150
- - Repository URL: MultimediaViewer
151
- - MediaWiki user: Selenium_user
152
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
153
- - Build schedule: 0 3,18 * * *
154
-
155
-
156
-
157
- # Translate
158
- - Browser Label: firefox
159
- - Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org zfilipin@wikimedia.org
160
- - Repository URL: Translate
161
-
162
- ## Translate-sandbox.translatewiki.net-linux-firefox
163
- - bundle exec cucumber: --tags @sandbox.translatewiki.net
164
- - MediaWiki URL: sandbox.translatewiki.net
165
- - MediaWiki user: Selenium-Translate
166
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATE_TRANSLATEWIKI_NET
167
-
168
- ## Translate-meta.wikimedia.org-linux-firefox
169
- - bundle exec cucumber: --tags @meta.wikimedia.org
170
- - MediaWiki URL: meta.wikimedia.org
171
-
172
-
173
-
174
- # TwnMainPage
175
-
176
- ## TwnMainPage-sandbox.translatewiki.net-linux-firefox
177
- - Browser Label: firefox
178
- - bundle exec cucumber: --tags @sandbox.translatewiki.net
179
- - Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org nlaxstrom@wikimedia.org zfilipin@wikimedia.org
180
- - MediaWiki URL: sandbox.translatewiki.net
181
- - Repository URL: TwnMainPage
182
- - MediaWiki user: Selenium
183
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
184
-
185
-
186
-
187
- # UniversalLanguageSelector
188
- - Browser Label: firefox
189
- - Recipients: aaharoni@wikimedia.org cmcmahon@wikimedia.org kmistry@wikimedia.org nlaxstrom@wikimedia.org sthottingal@wikimedia.org zfilipin@wikimedia.org
190
- - Repository URL: UniversalLanguageSelector
191
-
192
- ## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-linux-firefox
193
- - bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
194
- - MediaWiki URL: commons.wikimedia.beta.wmflabs.org
195
- - MediaWiki user: Uls
196
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
197
-
198
- ## UniversalLanguageSelector-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
199
- - Browser Label: internet_explorer_10
200
- - bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
201
- - MediaWiki URL: commons.wikimedia.beta.wmflabs.org
202
- - MediaWiki user: Uls
203
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
204
-
205
- ## UniversalLanguageSelector-en.wikipedia.beta.wmflabs.org-linux-firefox
206
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
207
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
208
- - MediaWiki user: Uls
209
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_ULS_WMFLABS_ORG
210
-
211
- ## UniversalLanguageSelector-sandbox.translatewiki.net-linux-firefox
212
- - bundle exec cucumber: --tags @sandbox.translatewiki.net
213
- - MediaWiki URL: sandbox.translatewiki.net
214
- - MediaWiki user: Selenium
215
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_SANDBOX_TRANSLATEWIKI_NET
216
-
217
-
218
-
219
- # UploadWizard
220
-
221
- # UploadWizard-commons.wikimedia.beta.wmflabs.org
222
- - bundle exec cucumber: --tags @commons.wikimedia.beta.wmflabs.org
223
- - Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
224
- - MediaWiki URL: commons.wikimedia.beta.wmflabs.org
225
- - Repository URL: UploadWizard
226
- - MediaWiki user: Selenium_user
227
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
228
-
229
- ## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-chrome
230
- - Browser Label: chrome
231
-
232
- ## UploadWizard-commons.wikimedia.beta.wmflabs.org-linux-firefox
233
- - Browser Label: firefox
234
-
235
- ## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_9
236
- - Browser Label: internet_explorer_9
237
-
238
- ## UploadWizard-commons.wikimedia.beta.wmflabs.org-windows-internet_explorer_10
239
- - Browser Label: internet_explorer_10
240
-
241
-
242
-
243
- # VisualEditor
244
- - Folder: modules/ve-mw/test/browser/
245
- - Repository URL: VisualEditor
246
- - MediaWiki user: Selenium_user
247
-
248
- ## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-chrome
249
- - Browser Label: chrome
250
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
251
- - Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
252
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
253
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
254
-
255
- ## VisualEditor-en.wikipedia.beta.wmflabs.org-linux-firefox
256
- - Browser Label: firefox
257
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
258
- - Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
259
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
260
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
261
-
262
- ## VisualEditor-test2.wikipedia.org-linux-chrome
263
- - Browser Label: chrome
264
- - bundle exec cucumber: --tags @test2.wikipedia.org
265
- - Recipients: cmcmahon@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
266
- - MediaWiki URL: test2.wikipedia.org
267
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
268
-
269
- ## VisualEditor-test2.wikipedia.org-linux-firefox
270
- - Browser Label: firefox
271
- - bundle exec cucumber: --tags @test2.wikipedia.org
272
- - Recipients: cmcmahon@wikimedia.org jforrester@wikimedia.org jhall@wikimedia.org zfilipin@wikimedia.org
273
- - MediaWiki URL: test2.wikipedia.org
274
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WIKIPEDIA_ORG
275
-
276
-
277
-
278
- # WikiLove
279
-
280
- ## WikiLove-en.wikipedia.beta.wmflabs.org-linux-firefox
281
- - Browser Label: firefox
282
- - bundle exec cucumber: --tags @en.wikipedia.beta.wmflabs.org
283
- - Recipients: cmcmahon@wikimedia.org zfilipin@wikimedia.org
284
- - MediaWiki URL: en.wikipedia.beta.wmflabs.org
285
- - Repository URL: WikiLove
286
- - MediaWiki user: Selenium_user
287
- - MediaWiki password variable: MEDIAWIKI_PASSWORD_SELENIUM_USER_WMFLABS_ORG
data/docs/template.md DELETED
@@ -1,310 +0,0 @@
1
- # Template
2
-
3
- ## Setup
4
-
5
- - Jenkins > Templates > New Template > (name) > Job Template > OK > Save
6
- - Display Name: (name)
7
- - Description: (description)
8
- - Instantiable?: check
9
- - Attribute
10
-
11
- ## Name
12
-
13
- - ID: name
14
- - Display Name: Name
15
- - Type: Text-field
16
-
17
- ## Browser
18
-
19
- - ID: BROWSER
20
- - Display Name: Browser
21
- - Type: Select a string among many
22
- - UI Mode: Dropdown list (no inline help, but more compact UI)
23
- - Options
24
- - Display Name: (name)
25
- - Value: (name)
26
- - chrome
27
- - firefox
28
- - internet_explorer_6
29
- - internet_explorer_7
30
- - internet_explorer_8
31
- - internet_explorer_9
32
- - internet_explorer_10
33
- - phantomjs
34
-
35
- ## bundle exec
36
-
37
- - ID: BUNDLE_EXEC_CUCUMBER
38
- - Display Name: bundle exec cucumber --backtrace --verbose --profile ci
39
- - Type: Text-field
40
-
41
- ## Recipients
42
-
43
- - ID: RECIPIENTS
44
- - Display Name: Recipients
45
- - Type: Text-field
46
-
47
- ## Repository URL
48
-
49
- - ID: REPOSITORY_URL
50
- - Display Name: Repository URL
51
- - Type: Select a string among many
52
- - UI Mode: Dropdown list (no inline help, but more compact UI)
53
- - Options
54
-
55
- - Display Name: CirrusSearch
56
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch
57
-
58
- - Display Name: ContentTranslation
59
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/ContentTranslation
60
-
61
- - Display Name: Flow
62
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow
63
-
64
- - Display Name: MobileFrontend
65
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend
66
-
67
- - Display Name: MultimediaViewer
68
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
69
-
70
- - Display Name: Translate
71
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Translate
72
-
73
- - Display Name: TwnMainPage
74
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/TwnMainPage
75
-
76
- - Display Name: UniversalLanguageSelector
77
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/UniversalLanguageSelector
78
-
79
- - Display Name: UploadWizard
80
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/UploadWizard
81
-
82
- - Display Name: VisualEditor
83
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
84
-
85
- - Display Name: Wikibase
86
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase
87
-
88
- - Display Name: WikiLove
89
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiLove
90
-
91
- - Display Name: ZeroRatedMobileAccess
92
- - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/ZeroRatedMobileAccess
93
-
94
- - Display Name: browsertests
95
- - Value: https://gerrit.wikimedia.org/r/qa/browsertests
96
-
97
- ## MediaWiki URL
98
-
99
- - ID: MEDIAWIKI_URL
100
- - Display Name: MediaWiki URL
101
- - Type: Select a string among many
102
- - UI Mode: Dropdown list (no inline help, but more compact UI)
103
- - Options
104
- - Display Name: (name)
105
- - Value: (name)
106
-
107
- - name:
108
- - commons.wikimedia.beta.wmflabs.org
109
- - dev.translatewiki.net
110
- - en.m.wikipedia.beta.wmflabs.org
111
- - en.m.wikipedia.org
112
- - en.wikipedia.beta.wmflabs.org
113
- - en.wikipedia.org
114
- - meta.wikimedia.org
115
- - sandbox.translatewiki.net
116
- - test2.m.wikipedia.org
117
- - test2.wikipedia.org
118
-
119
- ## Folder
120
-
121
- - ID: FOLDER
122
- - Display Name: Folder
123
- - Type: Select a string among many
124
- - UI Mode: Dropdown list (no inline help, but more compact UI)
125
- - Options
126
- - Display Name: (name)
127
- - Value: (name)
128
-
129
- - name:
130
- - (empty)
131
- - modules/ve-mw/test/browser/
132
- - tests/browser/
133
-
134
- ## MediaWiki user
135
-
136
- - ID: MEDIAWIKI_USER
137
- - Display Name: MediaWiki user
138
- - Type: Text-field
139
-
140
- ## MediaWiki password variable
141
-
142
- - ID: MEDIAWIKI_PASSWORD_VARIABLE
143
- - Display Name: MediaWiki password variable
144
- - Type: Text-field
145
-
146
- ## Build schedule
147
- - ID: BUILD_SCHEDULE
148
- - Display Name: Build schedule
149
- - Type: Text-field
150
-
151
- ## Jelly-based transformation
152
-
153
- - Property
154
- - Transformer: Jelly-based transformation
155
- - Script, from (site)/job/(job)/config.xml
156
-
157
- --
158
-
159
- <?xml version='1.0' encoding='UTF-8'?>
160
- <project>
161
- <actions/>
162
- <description></description>
163
- <logRotator>
164
- <daysToKeep>60</daysToKeep>
165
- <numToKeep>-1</numToKeep>
166
- <artifactDaysToKeep>-1</artifactDaysToKeep>
167
- <artifactNumToKeep>20</artifactNumToKeep>
168
- </logRotator>
169
- <keepDependencies>false</keepDependencies>
170
- <properties>
171
- <nectar.plugins.rbac.groups.JobProxyGroupContainer>
172
- <groups/>
173
- </nectar.plugins.rbac.groups.JobProxyGroupContainer>
174
- <com.cloudbees.jenkins.plugins.PublicKey/>
175
- <com.cloudbees.plugins.deployer.DeployNowJobProperty>
176
- <oneClickDeploy>false</oneClickDeploy>
177
- <configuration>
178
- <user>(jenkins)</user>
179
- <account>wmf</account>
180
- <deployables/>
181
- </configuration>
182
- </com.cloudbees.plugins.deployer.DeployNowJobProperty>
183
- </properties>
184
- <scm class="hudson.plugins.git.GitSCM">
185
- <configVersion>2</configVersion>
186
- <userRemoteConfigs>
187
- <hudson.plugins.git.UserRemoteConfig>
188
- <name></name>
189
- <refspec></refspec>
190
- <url>${REPOSITORY_URL}</url>
191
- </hudson.plugins.git.UserRemoteConfig>
192
- </userRemoteConfigs>
193
- <branches>
194
- <hudson.plugins.git.BranchSpec>
195
- <name>master</name>
196
- </hudson.plugins.git.BranchSpec>
197
- </branches>
198
- <disableSubmodules>false</disableSubmodules>
199
- <recursiveSubmodules>false</recursiveSubmodules>
200
- <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
201
- <authorOrCommitter>false</authorOrCommitter>
202
- <clean>false</clean>
203
- <wipeOutWorkspace>false</wipeOutWorkspace>
204
- <pruneBranches>false</pruneBranches>
205
- <remotePoll>false</remotePoll>
206
- <ignoreNotifyCommit>false</ignoreNotifyCommit>
207
- <useShallowClone>false</useShallowClone>
208
- <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
209
- <gitTool>Default</gitTool>
210
- <submoduleCfg class="list"/>
211
- <relativeTargetDir></relativeTargetDir>
212
- <reference></reference>
213
- <excludedRegions></excludedRegions>
214
- <excludedUsers></excludedUsers>
215
- <gitConfigName></gitConfigName>
216
- <gitConfigEmail></gitConfigEmail>
217
- <skipTag>false</skipTag>
218
- <includedRegions></includedRegions>
219
- <scmName></scmName>
220
- </scm>
221
- <canRoam>true</canRoam>
222
- <disabled>false</disabled>
223
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
224
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
225
- <triggers class="vector">
226
- <hudson.triggers.TimerTrigger>
227
- <spec>${BUILD_SCHEDULE}</spec>
228
- </hudson.triggers.TimerTrigger>
229
- </triggers>
230
- <concurrentBuild>false</concurrentBuild>
231
- <builders>
232
- <hudson.tasks.Shell>
233
- <command>
234
- export MEDIAWIKI_USER=${MEDIAWIKI_USER}
235
- export MEDIAWIKI_PASSWORD_VARIABLE=${MEDIAWIKI_PASSWORD_VARIABLE}
236
-
237
- export BROWSER=${BROWSER}
238
- export MEDIAWIKI_URL=http://${MEDIAWIKI_URL}/wiki/
239
-
240
- curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby
241
- RUBY_VERSION=2.1.0 \
242
- source ./use-ruby
243
-
244
- gem install bundler --no-ri --no-rdoc
245
- cd ${FOLDER}
246
- bundle install
247
- bundle exec cucumber --backtrace --verbose --format pretty --format Cucumber::Formatter::Sauce --out reports/junit ${BUNDLE_EXEC_CUCUMBER} || (echo -e "\nJob has failed (exit code: $$?)."; false)
248
- </command>
249
- </hudson.tasks.Shell>
250
- </builders>
251
- <publishers>
252
- <hudson.tasks.junit.JUnitResultArchiver>
253
- <testResults>${FOLDER}reports/junit/*.xml</testResults>
254
- <keepLongStdio>false</keepLongStdio>
255
- <testDataPublishers/>
256
- </hudson.tasks.junit.JUnitResultArchiver>
257
- <hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.36">
258
- <recipientList>${RECIPIENTS}</recipientList>
259
- <configuredTriggers>
260
- <hudson.plugins.emailext.plugins.trigger.FailureTrigger>
261
- <email>
262
- <recipientList></recipientList>
263
- <subject>$PROJECT_DEFAULT_SUBJECT</subject>
264
- <body>$PROJECT_DEFAULT_CONTENT</body>
265
- <sendToDevelopers>false</sendToDevelopers>
266
- <sendToRequester>false</sendToRequester>
267
- <includeCulprits>false</includeCulprits>
268
- <sendToRecipientList>true</sendToRecipientList>
269
- <attachmentsPattern></attachmentsPattern>
270
- <attachBuildLog>false</attachBuildLog>
271
- <compressBuildLog>false</compressBuildLog>
272
- <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
273
- <contentType>project</contentType>
274
- </email>
275
- </hudson.plugins.emailext.plugins.trigger.FailureTrigger>
276
- </configuredTriggers>
277
- <contentType>text/html</contentType>
278
- <defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
279
- <defaultContent>$${SCRIPT, template=&quot;wikimedia.template&quot;}</defaultContent>
280
- <attachmentsPattern></attachmentsPattern>
281
- <presendScript></presendScript>
282
- <attachBuildLog>false</attachBuildLog>
283
- <compressBuildLog>false</compressBuildLog>
284
- <replyTo>$DEFAULT_REPLYTO</replyTo>
285
- <saveOutput>false</saveOutput>
286
- </hudson.plugins.emailext.ExtendedEmailPublisher>
287
- <hudson.plugins.ircbot.IrcPublisher plugin="ircbot@2.21">
288
- <targets class="java.util.Collections$EmptyList"/>
289
- <strategy>STATECHANGE_ONLY</strategy>
290
- <notifyOnBuildStart>false</notifyOnBuildStart>
291
- <notifySuspects>false</notifySuspects>
292
- <notifyCulprits>false</notifyCulprits>
293
- <notifyFixers>false</notifyFixers>
294
- <notifyUpstreamCommitters>false</notifyUpstreamCommitters>
295
- <buildToChatNotifier class="hudson.plugins.im.build_notify.SummaryOnlyBuildToChatNotifier" plugin="instant-messaging@1.25"/>
296
- <matrixMultiplier>ONLY_CONFIGURATIONS</matrixMultiplier>
297
- <channels/>
298
- </hudson.plugins.ircbot.IrcPublisher>
299
- </publishers>
300
- <buildWrappers/>
301
- <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
302
- <runSequentially>false</runSequentially>
303
- </executionStrategy>
304
- </project>
305
-
306
- --
307
-
308
- ## Save
309
-
310
- - Save
data/docs/view.md DELETED
@@ -1,11 +0,0 @@
1
- # Create new view
2
-
3
- - https://wmf.ci.cloudbees.com/newView
4
- - View name: (name)
5
- - List View
6
- - OK
7
-
8
- - https://wmf.ci.cloudbees.com/view/r-uls/configure
9
- - Use a regular expression to include jobs into the view: .*STRING.*
10
- - replace STRING with a string
11
- - OK