bddfire 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/bddfire/version.rb +1 -1
- data/scaffold/cucumber.yml +4 -2
- data/scaffold/features/support/env.rb +27 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzFmOWVjMjk4YTY3NDNiOTc3Yjk3NDFmOWJmNmMxYzczYmJlZWQyMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGM4ZmY3YTdjYWRlYzhiMzMxZjIyODhkYTY2MTM1ZDhjOTY5YzQyYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTBjZjVmMjZmYjYxYzdkNjAzOWY5MjRmNzdhNmZmZWM0MDM2OGU3MGNjNzc0
|
10
|
+
Y2M2YjUyZDAxMjA0MDI1ZmQzNWIwZjI2MzJjMTk3MTg4YmFhNGY4ZjMyZWI4
|
11
|
+
MTNhYTY5Yzg4ZDJkNzY1OTM2NzUxMTlmMmI4MGJjYzZjZDYwZWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDI2YWQwNWYyMWE1OGRjOTNmMTM2OTA2MzdlZDFmODg5NDQ5ZDFiNzlhNGI0
|
14
|
+
YWMzODkyYWJmNWQ3OGU5NjEyZGI2NDcxN2RhZmFmNDMyMTllODk4N2E2ZDRl
|
15
|
+
ZTdmMDRjOThlNDZhODRmZWQwZjNmMDU3MmVhNTVlNjNhYTIzNzA=
|
data/lib/bddfire/version.rb
CHANGED
data/scaffold/cucumber.yml
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# config/cucumber.yml
|
2
2
|
##YAML Template
|
3
3
|
---
|
4
|
-
default: --profile html_report --profile test
|
4
|
+
default: --profile html_report --profile test -p selenium
|
5
5
|
html_report: --format pretty --format html --out=features_report.html
|
6
6
|
bvt: --tags @test
|
7
7
|
browserstack : DRIVER=browserstack
|
8
8
|
poltergeist : DRIVER=poltergeist
|
9
|
-
|
9
|
+
selenium : DRIVER=selenium
|
10
|
+
appium : DRIVER=appium
|
11
|
+
sauce : DRIVER=sauce
|
@@ -41,3 +41,30 @@ Capybara.register_driver :browserstack do |app|
|
|
41
41
|
:url => "http://USERNAME:API_KEY@hub.browserstack.com/wd/hub"
|
42
42
|
)
|
43
43
|
end
|
44
|
+
|
45
|
+
Capybara.register_driver :sauce do |app|
|
46
|
+
job_name = "Cucumber-Tests - #{Time.now.strftime '%Y-%m-%d %H:%M'}"
|
47
|
+
browser = ENV['SAUCE_BROWSER'] || 'firefox'
|
48
|
+
version = ENV['SAUCE_VERSION'] || '3.6'
|
49
|
+
platform = ENV['SAUCE_PLATFORM'] || 'WINDOWS'
|
50
|
+
duration = 7200
|
51
|
+
capabilities = {:browserName => browser, :version => version, :platform => platform, :name => job_name, "max-duration" => duration}
|
52
|
+
puts "Running #{job_name} on SauceLabs with #{browser} #{version} on #{platform}"
|
53
|
+
Capybara::Selenium::Driver.new(app,
|
54
|
+
:browser => :remote,
|
55
|
+
:desired_capabilities => capabilities,
|
56
|
+
:url => "http://SAUCE_USERNAME:SAUCE_API_KEY@ondemand.saucelabs.com:80/wd/hub")
|
57
|
+
end
|
58
|
+
|
59
|
+
Capybara.register_driver :appium do |app|
|
60
|
+
browserName = ENV['APPIUM_BROWSER_NAME'] || 'iOS'
|
61
|
+
device = ENV['APPIUM_DEVICE'] || 'iPhone Simulator'
|
62
|
+
platform = ENV['APPIUM_OS'] || 'Mac'
|
63
|
+
os_version = ENV['APPIUM_OS'] || '6.1'
|
64
|
+
app = ENV['APPIUM_OS'] || 'safari'
|
65
|
+
capabilities = {:browserName => browserName, :os_version => os_version, :device => device, "platform" => platform, "app"=>app}
|
66
|
+
Capybara::Selenium::Driver.new(app,
|
67
|
+
:browser => :remote,
|
68
|
+
:desired_capabilities => capabilities,
|
69
|
+
:url => "http://0.0.0.0:4723/wd/hub")
|
70
|
+
end
|