mediawiki-selenium 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mediawiki/selenium/env.rb +12 -2
- data/lib/mediawiki/selenium/sauce.rb +11 -0
- data/lib/mediawiki/selenium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dcef54dd1a6ef4602f00366025727fe350eecc7
|
4
|
+
data.tar.gz: a96f8a05184055b00287ec52e61671f6fca1dcfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57646104f01e3f842dfaf9e5d977092f65f7955cb331757123fb144e83d58e87074aa4b765f14b6ad90cf182dc7e70e2f3851b9cbc882f3d2815718cc296b6e8
|
7
|
+
data.tar.gz: 5540a18845d53b99263294b5ed790d509bee133a5e95c1ae80ae60944b1b542ec4749ac96c79ec9d101f0a127621d154505b34de1a39c799f1b5f045166dad58
|
@@ -1,3 +1,14 @@
|
|
1
|
+
=begin
|
2
|
+
This file is subject to the license terms in the LICENSE file found in the
|
3
|
+
mediawiki-selenium top-level directory of and at
|
4
|
+
https://github.com/zeljkofilipin/mediawiki-selenium/blob/master/LICENSE. No part of
|
5
|
+
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
|
+
distributed except according to the terms contained in the LICENSE file.
|
7
|
+
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
|
+
mediawiki-selenium top-level directory and at
|
9
|
+
https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
|
10
|
+
=end
|
11
|
+
|
1
12
|
# before all
|
2
13
|
require 'bundler/setup'
|
3
14
|
require 'page-object'
|
@@ -90,9 +101,9 @@ def test_name(scenario)
|
|
90
101
|
end
|
91
102
|
|
92
103
|
config = YAML.load_file('config/config.yml')
|
93
|
-
mediawiki_username = config['mediawiki_username']
|
94
104
|
|
95
105
|
Before('@login') do
|
106
|
+
puts "MEDIAWIKI_USER environment variable is not defined! Please export a value for that variable before proceeding." unless ENV['MEDIAWIKI_USER']
|
96
107
|
puts "MEDIAWIKI_PASSWORD environment variable is not defined! Please export a value for that variable before proceeding." unless ENV['MEDIAWIKI_PASSWORD']
|
97
108
|
end
|
98
109
|
|
@@ -104,7 +115,6 @@ end
|
|
104
115
|
Before do |scenario|
|
105
116
|
@config = config
|
106
117
|
@random_string = Random.new.rand.to_s
|
107
|
-
@mediawiki_username = mediawiki_username
|
108
118
|
@browser = browser(environment, test_name(scenario), 'default') unless @language
|
109
119
|
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
110
120
|
end
|
@@ -1,3 +1,14 @@
|
|
1
|
+
=begin
|
2
|
+
This file is subject to the license terms in the LICENSE file found in the
|
3
|
+
mediawiki-selenium top-level directory of and at
|
4
|
+
https://github.com/zeljkofilipin/mediawiki-selenium/blob/master/LICENSE. No part of
|
5
|
+
mediawiki-selenium, including this file, may be copied, modified, propagated, or
|
6
|
+
distributed except according to the terms contained in the LICENSE file.
|
7
|
+
Copyright 2013 by the Mediawiki developers. See the CREDITS file in the
|
8
|
+
mediawiki-selenium top-level directory and at
|
9
|
+
https://github.com/zeljkofilipin/mediawiki-selenium/blob/master//CREDITS.
|
10
|
+
=end
|
11
|
+
|
1
12
|
require 'cucumber/formatter/junit'
|
2
13
|
|
3
14
|
module Cucumber::Formatter
|