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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c92ba397105402f096b40f2a241b7739044e5640
4
- data.tar.gz: 22d696e75b739931baee054ed05dd943a618d5b2
3
+ metadata.gz: 995b5ae7420fd3abce3f9bc630803e8e7648836c
4
+ data.tar.gz: d7b5fb6447e98be473b8495fcf65de1d4e6c1e8e
5
5
  SHA512:
6
- metadata.gz: 93e8b9c6afa0b255c1679d092abcbefa037c2e3eb43860bc220c916ae99874ddc08a40484cbfe4e1fe4391effd5f7ab24c0636e0d58b7099d9de55e85b4e3737
7
- data.tar.gz: 6e91b9f3740b4e567374c667e4e3efd62be73833ee8af990c4c4f52d5c7b10dcf18b97a1d2475e6af5e53ca6b4ca66b12d02a36b3122396435d6d21973a1fe90
6
+ metadata.gz: bd71305aac93b9001fe249c0ad7b6758fcde4a2ec34ef8f5745a5a7bcdf21a22abb35ab1df84ebce724cec2e9e31572d59564a5f44731c99a5842c9979ce546f
7
+ data.tar.gz: 456812c04845fc6bb03366299160554e161bb71c2d31afebce1527f88d0934a29ff8d988c6e1787cc8a011385cbca3359ddcc85738b96ef268401011cc368cd5
@@ -1,5 +1,3 @@
1
- $_RP_OBJECT = Hash.new
2
-
3
1
  #Print script log to console
4
2
  def put_log str
5
3
  puts str if $_CFWEB['Print Log'] == true
@@ -1,5 +1,5 @@
1
1
  module Ifd
2
2
  module Automation
3
- VERSION = '1.3.0'
3
+ VERSION = '1.4.0'
4
4
  end
5
5
  end
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', '~> 1.8.0'
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 (~> 1.8.0)
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.10.6
196
+ 1.11.2
@@ -3,4 +3,4 @@
3
3
  @LOGIN
4
4
  Feature: Testing login functionality
5
5
  Scenario: Test Case for Demo
6
- * I login on Admin GUI page with username and password in test data file
6
+ Given I navigate to Demo page
@@ -1,8 +1,3 @@
1
- When /^I login on Admin GUI page with (.*) and (.*) in test data file$/ do |username, password|
2
- step %{I wait for 5 seconds}
1
+ When /I navigate to Demo page/ do
3
2
  step %{I am on Login Page}
4
- step %{I set text on "cif_admin_login.textbox_username" with "#{data(username)}"}
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/project_config.yml")
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'] == :firefox
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'] == :internet_explorer
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'] == :chrome
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'] == :firefox
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'] == :internet_explorer
116
+ elsif $_CFWEB['Default Browser'] == 'internet_explorer'
117
117
  Capybara::Selenium::Driver.new(app, :browser => :internet_explorer)
118
- elsif $_CFWEB['Default Browser'] == :chrome
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: :chrome
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.3.0
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-19 00:00:00.000000000 Z
11
+ date: 2016-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber