itms_automation 2.6.0 → 2.6.1

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
  SHA256:
3
- metadata.gz: e02d6e102acd4013bf31802636ca701aaadd1608bee6248aa09e5888b9c9cd7a
4
- data.tar.gz: 0f1b6cc243aa17c47973df3a5ea3c6b1a29926a03bc9b45b7834d70cefef9ebb
3
+ metadata.gz: b68795c70dc3849953992aa8fd7f5e15dbe8c7941b0718f4674a3bed95356592
4
+ data.tar.gz: 288c82ec446b0f03622ebaa995fd2930b364105bd14922e3d67c6bd738698fd2
5
5
  SHA512:
6
- metadata.gz: 297c5058d791dca51294a6100cd8893b389621aa6e367ef4dd3a4008a0d2521ca95e494644e9f098824b73ea584c63cc0bff4e169c0042a30e13f9e9303ce85a
7
- data.tar.gz: fb64697cd37e37bc7885abe33fe0d2be8be4eb4f6ec035331b613abe9d0ff14383c1eff0a54ab3c71f8ef0c6e3bdae3c109223bb3ccd24c1be2b54bc4f50a6f6
6
+ metadata.gz: 5ad134e0e2128eb50b3041765462a8ea8c5a849db0e700859d7a5d0396bb1aa15a4a8c1331fb5c3859cff04f107006c94507b5828bcb62cae565428e8f3b9671
7
+ data.tar.gz: 3e3e5e9bf6f56087f59b46d343172ee56c17d3d0a7d6a9fe9c680818f8b8ac40bf2cae84c1e6765e3366e30b00cabf30dc1f3177e83431d21af0bfcc8dc40fd7
@@ -83,24 +83,21 @@ else # else create driver instance for desktop browser
83
83
  Selenium::WebDriver.for(:chrome, :desired_capabilities => Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: { args: %w(headless) }))
84
84
  when "remote"
85
85
  if ENV["SERVER_URL"].nil? || ENV["REMOTE_BROWSER"].nil?
86
- puts "\nMissing SERVER_URL : SERVER_URL=http//SERVER_URL:4444/wd/hub"
86
+ puts "\nMissing SERVER_URL : SERVER_URL=http://SERVER_URL:4444/wd/hub"
87
87
  puts "\nMissing REMOTE_BROWSER: REMOTE_BROWSER=browser_name"
88
88
  Process.exit(0)
89
89
  else
90
90
  caps = Selenium::WebDriver::Remote::Capabilities.new
91
91
  caps["browserName"] = ENV["REMOTE_BROWSER"]
92
+ caps["enableVNC"] = ENV["ENABLE_VNC"] if ENV["ENABLE_VNC"].present?
93
+ caps["enableVideo"] = ENV["ENABLE_VIDEO"] if ENV["ENABLE_VIDEO"].present?
94
+ caps["screenResolution"] = ENV["SCREEN_RESOLUTION"] if ENV["SCREEN_RESOLUTION"].present?
92
95
  Selenium::WebDriver.for(:remote, :url => ENV["SERVER_URL"], :desired_capabilities => caps)
93
96
  end
94
97
  else
95
98
  Selenium::WebDriver.for(:firefox)
96
99
  end
97
100
  $driver.manage().window().maximize()
98
- if ENV["UPDATE_SESSION_ID_API"]
99
- begin
100
- HTTParty.post(ENV["UPDATE_SESSION_ID_API"], body: { session_id: $driver.session_id })
101
- rescue => exception
102
- end
103
- end
104
101
  rescue Exception => e
105
102
  puts e.message
106
103
  Process.exit(0)
@@ -55,11 +55,11 @@ def check_element_text(element, actual_value, test_case)
55
55
 
56
56
  if test_case
57
57
  if element_text != actual_value
58
- raise TestCaseFailed, 'Text Not Matched'
58
+ raise TestCaseFailed, "Text Not Matched. Actual Value :#{actual_value}"
59
59
  end
60
60
  else
61
61
  if element_text == actual_value
62
- raise TestCaseFailed, 'Text Matched'
62
+ raise TestCaseFailed, "Text Matched. Actual Value :#{actual_value}"
63
63
  end
64
64
  end
65
65
  end
@@ -73,11 +73,11 @@ def check_element_partial_text(element, actual_value, test_case)
73
73
 
74
74
  if test_case
75
75
  if not element_text.include? "#{actual_value}"
76
- raise TestCaseFailed, 'Text Not Matched'
76
+ raise TestCaseFailed, "Text Not Matched. Actual Value :#{actual_value}"
77
77
  end
78
78
  else
79
79
  if element_text.include? "#{actual_value}"
80
- raise TestCaseFailed, 'Text Matched'
80
+ raise TestCaseFailed, "Text Matched. Actual Value :#{actual_value}"
81
81
  end
82
82
  end
83
83
  end
@@ -119,11 +119,11 @@ def check_element_attribute(element, attribute_name, attribute_value, test_case)
119
119
 
120
120
  if test_case
121
121
  if attr_val != attribute_value
122
- raise TestCaseFailed, 'Attribute Value Not Matched'
122
+ raise TestCaseFailed, "Attribute Value Not Matched. Actual Value :#{attr_val}"
123
123
  end
124
124
  else
125
125
  if attr_val == attribute_value
126
- raise TestCaseFailed, 'Attribute Value Matched'
126
+ raise TestCaseFailed, "Attribute Value Matched. Actual Value :#{attr_val}"
127
127
  end
128
128
  end
129
129
  end
@@ -204,7 +204,7 @@ end
204
204
  # method to check javascript pop-up alert text
205
205
  def check_alert_text(text)
206
206
  if get_alert_text != text
207
- raise TestCaseFailed, 'Text on alert pop up not matched'
207
+ raise TestCaseFailed, "Text on alert pop up not matched. Actual Value :#{get_alert_text}"
208
208
  end
209
209
  end
210
210
 
@@ -1,5 +1,5 @@
1
1
  module ITMS
2
2
  module Automation
3
- VERSION = '2.6.0'
3
+ VERSION = '2.6.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,33 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itms_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - INFOdation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.1.2
20
- - - ">="
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.1.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.1.2
30
- - - ">="
30
+ - - "~>"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.1.2
33
33
  - !ruby/object:Gem::Dependency
@@ -54,60 +54,60 @@ dependencies:
54
54
  name: appium_lib_core
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.10.1
60
- - - ">="
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 3.10.1
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 3.10.1
70
- - - ">="
70
+ - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.10.1
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: httparty
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - "~>"
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: 0.13.7
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.13.7
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.13.7
90
- - - ">="
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
92
  version: 0.13.7
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: report_builder
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - "~>"
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '1.8'
100
- - - ">="
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '1.8'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: '1.8'
110
- - - ">="
110
+ - - "~>"
111
111
  - !ruby/object:Gem::Version
112
112
  version: '1.8'
113
113
  description: Behavior driven development (BDD) approach to write automation test script
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.1.2
196
+ rubygems_version: 3.0.6
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: SELENIUM WEBDRIVER WITH RUBY & CUCUMBER