Ifd_Automation 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8affb157aa78d4f62352b5deb2279c16c165953f
4
- data.tar.gz: 2019c4610eb99cc1f0efa020321ce6553b07d127
3
+ metadata.gz: a3a26342c75a6e681f958a76a993a0e7270f0633
4
+ data.tar.gz: cb569050cd9f1f7c7b98bf6c9baaae8ec4a0a7ee
5
5
  SHA512:
6
- metadata.gz: 276c1345b92853704ae90d4522a73de4243661a91a86367fb9a57e46a3a5799af4972b4446a51e9b1fee09fdf7642c50312b35a0866fcc8dffb632c275f433c5
7
- data.tar.gz: e93c4a46f54fec5315fe66882d8f3efdaa3e131b71d40afbc372249ef49e985ab339b8a39ed5416382441a8f425149f6186969f7287ab8b40de41750dadc1ab7
6
+ metadata.gz: a08394b90c432e8bd465b07cfead78a5389ee278168ecd404dd6448f440402151f617a93381d7f5d9c5e96f6861a45b119c9415eb6409c2bff1171d1a2afdeb0
7
+ data.tar.gz: 53fcc28e3264bce6db5759d88006bcd96c494b3ef05483c18e36a0ebbde98874a8b4b29c2311d09ce45591223190fa1c317d2d6e4f37d077dae171a57ab6292e
@@ -1,3 +1,3 @@
1
1
  module IfdAutomation
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
@@ -609,6 +609,8 @@ def find_object string_object
609
609
  else
610
610
  break
611
611
  end
612
+ test = currentTime - startTime
613
+ puts "\n#TIME-OUT:#{test} < #{$_CFWEB['Wait Time']}"
612
614
  sleep(0.5)
613
615
  end while (currentTime - startTime) < $_CFWEB['Wait Time']
614
616
 
@@ -3,15 +3,7 @@ server_url: http://localhost:4444/wd/hub
3
3
  browser_caps:
4
4
  chrome:
5
5
  - browserName: chrome
6
- - platform: Windows 10
7
- - javascriptEnabled: 'false'
8
- - screenResolution: 1024×768
9
6
  - record_video: 'false'
10
- - timezone: GMT+06:00
11
7
  firefox:
12
8
  - browserName: firefox
13
- - platform: Windows 10
14
- - javascriptEnabled: 'false'
15
- - screenResolution: 1024×768
16
9
  - record_video: 'false'
17
- - timezone: GMT+06:00
@@ -1,4 +1,5 @@
1
- @test1
2
- Feature: feature 2
3
- Scenario: scenario 2
4
- Given I open the page "http://infodation.vn"
1
+ Feature: anhpham test
2
+
3
+
4
+ Scenario: new scenario
5
+ * I test
@@ -1,4 +1,4 @@
1
1
  And /I open the page "(.*)"/ do |page|
2
2
  execute_openbrowser(page)
3
- sleep "10".to_i
3
+ sleep 10
4
4
  end
@@ -41,7 +41,7 @@ end
41
41
  $_CFWEB['Wait Time'] = ENV["WAIT_TIME"] || 30
42
42
  $_CFWEB['Print Log'] = ENV["PRINT_LOG"] || false
43
43
  $_CFWEB['Maximize Browser'] = ENV["MAXIMIZE_BROWSER"] || true
44
- SELENIUM_SERVER_URL = BROWSER_CONFIG['server_url'] || ENV['SERVER_URL']
44
+ SELENIUM_SERVER_URL = ENV['SERVER_URL'] || BROWSER_CONFIG['server_url']
45
45
  BROWSER_CAPS = BROWSER_CONFIG['browser_caps'][ENV['BROWSER']]
46
46
  if CONFIG_NAME == "local"
47
47
  itms_action.getServerStatus(SELENIUM_SERVER_URL)
@@ -50,7 +50,7 @@ Capybara.register_driver :selenium do |app|
50
50
  Capybara::Selenium::Driver.new(app,
51
51
  :browser => :remote,
52
52
  :url => SELENIUM_SERVER_URL,
53
- :desired_capabilities => Hash[*BROWSER_CAPS.flatten]
53
+ :desired_capabilities => BROWSER_CAPS.reduce { |acc, h| (acc || {}).merge h }
54
54
  )
55
55
  end
56
56
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ifd_Automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anh Pham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -251,7 +251,6 @@ files:
251
251
  - project/cucumber.yml
252
252
  - project/features/TestData/globalData.yml
253
253
  - project/features/TestSuite/WebGUI.feature
254
- - project/features/TestSuite/WebGUI_copy.feature
255
254
  - project/features/step_definitions/lib_steps/steps_definition.rb
256
255
  - project/features/step_definitions/repositories/project_object.yml
257
256
  - project/features/support/env.rb
@@ -1,3 +0,0 @@
1
- Feature: feature 1
2
- Scenario: scenario 1
3
- Given I open the page "http://rubygems.org"