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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e31cda61049474aae17335b38916cbc5f245e941
4
- data.tar.gz: 062b063ecf48210aacfedb623a796ec0a9ec2572
3
+ metadata.gz: 217a54f881fc45b75ceb8b53bdb16ad36f5b9c68
4
+ data.tar.gz: e31a760f2a7368b58615f6eade99c7aa36831e19
5
5
  SHA512:
6
- metadata.gz: bffd7ba7490cf5f08d880a4342dfd3280ca8c4ac30c9040df897ccab78053ca03e01c6367dde3ff9c01530dc81b0aa6fc8e9012ad31e1d939008e5b2a37b12d7
7
- data.tar.gz: 89a33ad94fdbd67dc870f9df3602cd9ce397804c8a26f2bef425d2f665bb9d7c63b1229e9e7e6231d170fb113cae3b73f0bc8b770b7b1a26e1edbb4252963587
6
+ metadata.gz: a87e826fe4ca543164f6ca7f518766165602763701dc1364c9563e3280f30ba17dc389ce2468ea37b81e928bff483a1585b2d5cdaa0e20726373cb3f4210fcb8
7
+ data.tar.gz: e50cbcf7b604cf43065c0c0ed673ec2121b7c0dc078edc1e38f3af81d0ba317542c2a27711269d9fdbe53a9a77d6b1ea4fdd659724643f794916a8d6c7421c2d
@@ -1,3 +1,3 @@
1
1
  module IfdAutomation
2
- VERSION = "2.1"
2
+ VERSION = "2.2"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  testpage: https://mymupgrade.infodation.com/?lang=en
2
- host: 10.5.1.239
3
- db_username: root
4
- db_password: root@123
2
+ send_email_username:
3
+ send_email_password:
4
+ receive_email_username:
5
+ receive_email_password:
@@ -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 = ENV["send_email_username"]
22
- $SEND_EMAIL_PASSWORD = ENV["send_email_password"]
23
- $RECEIVE_EMAIL_USERNAME = ENV["receive_email_username"]
24
- $RECEIVE_EMAIL_PASSWORD = ENV["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
- register_selenium_remote_driver($_CFWEB['Default Browser'])
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.1'
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-27 00:00:00.000000000 Z
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/failed_377.png
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