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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzA0MTI2YWUxNWIwMTNjZTg4Y2Y2YTY3YWVjNDE0YmViOWMyM2JlOQ==
4
+ YzFmOWVjMjk4YTY3NDNiOTc3Yjk3NDFmOWJmNmMxYzczYmJlZWQyMQ==
5
5
  data.tar.gz: !binary |-
6
- YmVkODFkMThiNWZlZDZkNmFmNDhmYzRmYWRiZTUxZThjZjU1YTUzZg==
6
+ ZGM4ZmY3YTdjYWRlYzhiMzMxZjIyODhkYTY2MTM1ZDhjOTY5YzQyYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWY3ZmJlOTI1YzQ1ZjU5NDg0YmMwMWZlYjkwZWQyMjUzM2ExNTUxN2FhYmYx
10
- ZTIyMTRmMGE4ZDUwZmZiYjVlYzMyYjAwNjg0MGFkM2Y2NGFkNjQzODc3Yzhh
11
- ZTdmZDczZjNmNGI2NWNmNjVkYjM4YWFjYmQ3ZWRjNzE2Y2Y0MjI=
9
+ ZTBjZjVmMjZmYjYxYzdkNjAzOWY5MjRmNzdhNmZmZWM0MDM2OGU3MGNjNzc0
10
+ Y2M2YjUyZDAxMjA0MDI1ZmQzNWIwZjI2MzJjMTk3MTg4YmFhNGY4ZjMyZWI4
11
+ MTNhYTY5Yzg4ZDJkNzY1OTM2NzUxMTlmMmI4MGJjYzZjZDYwZWY=
12
12
  data.tar.gz: !binary |-
13
- MDNhZmQwYTUzZGY1YWQ4MTVkNmVlMzQzYjQxZjM5ZmYyNDU3ZjY2N2VjYTBi
14
- MmFmMWZmNGE2OTMwOGQyYzFhMmFiYmY1N2I1NjJmNTJlZThiYmU2ZTk0ZGRm
15
- NTkwYmM3MzdkOTdmOWVmZmYzOTY1YjMyODE2ODQ2YjkxNTBlNjM=
13
+ NDI2YWQwNWYyMWE1OGRjOTNmMTM2OTA2MzdlZDFmODg5NDQ5ZDFiNzlhNGI0
14
+ YWMzODkyYWJmNWQ3OGU5NjEyZGI2NDcxN2RhZmFmNDMyMTllODk4N2E2ZDRl
15
+ ZTdmMDRjOThlNDZhODRmZWQwZjNmMDU3MmVhNTVlNjNhYTIzNzA=
@@ -1,3 +1,3 @@
1
1
  module BDDfire
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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
- webdriver : DRIVER=webdriver
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bddfire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant Jagtap