Ifd_Automation 1.3.0 → 1.4.0
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/methods/core.rb +0 -2
- data/lib/Ifd_Automation/version.rb +1 -1
- data/project/Gemfile +3 -2
- data/project/Gemfile.lock +16 -2
- data/project/features/TestSuite/Login/login.feature +1 -1
- data/project/features/step_definitions/lib_steps/login_steps.rb +2 -7
- data/project/features/support/env.rb +8 -8
- data/project/features/support/project_config.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 995b5ae7420fd3abce3f9bc630803e8e7648836c
|
4
|
+
data.tar.gz: d7b5fb6447e98be473b8495fcf65de1d4e6c1e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd71305aac93b9001fe249c0ad7b6758fcde4a2ec34ef8f5745a5a7bcdf21a22abb35ab1df84ebce724cec2e9e31572d59564a5f44731c99a5842c9979ce546f
|
7
|
+
data.tar.gz: 456812c04845fc6bb03366299160554e161bb71c2d31afebce1527f88d0934a29ff8d988c6e1787cc8a011385cbca3359ddcc85738b96ef268401011cc368cd5
|
data/project/Gemfile
CHANGED
@@ -9,7 +9,7 @@ gem 'json', '1.8.3'
|
|
9
9
|
gem 'mysql2','0.3.18'
|
10
10
|
gem 'test-unit', '~> 3.1.2'
|
11
11
|
gem 'parallel_tests'
|
12
|
-
gem 'rest-client'
|
12
|
+
gem 'rest-client'
|
13
13
|
gem 'tiny_tds', '~> 0.6.2'
|
14
14
|
gem 'actionmailer', '~> 4.2.3'
|
15
15
|
gem 'email_spec'
|
@@ -17,4 +17,5 @@ gem 'rails'
|
|
17
17
|
gem 'rack-utf8_sanitizer'
|
18
18
|
gem 'mail'
|
19
19
|
gem 'chromedriver2-helper'
|
20
|
-
gem 'rautomation', '~> 0.17.0'
|
20
|
+
gem 'rautomation', '~> 0.17.0'
|
21
|
+
gem 'Ifd_Automation'
|
data/project/Gemfile.lock
CHANGED
@@ -56,8 +56,11 @@ GEM
|
|
56
56
|
mail (~> 2.2)
|
57
57
|
erubis (2.7.0)
|
58
58
|
ffi (1.9.10-x64-mingw32)
|
59
|
+
ffi (1.9.10-x86-mingw32)
|
59
60
|
gherkin (2.12.2)
|
60
61
|
multi_json (~> 1.3)
|
62
|
+
gherkin (2.12.2-x86-mingw32)
|
63
|
+
multi_json (~> 1.3)
|
61
64
|
globalid (0.3.6)
|
62
65
|
activesupport (>= 4.1.0)
|
63
66
|
http-cookie (1.0.2)
|
@@ -79,9 +82,12 @@ GEM
|
|
79
82
|
multi_json (1.11.2)
|
80
83
|
multi_xml (0.5.5)
|
81
84
|
mysql2 (0.3.18-x64-mingw32)
|
85
|
+
mysql2 (0.3.18-x86-mingw32)
|
82
86
|
netrc (0.10.3)
|
83
87
|
nokogiri (1.6.6.2-x64-mingw32)
|
84
88
|
mini_portile (~> 0.6.0)
|
89
|
+
nokogiri (1.6.6.2-x86-mingw32)
|
90
|
+
mini_portile (~> 0.6.0)
|
85
91
|
parallel (1.6.1)
|
86
92
|
parallel_tests (1.9.0)
|
87
93
|
parallel
|
@@ -123,6 +129,11 @@ GEM
|
|
123
129
|
http-cookie (>= 1.0.2, < 2.0)
|
124
130
|
mime-types (>= 1.16, < 3.0)
|
125
131
|
netrc (~> 0.7)
|
132
|
+
rest-client (1.8.0-x86-mingw32)
|
133
|
+
ffi (~> 1.9)
|
134
|
+
http-cookie (>= 1.0.2, < 2.0)
|
135
|
+
mime-types (>= 1.16, < 3.0)
|
136
|
+
netrc (~> 0.7)
|
126
137
|
rspec (3.3.0)
|
127
138
|
rspec-core (~> 3.3.0)
|
128
139
|
rspec-expectations (~> 3.3.0)
|
@@ -147,16 +158,19 @@ GEM
|
|
147
158
|
thor (0.19.1)
|
148
159
|
thread_safe (0.3.5)
|
149
160
|
tiny_tds (0.6.2-x64-mingw32)
|
161
|
+
tiny_tds (0.6.2-x86-mingw32)
|
150
162
|
tzinfo (1.2.2)
|
151
163
|
thread_safe (~> 0.1)
|
152
164
|
unf (0.1.4)
|
153
165
|
unf_ext
|
154
166
|
unf_ext (0.0.7.1-x64-mingw32)
|
167
|
+
unf_ext (0.0.7.1-x86-mingw32)
|
155
168
|
xpath (2.0.0)
|
156
169
|
nokogiri (~> 1.3)
|
157
170
|
|
158
171
|
PLATFORMS
|
159
172
|
x64-mingw32
|
173
|
+
x86-mingw32
|
160
174
|
|
161
175
|
DEPENDENCIES
|
162
176
|
actionmailer (~> 4.2.3)
|
@@ -173,10 +187,10 @@ DEPENDENCIES
|
|
173
187
|
rack-utf8_sanitizer
|
174
188
|
rails
|
175
189
|
rautomation (~> 0.17.0)
|
176
|
-
rest-client
|
190
|
+
rest-client
|
177
191
|
rspec (~> 3.3.0)
|
178
192
|
test-unit (~> 3.1.2)
|
179
193
|
tiny_tds (~> 0.6.2)
|
180
194
|
|
181
195
|
BUNDLED WITH
|
182
|
-
1.
|
196
|
+
1.11.2
|
@@ -1,8 +1,3 @@
|
|
1
|
-
When
|
2
|
-
step %{I wait for 5 seconds}
|
1
|
+
When /I navigate to Demo page/ do
|
3
2
|
step %{I am on Login Page}
|
4
|
-
|
5
|
-
step %{I set text on "cif_admin_login.textbox_password" with "#{data(password)}"}
|
6
|
-
step %{I click on "cif_admin_login.button_login"}
|
7
|
-
step %{I wait for 5 seconds}
|
8
|
-
end
|
3
|
+
end
|
@@ -8,10 +8,9 @@ $_CFWEB['Download Dir'] = "#{$test_data_dir}DownloadFolder/"
|
|
8
8
|
$_CFWEB['Expected Data Dir'] = "#{$test_data_dir}/ExpectedDataFile/"
|
9
9
|
$globalData = YAML.load_file("#{$test_data_dir}/globalData.yml")
|
10
10
|
PROJECT_CONFIG = YAML.load_file("#{$current_dir}/project_config.yml")
|
11
|
-
$OBJECT = YAML.load_file("#{$base_dir}/features/step_definitions/repositories/
|
11
|
+
$OBJECT = YAML.load_file("#{$base_dir}/features/step_definitions/repositories/project_object.yml")
|
12
12
|
|
13
13
|
STDOUT.sync = true
|
14
|
-
# require "#{$current_dir}/project_env.rb"
|
15
14
|
require 'mail'
|
16
15
|
require 'capybara'
|
17
16
|
require 'capybara/cucumber'
|
@@ -20,6 +19,7 @@ require 'test/unit/assertions'
|
|
20
19
|
require 'action_mailer'
|
21
20
|
require 'rubygems'
|
22
21
|
require 'yaml'
|
22
|
+
# require 'rest-client'
|
23
23
|
require 'Ifd_Automation'
|
24
24
|
|
25
25
|
$_CFWEB['Default Browser'] = PROJECT_CONFIG['default_browser']
|
@@ -67,7 +67,7 @@ if ENV["SELENIUM"] == 'remote'
|
|
67
67
|
Capybara.default_wait_time = $_CFWEB['Wait Time']
|
68
68
|
Capybara.default_driver = :selenium
|
69
69
|
Capybara.register_driver :selenium do |app|
|
70
|
-
if $_CFWEB['Default Browser'] ==
|
70
|
+
if $_CFWEB['Default Browser'] == 'firefox'
|
71
71
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
72
72
|
profile['browser.download.dir'] = $_CFWEB['Download Dir']
|
73
73
|
profile['browser.download.folderList'] = 2
|
@@ -77,13 +77,13 @@ if ENV["SELENIUM"] == 'remote'
|
|
77
77
|
:browser => :remote,
|
78
78
|
:url => $selenium_grid_url,
|
79
79
|
:desired_capabilities => capabilities)
|
80
|
-
elsif $_CFWEB['Default Browser'] ==
|
80
|
+
elsif $_CFWEB['Default Browser'] == 'internet_explorer'
|
81
81
|
capabilities = Selenium::WebDriver::Remote::Capabilities.internet_explorer
|
82
82
|
Capybara::Selenium::Driver.new(app,
|
83
83
|
:browser => :remote,
|
84
84
|
:url => $selenium_grid_url,
|
85
85
|
:desired_capabilities => capabilities)
|
86
|
-
elsif $_CFWEB['Default Browser'] ==
|
86
|
+
elsif $_CFWEB['Default Browser'] == 'chrome'
|
87
87
|
prefs = {:download => {:prompt_for_download => false, :default_directory => $_CFWEB['Download Dir']}}
|
88
88
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
89
89
|
capabilities['chromeOptions'] = {'prefs' => prefs}
|
@@ -106,16 +106,16 @@ else
|
|
106
106
|
#config.visible_text_only = true
|
107
107
|
end
|
108
108
|
Capybara.register_driver :selenium do |app|
|
109
|
-
if $_CFWEB['Default Browser'] ==
|
109
|
+
if $_CFWEB['Default Browser'] == 'firefox'
|
110
110
|
profile = Selenium::WebDriver::Firefox::Profile.new
|
111
111
|
profile['browser.download.folderList'] = 2
|
112
112
|
profile['browser.download.dir'] = $_CFWEB['Download Dir']
|
113
113
|
profile['browser.helperApps.neverAsk.saveToDisk'] = "text/csv,application/pdf,application/x-pdf,application/octet-stream"
|
114
114
|
profile["pdfjs.disabled"] = true
|
115
115
|
Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile)
|
116
|
-
elsif $_CFWEB['Default Browser'] ==
|
116
|
+
elsif $_CFWEB['Default Browser'] == 'internet_explorer'
|
117
117
|
Capybara::Selenium::Driver.new(app, :browser => :internet_explorer)
|
118
|
-
elsif $_CFWEB['Default Browser'] ==
|
118
|
+
elsif $_CFWEB['Default Browser'] == 'chrome'
|
119
119
|
prefs = {:download => {
|
120
120
|
:prompt_for_download => false,
|
121
121
|
:default_directory => $_CFWEB['Download Dir']
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# :internet_explorer => "Internet Explorer"
|
7
7
|
# :chrome => "Chrome"
|
8
8
|
#---------------------------
|
9
|
-
default_browser:
|
9
|
+
default_browser: firefox
|
10
10
|
wait_time: 30
|
11
11
|
test_page_address: http://10.5.1.200:55602/
|
12
12
|
selenium_grid: http://10.5.1.202:5555/wd/hub
|
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: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anh Pham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|