Ifd_Mobile 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,35 @@
1
- Before { $driver.start_driver }
2
-
3
- After do
4
- begin
5
- selenium.driver_quit
6
- rescue StandardError => myStandardError
7
- puts "\nERROR: *** #{myStandardError}"
8
- end
1
+ Before do | scenario |
2
+ # need to configure env variables for browser
3
+ caps = {
4
+ caps: {
5
+ browserName: "#{ENV['browserName']}",
6
+ platformVersion: "#{ENV['platformVersion']}",
7
+ deviceName: "#{ENV['deviceName']}",
8
+ platformName: "#{ENV['platformName']}",
9
+ fullReset: false,
10
+ noReset: true,
11
+ dontStopAppOnReset: true,
12
+ app: "#{ENV['app']}"
13
+ },
14
+ appium_lib: {
15
+ server_url: "http://#{ENV['server_url']}/wd/hub"
16
+ }
17
+ }
18
+
19
+ @driver = Appium::Driver.new(caps,true)
20
+ @driver.start_driver
21
+ end
22
+
23
+ After do | scenario |
24
+ sessionid = @driver.session_id
25
+ jobname = "#{scenario.feature.name} - #{scenario.name}"
26
+ puts "SessionID=#{sessionid} job-name=#{jobname}"
27
+
28
+ @driver.driver_quit
29
+ #
30
+ # if scenario.passed?
31
+ # SauceWhisk::Jobs.pass_job sessionid
32
+ # else
33
+ # SauceWhisk::Jobs.fail_job sessionid
34
+ # end
9
35
  end
@@ -1,8 +1,8 @@
1
- capabilities:
2
- platformName: android
3
- deviceName: 192.168.56.101:5555
4
- platformVersion: 4.4.4
5
- appPackage: D:/AutomationMobileApp/WhatsApp.apk
6
-
7
- server_url: http://localhost:4723/wd/hub
1
+ capabilities:
2
+ platformName: android
3
+ deviceName: 3883a0f9
4
+ # platformVersion: 4.4.4
5
+ app: d:anhpham/docker/vu.apk
6
+
7
+ server_url: http://localhost:4723/wd/hub
8
8
  wait_time: 2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Ifd_Mobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.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-07-04 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -16,40 +16,122 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
20
- - - ">"
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: selenium-webdriver
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.6'
34
+ - - ">="
21
35
  - !ruby/object:Gem::Version
22
- version: 2.0.0
36
+ version: 3.6.0
23
37
  type: :runtime
24
38
  prerelease: false
25
39
  version_requirements: !ruby/object:Gem::Requirement
26
40
  requirements:
27
41
  - - "~>"
28
42
  - !ruby/object:Gem::Version
29
- version: '2.0'
30
- - - ">"
43
+ version: '3.6'
44
+ - - ">="
31
45
  - !ruby/object:Gem::Version
32
- version: 2.0.0
46
+ version: 3.6.0
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: appium_lib
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: '8.0'
53
+ version: 9.10.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 9.10.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: activerecord
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 5.1.5
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '='
73
+ - !ruby/object:Gem::Version
74
+ version: 5.1.5
75
+ - !ruby/object:Gem::Dependency
76
+ name: tiny_tds
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '2.1'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.1.1
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '2.1'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 2.1.1
95
+ - !ruby/object:Gem::Dependency
96
+ name: activerecord-sqlserver-adapter
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '5.1'
40
102
  - - ">="
41
103
  - !ruby/object:Gem::Version
42
- version: 8.0.2
104
+ version: 5.1.6
43
105
  type: :runtime
44
106
  prerelease: false
45
107
  version_requirements: !ruby/object:Gem::Requirement
46
108
  requirements:
47
109
  - - "~>"
48
110
  - !ruby/object:Gem::Version
49
- version: '8.0'
111
+ version: '5.1'
50
112
  - - ">="
51
113
  - !ruby/object:Gem::Version
52
- version: 8.0.2
114
+ version: 5.1.6
115
+ - !ruby/object:Gem::Dependency
116
+ name: rspec
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: 3.7.0
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 3.7.0
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.7.0
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.7.0
53
135
  description: Behavior driven development (BDD) approach to write automation test script
54
136
  to test Mobile.
55
137
  email: anhpq.info@gmail.com
@@ -65,12 +147,14 @@ files:
65
147
  - lib/Ifd_Mobile/lib_steps.rb
66
148
  - lib/Ifd_Mobile/methods/IFD_Assertion.rb
67
149
  - lib/Ifd_Mobile/methods/IFD_Connection.rb
150
+ - lib/Ifd_Mobile/methods/auto_utils.rb
68
151
  - lib/Ifd_Mobile/methods/core.rb
69
152
  - lib/Ifd_Mobile/methods/lib_var.rb
70
153
  - lib/Ifd_Mobile/methods/required_files.rb
71
154
  - lib/Ifd_Mobile/version.rb
72
155
  - lib/LICENSE
73
156
  - project/Gemfile
157
+ - project/Gemfile.lock
74
158
  - project/features/TestData/globalData.yml
75
159
  - project/features/TestSuite/login.feature
76
160
  - project/features/step_definitions/lib_steps/step_demo.rb
@@ -82,7 +166,7 @@ homepage: https://rubygems.org/gems/ifd_mobile
82
166
  licenses:
83
167
  - MIT
84
168
  metadata: {}
85
- post_install_message: Thank you for installing INFODation Mobile gem.
169
+ post_install_message: Thank you for installing INFOdation Mobile gem.
86
170
  rdoc_options: []
87
171
  require_paths:
88
172
  - lib
@@ -90,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
174
  requirements:
91
175
  - - ">="
92
176
  - !ruby/object:Gem::Version
93
- version: 1.9.3
177
+ version: '0'
94
178
  required_rubygems_version: !ruby/object:Gem::Requirement
95
179
  requirements:
96
180
  - - ">="
@@ -98,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
182
  version: '0'
99
183
  requirements: []
100
184
  rubyforge_project:
101
- rubygems_version: 2.4.5.1
185
+ rubygems_version: 2.5.2
102
186
  signing_key:
103
187
  specification_version: 4
104
188
  summary: SELENIUM WEBDRIVER WITH RUBY & CUCUMBER