Ifd_Mobile 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Ifd_Mobile/lib_web.rb +118 -106
- data/lib/Ifd_Mobile/methods/IFD_Assertion.rb +44 -44
- data/lib/Ifd_Mobile/methods/core.rb +243 -231
- data/lib/Ifd_Mobile/methods/lib_var.rb +53 -53
- data/lib/Ifd_Mobile/version.rb +5 -5
- data/project/Gemfile +9 -9
- data/project/apps/TestApp/Test App 2/GestureTestViewController.h +18 -18
- data/project/apps/TestApp/Test App 2/GestureTestViewController.m +48 -48
- data/project/apps/TestApp/Test App 2/GestureTestViewController.xib +46 -46
- data/project/apps/TestApp/Test App 2/MyViewControllerViewController.h +42 -42
- data/project/apps/TestApp/Test App 2/MyViewControllerViewController.m +193 -193
- data/project/apps/TestApp/Test App 2/TA2AppDelegate.h +28 -28
- data/project/apps/TestApp/Test App 2/TA2AppDelegate.m +85 -85
- data/project/apps/TestApp/Test App 2/TestApp-Info.plist +40 -40
- data/project/apps/TestApp/Test App 2/TestApp-Prefix.pch +29 -29
- data/project/apps/TestApp/Test App 2/en.lproj/InfoPlist.strings +21 -21
- data/project/apps/TestApp/Test App 2/en.lproj/MyViewControllerViewController.xib +175 -175
- data/project/apps/TestApp/Test App 2/main.m +31 -31
- data/project/apps/TestApp/TestApp.xcodeproj/project.pbxproj +336 -336
- data/project/apps/TestApp/TestApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -7
- data/project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/TestApp.xcscheme +88 -88
- data/project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/xcschememanagement.plist +22 -22
- data/project/features/android/Android_test1.feature +14 -14
- data/project/features/android/Android_test2.feature +14 -14
- data/project/features/iOS/iOS_test.feature +15 -17
- data/project/features/step_definitions/lib_steps/PolyClaim_homepage.rb +2 -2
- data/project/features/step_definitions/lib_steps/PolyClaim_loginpage.rb +3 -3
- data/project/features/step_definitions/repositories/android_ob_test.rb +9 -9
- data/project/features/step_definitions/repositories/ios_ob_test.rb +6 -6
- data/project/features/support/env.rb +36 -36
- data/project/features/support/hooks.rb +8 -8
- data/project/features/support/project_env.rb +42 -42
- metadata +40 -40
@@ -1,9 +1,9 @@
|
|
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 { $driver.start_driver }
|
2
|
+
|
3
|
+
After do
|
4
|
+
begin
|
5
|
+
selenium.driver_quit
|
6
|
+
rescue StandardError => myStandardError
|
7
|
+
puts "\nERROR: *** #{myStandardError}"
|
8
|
+
end
|
9
9
|
end
|
@@ -1,42 +1,42 @@
|
|
1
|
-
$_CONFIG = Hash.new
|
2
|
-
###################################################################
|
3
|
-
# SYSTEM CONFIGURATION #
|
4
|
-
###################################################################
|
5
|
-
$_CONFIG['Print Log'] = true
|
6
|
-
$_CONFIG['Wait Time'] = 30
|
7
|
-
$_CONFIG['DeviceName'] = 'ios'
|
8
|
-
|
9
|
-
###################################################################
|
10
|
-
# DEVICE CONFIGURATION #
|
11
|
-
###################################################################
|
12
|
-
IOS_APP_PATH = File.join(File.dirname(__FILE__), '../../apps/TestApp/build/release-iphonesimulator/TestApp.app')
|
13
|
-
ANDROID_APP_PATH = File.join(File.dirname(__FILE__), '../../apps/selendroid-test-app.apk')
|
14
|
-
def capabilities_ios
|
15
|
-
{
|
16
|
-
'platformName' => 'ios',
|
17
|
-
'deviceName' => 'iPad Air',
|
18
|
-
'platformVersion' => '8.3',
|
19
|
-
'app' => IOS_APP_PATH
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
def capabilities_android
|
24
|
-
{
|
25
|
-
'platformName' => 'android',
|
26
|
-
'deviceName' => 'emulator-5554',
|
27
|
-
'fullReset' => 'fullReset',
|
28
|
-
'noReset' => 'true',
|
29
|
-
'platformVersion' => '4.4.2',
|
30
|
-
'app' => ANDROID_APP_PATH
|
31
|
-
}
|
32
|
-
end
|
33
|
-
###################################################################
|
34
|
-
# SERVER CONFIGURATION #
|
35
|
-
###################################################################
|
36
|
-
def server_url
|
37
|
-
"http://127.0.0.1:4723/wd/hub"
|
38
|
-
end
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
1
|
+
$_CONFIG = Hash.new
|
2
|
+
###################################################################
|
3
|
+
# SYSTEM CONFIGURATION #
|
4
|
+
###################################################################
|
5
|
+
$_CONFIG['Print Log'] = true
|
6
|
+
$_CONFIG['Wait Time'] = 30
|
7
|
+
$_CONFIG['DeviceName'] = 'ios'
|
8
|
+
|
9
|
+
###################################################################
|
10
|
+
# DEVICE CONFIGURATION #
|
11
|
+
###################################################################
|
12
|
+
IOS_APP_PATH = File.join(File.dirname(__FILE__), '../../apps/TestApp/build/release-iphonesimulator/TestApp.app')
|
13
|
+
ANDROID_APP_PATH = File.join(File.dirname(__FILE__), '../../apps/selendroid-test-app.apk')
|
14
|
+
def capabilities_ios
|
15
|
+
{
|
16
|
+
'platformName' => 'ios',
|
17
|
+
'deviceName' => 'iPad Air',
|
18
|
+
'platformVersion' => '8.3',
|
19
|
+
'app' => IOS_APP_PATH
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def capabilities_android
|
24
|
+
{
|
25
|
+
'platformName' => 'android',
|
26
|
+
'deviceName' => 'emulator-5554',
|
27
|
+
'fullReset' => 'fullReset',
|
28
|
+
'noReset' => 'true',
|
29
|
+
'platformVersion' => '4.4.2',
|
30
|
+
'app' => ANDROID_APP_PATH
|
31
|
+
}
|
32
|
+
end
|
33
|
+
###################################################################
|
34
|
+
# SERVER CONFIGURATION #
|
35
|
+
###################################################################
|
36
|
+
def server_url
|
37
|
+
"http://127.0.0.1:4723/wd/hub"
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ifd_Mobile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anh Pham
|
@@ -14,60 +14,60 @@ dependencies:
|
|
14
14
|
name: cucumber
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.0.0
|
20
|
-
- -
|
20
|
+
- - '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.3.18
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 2.0.0
|
30
|
-
- -
|
30
|
+
- - '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.3.18
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: selenium-webdriver
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 2.46.2
|
40
|
-
- -
|
40
|
+
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 2.46.2
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 2.46.2
|
50
|
-
- -
|
50
|
+
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 2.46.2
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: appium_lib
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 7.0.0
|
60
|
-
- -
|
60
|
+
- - '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 7.0.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 7.0.0
|
70
|
-
- -
|
70
|
+
- - '>='
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 7.0.0
|
73
73
|
description: Behavior driven development (BDD) approach to write automation test script
|
@@ -78,51 +78,49 @@ executables:
|
|
78
78
|
extensions: []
|
79
79
|
extra_rdoc_files: []
|
80
80
|
files:
|
81
|
-
- bin/Ifd_Mobile
|
82
|
-
- bin/generate.rb
|
83
|
-
- bin/helper.rb
|
84
|
-
- lib/Ifd_Mobile.rb
|
85
81
|
- lib/Ifd_Mobile/lib_web.rb
|
86
|
-
- lib/Ifd_Mobile/methods/IFD_Assertion.rb
|
87
82
|
- lib/Ifd_Mobile/methods/core.rb
|
83
|
+
- lib/Ifd_Mobile/methods/IFD_Assertion.rb
|
88
84
|
- lib/Ifd_Mobile/methods/lib_var.rb
|
89
85
|
- lib/Ifd_Mobile/methods/required_files.rb
|
90
86
|
- lib/Ifd_Mobile/version.rb
|
87
|
+
- lib/Ifd_Mobile.rb
|
91
88
|
- lib/LICENSE
|
92
|
-
-
|
93
|
-
-
|
89
|
+
- bin/generate.rb
|
90
|
+
- bin/helper.rb
|
91
|
+
- bin/Ifd_Mobile
|
92
|
+
- project/apps/selendroid-test-app.apk
|
93
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/Default-568h@2x.png
|
94
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/InfoPlist.strings
|
95
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/Localizable.strings
|
96
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/objects-8.0+.nib
|
97
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/objects.nib
|
98
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/runtime.nib
|
99
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/objects-8.0+.nib
|
100
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/objects.nib
|
101
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/runtime.nib
|
102
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/Info.plist
|
103
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/PkgInfo
|
104
|
+
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/TestApp
|
94
105
|
- project/apps/TestApp/Default-568h@2x.png
|
106
|
+
- project/apps/TestApp/Test App 2/en.lproj/InfoPlist.strings
|
107
|
+
- project/apps/TestApp/Test App 2/en.lproj/Localizable.strings
|
108
|
+
- project/apps/TestApp/Test App 2/en.lproj/MyViewControllerViewController.xib
|
95
109
|
- project/apps/TestApp/Test App 2/GestureTestViewController.h
|
96
110
|
- project/apps/TestApp/Test App 2/GestureTestViewController.m
|
97
111
|
- project/apps/TestApp/Test App 2/GestureTestViewController.xib
|
112
|
+
- project/apps/TestApp/Test App 2/main.m
|
98
113
|
- project/apps/TestApp/Test App 2/MyViewControllerViewController.h
|
99
114
|
- project/apps/TestApp/Test App 2/MyViewControllerViewController.m
|
100
115
|
- project/apps/TestApp/Test App 2/TA2AppDelegate.h
|
101
116
|
- project/apps/TestApp/Test App 2/TA2AppDelegate.m
|
102
117
|
- project/apps/TestApp/Test App 2/TestApp-Info.plist
|
103
118
|
- project/apps/TestApp/Test App 2/TestApp-Prefix.pch
|
104
|
-
- project/apps/TestApp/Test App 2/en.lproj/InfoPlist.strings
|
105
|
-
- project/apps/TestApp/Test App 2/en.lproj/Localizable.strings
|
106
|
-
- project/apps/TestApp/Test App 2/en.lproj/MyViewControllerViewController.xib
|
107
|
-
- project/apps/TestApp/Test App 2/main.m
|
108
119
|
- project/apps/TestApp/TestApp.xcodeproj/project.pbxproj
|
109
120
|
- project/apps/TestApp/TestApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
110
121
|
- project/apps/TestApp/TestApp.xcodeproj/project.xcworkspace/xcuserdata/anhpham.xcuserdatad/UserInterfaceState.xcuserstate
|
111
122
|
- project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/TestApp.xcscheme
|
112
123
|
- project/apps/TestApp/TestApp.xcodeproj/xcuserdata/anhpham.xcuserdatad/xcschemes/xcschememanagement.plist
|
113
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/Default-568h@2x.png
|
114
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/objects-8.0+.nib
|
115
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/objects.nib
|
116
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/GestureTestViewController.nib/runtime.nib
|
117
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/Info.plist
|
118
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/PkgInfo
|
119
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/TestApp
|
120
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/InfoPlist.strings
|
121
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/Localizable.strings
|
122
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/objects-8.0+.nib
|
123
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/objects.nib
|
124
|
-
- project/apps/TestApp/build/release-iphonesimulator/TestApp.app/en.lproj/MyViewControllerViewController.nib/runtime.nib
|
125
|
-
- project/apps/selendroid-test-app.apk
|
126
124
|
- project/features/android/Android_test1.feature
|
127
125
|
- project/features/android/Android_test2.feature
|
128
126
|
- project/features/iOS/iOS_test.feature
|
@@ -133,6 +131,8 @@ files:
|
|
133
131
|
- project/features/support/env.rb
|
134
132
|
- project/features/support/hooks.rb
|
135
133
|
- project/features/support/project_env.rb
|
134
|
+
- project/Gemfile
|
135
|
+
- project/Gemfile.lock
|
136
136
|
homepage: https://rubygems.org/gems/ifd_mobile
|
137
137
|
licenses:
|
138
138
|
- MIT
|
@@ -143,17 +143,17 @@ require_paths:
|
|
143
143
|
- lib
|
144
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
|
-
- -
|
146
|
+
- - '>='
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: 1.9.3
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- -
|
151
|
+
- - '>='
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.0.14.1
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: SELENIUM WEBDRIVER WITH RUBY & CUCUMBER
|