Ifd_Automation 2.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Ifd_Automation/version.rb +1 -1
- data/project/features/Screenshot/sample.jpg +0 -0
- data/project/features/TestData/globalData.yml +4 -3
- data/project/features/support/env.rb +17 -10
- metadata +3 -4
- data/project/features/Screenshot/failed_377.png +0 -0
- data/project/features/Screenshot/failed_sample.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217a54f881fc45b75ceb8b53bdb16ad36f5b9c68
|
4
|
+
data.tar.gz: e31a760f2a7368b58615f6eade99c7aa36831e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87e826fe4ca543164f6ca7f518766165602763701dc1364c9563e3280f30ba17dc389ce2468ea37b81e928bff483a1585b2d5cdaa0e20726373cb3f4210fcb8
|
7
|
+
data.tar.gz: e50cbcf7b604cf43065c0c0ed673ec2121b7c0dc078edc1e38f3af81d0ba317542c2a27711269d9fdbe53a9a77d6b1ea4fdd659724643f794916a8d6c7421c2d
|
Binary file
|
@@ -14,15 +14,19 @@ require 'yaml'
|
|
14
14
|
require 'selenium-webdriver'
|
15
15
|
require 'Ifd_Automation'
|
16
16
|
|
17
|
+
|
18
|
+
if ENV["browser"].nil?
|
19
|
+
raise "ERROR***: MISSING BROWSER... Supported Browsers: Chrome/Firefox."
|
20
|
+
end
|
21
|
+
|
17
22
|
$_CFWEB['Default Browser'] = ENV["browser"].downcase
|
18
23
|
$_CFWEB['Wait Time'] = ENV["wait_time"] || 30
|
19
24
|
$_CFWEB['Print Log'] = ENV["print_log"]
|
20
25
|
$_CFWEB['Maximize Browser'] = ENV["maximize_browser"] || true
|
21
|
-
$SEND_EMAIL_USERNAME =
|
22
|
-
$SEND_EMAIL_PASSWORD =
|
23
|
-
$RECEIVE_EMAIL_USERNAME =
|
24
|
-
$RECEIVE_EMAIL_PASSWORD =
|
25
|
-
|
26
|
+
$SEND_EMAIL_USERNAME = $PARAMS["send_email_username"]
|
27
|
+
$SEND_EMAIL_PASSWORD = $PARAMS["send_email_password"]
|
28
|
+
$RECEIVE_EMAIL_USERNAME = $PARAMS["receive_email_username"]
|
29
|
+
$RECEIVE_EMAIL_PASSWORD = $PARAMS["receive_email_password"]
|
26
30
|
Mail.defaults do
|
27
31
|
delivery_method :smtp, {
|
28
32
|
:enable_starttls_auto => true,
|
@@ -30,6 +34,7 @@ Mail.defaults do
|
|
30
34
|
:port => 25,
|
31
35
|
:domain => 'gmail.com',
|
32
36
|
:authentication => :plain,
|
37
|
+
:openssl_verify_mode => 'none',
|
33
38
|
:user_name => $SEND_EMAIL_USERNAME,
|
34
39
|
:password => $SEND_EMAIL_PASSWORD
|
35
40
|
}
|
@@ -102,20 +107,22 @@ end
|
|
102
107
|
|
103
108
|
case ENV["SELENIUM"]
|
104
109
|
when "remote"
|
105
|
-
|
110
|
+
if ENV["SELENIUM_SERVER"].nil?
|
111
|
+
raise "ERROR***: MISSING SELENIUM_SERVER IP..."
|
112
|
+
else
|
113
|
+
register_selenium_remote_driver($_CFWEB['Default Browser'])
|
114
|
+
end
|
106
115
|
else
|
107
116
|
register_selenium_local_driver($_CFWEB['Default Browser'])
|
108
117
|
end
|
118
|
+
|
109
119
|
# Available execution environment variables
|
110
120
|
# - ENV["SELENIUM"] = remote
|
121
|
+
# - ENV["SELENIUM_SERVER"] = 10.0.0.1
|
111
122
|
# - ENV["browser"] = "chrome"/"firefox"
|
112
123
|
# - ENV["wait_time"] = 30
|
113
124
|
# - ENV["print_log"] = true/false
|
114
125
|
# - ENV["maximize_browser"] = true/false
|
115
|
-
# - ENV["send_email_username"]
|
116
|
-
# - ENV["send_email_password"]
|
117
|
-
# - ENV["receive_email_username"]
|
118
|
-
# - ENV["receive_email_password"]
|
119
126
|
# - ENV["recordVideo"]
|
120
127
|
# - ENV["name"]
|
121
128
|
# - ENV["build"]
|
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: '2.
|
4
|
+
version: '2.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anh Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -180,8 +180,7 @@ files:
|
|
180
180
|
- lib/helper/mail_helpers.rb
|
181
181
|
- lib/helper/web_steps_helpers.rb
|
182
182
|
- project/Gemfile
|
183
|
-
- project/features/Screenshot/
|
184
|
-
- project/features/Screenshot/failed_sample.png
|
183
|
+
- project/features/Screenshot/sample.jpg
|
185
184
|
- project/features/TestData/globalData.yml
|
186
185
|
- project/features/TestSuite/WebGUI.feature
|
187
186
|
- project/features/step_definitions/lib_steps/test.rb
|
Binary file
|
Binary file
|