calabash-cucumber 0.18.2 → 0.19.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/calabash-ios +0 -16
- data/bin/calabash-ios-build.rb +0 -86
- data/bin/calabash-ios-helpers.rb +0 -65
- data/bin/calabash-ios-setup.rb +5 -119
- data/bin/calabash-ios-sim.rb +0 -37
- data/bin/frank-calabash +0 -1
- data/doc/calabash-ios-help.txt +0 -8
- data/dylibs/libCalabashDyn.dylib +0 -0
- data/dylibs/libCalabashDynSim.dylib +0 -0
- data/features-skeleton/support/01_launch.rb +3 -4
- data/features/step_definitions/calabash_steps.rb +1 -7
- data/lib/calabash-cucumber.rb +1 -2
- data/lib/calabash-cucumber/actions/instruments_actions.rb +2 -3
- data/lib/calabash-cucumber/core.rb +97 -101
- data/lib/calabash-cucumber/device.rb +5 -118
- data/lib/calabash-cucumber/environment.rb +109 -5
- data/lib/calabash-cucumber/environment_helpers.rb +4 -66
- data/lib/calabash-cucumber/http/http.rb +114 -0
- data/lib/calabash-cucumber/http_helpers.rb +3 -1
- data/lib/calabash-cucumber/ipad_1x_2x.rb +5 -7
- data/lib/calabash-cucumber/keyboard_helpers.rb +0 -44
- data/lib/calabash-cucumber/launcher.rb +425 -808
- data/lib/calabash-cucumber/logging.rb +2 -74
- data/lib/calabash-cucumber/operations.rb +0 -2
- data/lib/calabash-cucumber/rotation_helpers.rb +2 -82
- data/lib/calabash-cucumber/status_bar_helpers.rb +2 -8
- data/lib/calabash-cucumber/store/preferences.rb +2 -1
- data/lib/calabash-cucumber/uia.rb +4 -9
- data/lib/calabash-cucumber/version.rb +2 -2
- data/lib/calabash-cucumber/wait_helpers.rb +0 -2
- data/staticlib/calabash.framework.zip +0 -0
- data/staticlib/libFrankCalabash.a +0 -0
- metadata +13 -143
- data/lib/calabash-cucumber/actions/playback_actions.rb +0 -109
- data/lib/calabash-cucumber/deprecated.rb +0 -34
- data/lib/calabash-cucumber/launch/simulator_helper.rb +0 -62
- data/lib/calabash-cucumber/launch/simulator_launcher.rb +0 -617
- data/lib/calabash-cucumber/playback_helpers.rb +0 -225
- data/lib/calabash-cucumber/resources/cell_swipe_ios4_ipad.base64 +0 -51
- data/lib/calabash-cucumber/resources/cell_swipe_ios4_iphone.base64 +0 -51
- data/lib/calabash-cucumber/resources/cell_swipe_ios5_ipad.base64 +0 -74
- data/lib/calabash-cucumber/resources/cell_swipe_ios5_iphone.base64 +0 -74
- data/lib/calabash-cucumber/resources/double_tap_ios5_ipad.base64 +0 -15
- data/lib/calabash-cucumber/resources/double_tap_ios5_iphone.base64 +0 -15
- data/lib/calabash-cucumber/resources/double_tap_ios6_ipad.base64 +0 -22
- data/lib/calabash-cucumber/resources/double_tap_ios6_iphone.base64 +0 -22
- data/lib/calabash-cucumber/resources/pan_ios5_ipad.base64 +0 -199
- data/lib/calabash-cucumber/resources/pan_ios5_iphone.base64 +0 -199
- data/lib/calabash-cucumber/resources/pan_ios6_ipad.base64 +0 -206
- data/lib/calabash-cucumber/resources/pan_ios6_iphone.base64 +0 -206
- data/lib/calabash-cucumber/resources/pinch_in_ios4_ipad.base64 +0 -104
- data/lib/calabash-cucumber/resources/pinch_in_ios4_iphone.base64 +0 -104
- data/lib/calabash-cucumber/resources/pinch_in_ios5_ipad.base64 +0 -144
- data/lib/calabash-cucumber/resources/pinch_in_ios5_iphone.base64 +0 -144
- data/lib/calabash-cucumber/resources/pinch_in_ios6_ipad.base64 +0 -70
- data/lib/calabash-cucumber/resources/pinch_in_ios6_iphone.base64 +0 -70
- data/lib/calabash-cucumber/resources/pinch_out_ios5_ipad.base64 +0 -207
- data/lib/calabash-cucumber/resources/pinch_out_ios5_iphone.base64 +0 -207
- data/lib/calabash-cucumber/resources/pinch_out_ios6_ipad.base64 +0 -96
- data/lib/calabash-cucumber/resources/pinch_out_ios6_iphone.base64 +0 -96
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_down_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_left_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_right_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_left_home_up_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_down_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_left_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_right_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios4_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios4_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios5_ipad.base64 +0 -2
- data/lib/calabash-cucumber/resources/rotate_right_home_up_ios5_iphone.base64 +0 -2
- data/lib/calabash-cucumber/resources/swipe_down_ios5_ipad.base64 +0 -18
- data/lib/calabash-cucumber/resources/swipe_down_ios5_iphone.base64 +0 -31
- data/lib/calabash-cucumber/resources/swipe_down_ios6_ipad.base64 +0 -25
- data/lib/calabash-cucumber/resources/swipe_down_ios6_iphone.base64 +0 -25
- data/lib/calabash-cucumber/resources/swipe_left_hard_ios4_ipad.base64 +0 -15
- data/lib/calabash-cucumber/resources/swipe_left_hard_ios4_iphone.base64 +0 -15
- data/lib/calabash-cucumber/resources/swipe_left_ios4_ipad.base64 +0 -18
- data/lib/calabash-cucumber/resources/swipe_left_ios4_iphone.base64 +0 -18
- data/lib/calabash-cucumber/resources/swipe_left_ios5_ipad.base64 +0 -17
- data/lib/calabash-cucumber/resources/swipe_left_ios5_iphone.base64 +0 -34
- data/lib/calabash-cucumber/resources/swipe_left_ios6_ipad.base64 +0 -28
- data/lib/calabash-cucumber/resources/swipe_left_ios6_iphone.base64 +0 -28
- data/lib/calabash-cucumber/resources/swipe_right_hard_ios4_ipad.base64 +0 -17
- data/lib/calabash-cucumber/resources/swipe_right_hard_ios4_iphone.base64 +0 -17
- data/lib/calabash-cucumber/resources/swipe_right_ios4_ipad.base64 +0 -13
- data/lib/calabash-cucumber/resources/swipe_right_ios4_iphone.base64 +0 -13
- data/lib/calabash-cucumber/resources/swipe_right_ios5_ipad.base64 +0 -17
- data/lib/calabash-cucumber/resources/swipe_right_ios5_iphone.base64 +0 -17
- data/lib/calabash-cucumber/resources/swipe_right_ios6_ipad.base64 +0 -25
- data/lib/calabash-cucumber/resources/swipe_right_ios6_iphone.base64 +0 -25
- data/lib/calabash-cucumber/resources/swipe_up_ios5_ipad.base64 +0 -34
- data/lib/calabash-cucumber/resources/swipe_up_ios5_iphone.base64 +0 -28
- data/lib/calabash-cucumber/resources/swipe_up_ios6_ipad.base64 +0 -25
- data/lib/calabash-cucumber/resources/swipe_up_ios6_iphone.base64 +0 -25
- data/lib/calabash-cucumber/resources/touch_done_ios4_ipad.base64 +0 -7
- data/lib/calabash-cucumber/resources/touch_done_ios4_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_done_ios5_ipad.base64 +0 -7
- data/lib/calabash-cucumber/resources/touch_done_ios5_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_hold_ios5_ipad.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_hold_ios5_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_hold_ios6_ipad.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_hold_ios6_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios4_ipad.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios4_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios5_ipad.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios5_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios7_ipad.base64 +0 -9
- data/lib/calabash-cucumber/resources/touch_ios7_iphone.base64 +0 -9
- data/lib/calabash-cucumber/resources/wheel_down_ios4_ipad.base64 +0 -159
- data/lib/calabash-cucumber/resources/wheel_down_ios4_iphone.base64 +0 -159
- data/lib/calabash-cucumber/resources/wheel_down_ios5_ipad.base64 +0 -156
- data/lib/calabash-cucumber/resources/wheel_down_ios5_iphone.base64 +0 -156
- data/lib/calabash-cucumber/resources/wheel_up_ios4_ipad.base64 +0 -166
- data/lib/calabash-cucumber/resources/wheel_up_ios4_iphone.base64 +0 -166
- data/lib/calabash-cucumber/resources/wheel_up_ios5_ipad.base64 +0 -156
- data/lib/calabash-cucumber/resources/wheel_up_ios5_iphone.base64 +0 -156
- data/lib/calabash-cucumber/utils/logging.rb +0 -111
- data/lib/calabash-cucumber/utils/plist_buddy.rb +0 -45
- data/lib/calabash-cucumber/utils/simulator_accessibility.rb +0 -334
- data/lib/calabash-cucumber/utils/xctools.rb +0 -101
- data/scripts/.irbrc +0 -64
- data/scripts/launch.rb +0 -48
@@ -4,36 +4,6 @@ module Calabash
|
|
4
4
|
require "run_loop"
|
5
5
|
require "calabash-cucumber/dot_dir"
|
6
6
|
|
7
|
-
# These methods are not part of the API.
|
8
|
-
#
|
9
|
-
# They may change at any time.
|
10
|
-
|
11
|
-
# !@visibility private
|
12
|
-
# blue
|
13
|
-
def self.log_warn(msg)
|
14
|
-
puts self.blue(" WARN: #{msg}") if msg
|
15
|
-
end
|
16
|
-
|
17
|
-
# !@visibility private
|
18
|
-
# magenta
|
19
|
-
def self.log_debug(msg)
|
20
|
-
if RunLoop::Environment.debug?
|
21
|
-
puts self.magenta("DEBUG: #{msg}") if msg
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
# !@visibility private
|
26
|
-
# green
|
27
|
-
def self.log_info(msg)
|
28
|
-
puts self.green(" INFO: #{msg}") if msg
|
29
|
-
end
|
30
|
-
|
31
|
-
# !@visibility private
|
32
|
-
# red
|
33
|
-
def self.log_error(msg)
|
34
|
-
puts self.red("ERROR: #{msg}") if msg
|
35
|
-
end
|
36
|
-
|
37
7
|
# !@visibility private
|
38
8
|
def self.log_to_file(message)
|
39
9
|
timestamp = self.timestamp
|
@@ -46,7 +16,7 @@ module Calabash
|
|
46
16
|
end
|
47
17
|
rescue => e
|
48
18
|
message =
|
49
|
-
%Q{Could not write:
|
19
|
+
%Q{Could not write:
|
50
20
|
|
51
21
|
#{message}
|
52
22
|
|
@@ -54,53 +24,12 @@ to calabash.log because:
|
|
54
24
|
|
55
25
|
#{e}
|
56
26
|
}
|
57
|
-
|
27
|
+
RunLoop.log_debug(message)
|
58
28
|
end
|
59
29
|
end
|
60
30
|
|
61
31
|
private
|
62
32
|
|
63
|
-
# @!visibility private
|
64
|
-
def self.windows_env?
|
65
|
-
RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
|
66
|
-
end
|
67
|
-
|
68
|
-
# @!visibility private
|
69
|
-
def self.colorize(string, color)
|
70
|
-
if self.windows_env?
|
71
|
-
string
|
72
|
-
elsif RunLoop::Environment.xtc?
|
73
|
-
string
|
74
|
-
else
|
75
|
-
"\033[#{color}m#{string}\033[0m"
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# @!visibility private
|
80
|
-
def self.red(string)
|
81
|
-
colorize(string, 31)
|
82
|
-
end
|
83
|
-
|
84
|
-
# @!visibility private
|
85
|
-
def self.blue(string)
|
86
|
-
colorize(string, 34)
|
87
|
-
end
|
88
|
-
|
89
|
-
# @!visibility private
|
90
|
-
def self.magenta(string)
|
91
|
-
colorize(string, 35)
|
92
|
-
end
|
93
|
-
|
94
|
-
# @!visibility private
|
95
|
-
def self.cyan(string)
|
96
|
-
colorize(string, 36)
|
97
|
-
end
|
98
|
-
|
99
|
-
# @!visibility private
|
100
|
-
def self.green(string)
|
101
|
-
colorize(string, 32)
|
102
|
-
end
|
103
|
-
|
104
33
|
# @!visibility private
|
105
34
|
def self.timestamp
|
106
35
|
Time.now.strftime("%Y-%m-%d_%H-%M-%S")
|
@@ -123,4 +52,3 @@ to calabash.log because:
|
|
123
52
|
end
|
124
53
|
end
|
125
54
|
end
|
126
|
-
|
@@ -10,7 +10,6 @@ require 'set'
|
|
10
10
|
require 'calabash-cucumber/version'
|
11
11
|
require 'calabash-cucumber/date_picker'
|
12
12
|
require 'calabash-cucumber/ipad_1x_2x'
|
13
|
-
require 'calabash-cucumber/utils/logging'
|
14
13
|
|
15
14
|
module Calabash
|
16
15
|
module Cucumber
|
@@ -18,7 +17,6 @@ module Calabash
|
|
18
17
|
# A module for wrapping the public APIs of this gem.
|
19
18
|
module Operations
|
20
19
|
|
21
|
-
include Calabash::Cucumber::Logging
|
22
20
|
include Calabash::Cucumber::Core
|
23
21
|
include Calabash::Cucumber::TestsHelpers
|
24
22
|
include Calabash::Cucumber::WaitHelpers
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'calabash-cucumber/utils/logging'
|
2
|
-
|
3
1
|
module Calabash
|
4
2
|
module Cucumber
|
5
3
|
|
@@ -7,14 +5,7 @@ module Calabash
|
|
7
5
|
# orientation.
|
8
6
|
module RotationHelpers
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
# @!visibility private
|
13
|
-
# @deprecated 0.16.1
|
14
|
-
def rotation_candidates
|
15
|
-
%w(rotate_left_home_down rotate_left_home_left rotate_left_home_right rotate_left_home_up
|
16
|
-
rotate_right_home_down rotate_right_home_left rotate_right_home_right rotate_right_home_up)
|
17
|
-
end
|
8
|
+
require "run_loop"
|
18
9
|
|
19
10
|
# Rotates the home button to a position relative to the status bar.
|
20
11
|
#
|
@@ -98,7 +89,7 @@ module Calabash
|
|
98
89
|
|
99
90
|
recalibrate_after_rotation
|
100
91
|
|
101
|
-
ap result if
|
92
|
+
ap result if RunLoop::Environment.debug?
|
102
93
|
|
103
94
|
status_bar_orientation
|
104
95
|
end
|
@@ -136,33 +127,6 @@ module Calabash
|
|
136
127
|
:landscape_right => 4
|
137
128
|
}.freeze
|
138
129
|
|
139
|
-
# @! visibility private
|
140
|
-
# @deprecated 0.16.1
|
141
|
-
def rotate_home_button_to_position_with_playback(home_button_position)
|
142
|
-
|
143
|
-
rotation_candidates.each do |candidate|
|
144
|
-
if debug_logging?
|
145
|
-
calabash_info "Trying to rotate Home Button to '#{home_button_position}' using '#{candidate}'"
|
146
|
-
end
|
147
|
-
|
148
|
-
playback(candidate)
|
149
|
-
sleep(0.4)
|
150
|
-
recalibrate_after_rotation
|
151
|
-
|
152
|
-
current_orientation = status_bar_orientation.to_sym
|
153
|
-
if current_orientation == home_button_position
|
154
|
-
return current_orientation
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
if debug_logging?
|
159
|
-
calabash_warn %Q{
|
160
|
-
Could not rotate Home Button to '#{home_button_position}'."
|
161
|
-
Is rotation enabled for this controller?}
|
162
|
-
end
|
163
|
-
:down
|
164
|
-
end
|
165
|
-
|
166
130
|
# @! visibility private
|
167
131
|
def rotate_to_uia_orientation(orientation)
|
168
132
|
case orientation
|
@@ -218,50 +182,6 @@ Is rotation enabled for this controller?}
|
|
218
182
|
end
|
219
183
|
key
|
220
184
|
end
|
221
|
-
|
222
|
-
# @! visibility private
|
223
|
-
# @deprecated 0.16.1
|
224
|
-
def recording_name(direction, current_orientation)
|
225
|
-
recording_name = nil
|
226
|
-
case direction
|
227
|
-
when :left then
|
228
|
-
if current_orientation == :down
|
229
|
-
recording_name = 'left_home_down'
|
230
|
-
elsif current_orientation == :right
|
231
|
-
recording_name = 'left_home_right'
|
232
|
-
elsif current_orientation == :left
|
233
|
-
recording_name = 'left_home_left'
|
234
|
-
elsif current_orientation == :up
|
235
|
-
recording_name = 'left_home_up'
|
236
|
-
end
|
237
|
-
when :right then
|
238
|
-
if current_orientation == :down
|
239
|
-
recording_name = 'right_home_down'
|
240
|
-
elsif current_orientation == :left
|
241
|
-
recording_name = 'right_home_left'
|
242
|
-
elsif current_orientation == :right
|
243
|
-
recording_name = 'right_home_right'
|
244
|
-
elsif current_orientation == :up
|
245
|
-
recording_name = 'right_home_up'
|
246
|
-
end
|
247
|
-
else
|
248
|
-
raise ArgumentError,
|
249
|
-
"Expected '#{direction}' to be 'left' or 'right'"
|
250
|
-
end
|
251
|
-
"rotate_#{recording_name}"
|
252
|
-
end
|
253
|
-
|
254
|
-
# @! visibility private
|
255
|
-
# @deprecated 0.16.1
|
256
|
-
def rotate_with_playback(direction, current_orientation)
|
257
|
-
name = recording_name(direction, current_orientation)
|
258
|
-
|
259
|
-
if debug_logging?
|
260
|
-
puts "Could not rotate device '#{direction}' given '#{current_orientation}'; nothing to do."
|
261
|
-
end
|
262
|
-
|
263
|
-
playback(name)
|
264
|
-
end
|
265
185
|
end
|
266
186
|
end
|
267
187
|
end
|
@@ -1,13 +1,9 @@
|
|
1
|
-
require 'calabash-cucumber/utils/logging'
|
2
|
-
|
3
1
|
module Calabash
|
4
2
|
module Cucumber
|
5
3
|
|
6
4
|
# Contains methods for interacting with the status bar.
|
7
5
|
module StatusBarHelpers
|
8
6
|
|
9
|
-
include Calabash::Cucumber::Logging
|
10
|
-
|
11
7
|
# Returns the device orientation as reported by `[[UIDevice currentDevice] orientation]`.
|
12
8
|
#
|
13
9
|
# @note This method is not used internally by the gem. It is provided
|
@@ -28,10 +24,8 @@ module Calabash
|
|
28
24
|
res = map(nil, :orientation, :device).first
|
29
25
|
|
30
26
|
if ['face up', 'face down'].include?(res)
|
31
|
-
if
|
32
|
-
|
33
|
-
puts "WARN found orientation '#{res}' - will rotate to force orientation to 'down'"
|
34
|
-
end
|
27
|
+
if force_down
|
28
|
+
puts "WARN found orientation '#{res}' - will rotate to force orientation to 'down'"
|
35
29
|
end
|
36
30
|
|
37
31
|
return res unless force_down
|
@@ -3,6 +3,7 @@ module Calabash
|
|
3
3
|
|
4
4
|
require "fileutils"
|
5
5
|
require "securerandom"
|
6
|
+
require "run_loop"
|
6
7
|
|
7
8
|
# Users preferences persisted across runs:
|
8
9
|
#
|
@@ -190,7 +191,7 @@ module Calabash
|
|
190
191
|
|
191
192
|
# @!visibility private
|
192
193
|
def log_defaults_reset
|
193
|
-
|
194
|
+
RunLoop.log_warn(
|
194
195
|
%q{An error occurred while accessing your user preferences.
|
195
196
|
|
196
197
|
We have reset the preferences to the default settings.
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'edn'
|
2
2
|
require 'json'
|
3
|
-
require 'calabash-cucumber/utils/logging'
|
4
3
|
|
5
4
|
module Calabash
|
6
5
|
module Cucumber
|
@@ -9,8 +8,6 @@ module Calabash
|
|
9
8
|
# Typically used to interact with System or remote views.
|
10
9
|
module UIA
|
11
10
|
|
12
|
-
include Calabash::Cucumber::Logging
|
13
|
-
|
14
11
|
# Executes raw JavaScript in the UIAutomation environment (using `eval`).
|
15
12
|
# @param {String} command the JavaScript snippet to execute
|
16
13
|
# @return {Object} the result returned by the UIA process
|
@@ -392,7 +389,7 @@ module Calabash
|
|
392
389
|
end
|
393
390
|
end
|
394
391
|
command = "#{js_cmd}.#{js_args.join('.')}"
|
395
|
-
if
|
392
|
+
if RunLoop::Environment.debug?
|
396
393
|
puts 'Sending UIA command'
|
397
394
|
puts command
|
398
395
|
end
|
@@ -404,7 +401,7 @@ module Calabash
|
|
404
401
|
# @!visibility private
|
405
402
|
def uia_handle_command(cmd, *query_args)
|
406
403
|
command = uia_serialize_command(cmd, *query_args)
|
407
|
-
if
|
404
|
+
if RunLoop::Environment.debug?
|
408
405
|
puts 'Sending UIA command'
|
409
406
|
puts command
|
410
407
|
end
|
@@ -447,9 +444,7 @@ module Calabash
|
|
447
444
|
# TODO formally deprecate send_uia_command with _deprecated function
|
448
445
|
#cmd = opts[:command]
|
449
446
|
#new_opts = cmd.select{|x| x != :command}
|
450
|
-
#
|
451
|
-
# "use 'uia(#{cmd}, #{new_opts})' instead",
|
452
|
-
# :warn)
|
447
|
+
#RunLoop.deprecated("0.9.163", "Use 'uia(#{cmd}, #{new_opts})' instead")
|
453
448
|
|
454
449
|
uia(opts[:command], opts)
|
455
450
|
end
|
@@ -466,7 +461,7 @@ module Calabash
|
|
466
461
|
end
|
467
462
|
|
468
463
|
def uia_result(s)
|
469
|
-
if
|
464
|
+
if RunLoop::Environment.debug?
|
470
465
|
puts 'Result'
|
471
466
|
p s
|
472
467
|
end
|
@@ -3,10 +3,10 @@ module Calabash
|
|
3
3
|
|
4
4
|
# @!visibility public
|
5
5
|
# The Calabash iOS gem version.
|
6
|
-
VERSION = "0.
|
6
|
+
VERSION = "0.19.0.pre1"
|
7
7
|
|
8
8
|
# @!visibility public
|
9
9
|
# The minimum required version of the Calabash embedded server.
|
10
|
-
MIN_SERVER_VERSION = "0.
|
10
|
+
MIN_SERVER_VERSION = "0.19.0"
|
11
11
|
end
|
12
12
|
end
|
@@ -1,14 +1,12 @@
|
|
1
1
|
require 'calabash-cucumber/core'
|
2
2
|
require 'calabash-cucumber/tests_helpers'
|
3
3
|
require 'fileutils'
|
4
|
-
require 'calabash-cucumber/utils/logging'
|
5
4
|
|
6
5
|
module Calabash
|
7
6
|
module Cucumber
|
8
7
|
|
9
8
|
# A collection of methods that help you wait for things.
|
10
9
|
module WaitHelpers
|
11
|
-
include Calabash::Cucumber::Logging
|
12
10
|
include Calabash::Cucumber::Core
|
13
11
|
include Calabash::Cucumber::TestsHelpers
|
14
12
|
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -44,20 +44,6 @@ dependencies:
|
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: sim_launcher
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.4.13
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 0.4.13
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: slowhandcuke
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,22 +116,16 @@ dependencies:
|
|
130
116
|
name: run_loop
|
131
117
|
requirement: !ruby/object:Gem::Requirement
|
132
118
|
requirements:
|
133
|
-
- -
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: 2.0.9
|
136
|
-
- - "<"
|
119
|
+
- - '='
|
137
120
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
121
|
+
version: 2.1.1.pre3
|
139
122
|
type: :runtime
|
140
123
|
prerelease: false
|
141
124
|
version_requirements: !ruby/object:Gem::Requirement
|
142
125
|
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 2.0.9
|
146
|
-
- - "<"
|
126
|
+
- - '='
|
147
127
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
128
|
+
version: 2.1.1.pre3
|
149
129
|
- !ruby/object:Gem::Dependency
|
150
130
|
name: json
|
151
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,16 +228,16 @@ dependencies:
|
|
248
228
|
name: rake
|
249
229
|
requirement: !ruby/object:Gem::Requirement
|
250
230
|
requirements:
|
251
|
-
- -
|
231
|
+
- - '='
|
252
232
|
- !ruby/object:Gem::Version
|
253
|
-
version:
|
233
|
+
version: 10.5.0
|
254
234
|
type: :development
|
255
235
|
prerelease: false
|
256
236
|
version_requirements: !ruby/object:Gem::Requirement
|
257
237
|
requirements:
|
258
|
-
- -
|
238
|
+
- - '='
|
259
239
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
240
|
+
version: 10.5.0
|
261
241
|
- !ruby/object:Gem::Dependency
|
262
242
|
name: rspec
|
263
243
|
requirement: !ruby/object:Gem::Requirement
|
@@ -388,153 +368,43 @@ files:
|
|
388
368
|
- features/step_definitions/calabash_steps.rb
|
389
369
|
- lib/calabash-cucumber.rb
|
390
370
|
- lib/calabash-cucumber/actions/instruments_actions.rb
|
391
|
-
- lib/calabash-cucumber/actions/playback_actions.rb
|
392
371
|
- lib/calabash-cucumber/calabash_steps.rb
|
393
372
|
- lib/calabash-cucumber/connection.rb
|
394
373
|
- lib/calabash-cucumber/connection_helpers.rb
|
395
374
|
- lib/calabash-cucumber/core.rb
|
396
375
|
- lib/calabash-cucumber/cucumber.rb
|
397
376
|
- lib/calabash-cucumber/date_picker.rb
|
398
|
-
- lib/calabash-cucumber/deprecated.rb
|
399
377
|
- lib/calabash-cucumber/device.rb
|
400
378
|
- lib/calabash-cucumber/dot_dir.rb
|
401
379
|
- lib/calabash-cucumber/dylibs.rb
|
402
380
|
- lib/calabash-cucumber/environment.rb
|
403
381
|
- lib/calabash-cucumber/environment_helpers.rb
|
404
382
|
- lib/calabash-cucumber/failure_helpers.rb
|
383
|
+
- lib/calabash-cucumber/http/http.rb
|
405
384
|
- lib/calabash-cucumber/http_helpers.rb
|
406
385
|
- lib/calabash-cucumber/ibase.rb
|
407
386
|
- lib/calabash-cucumber/ipad_1x_2x.rb
|
408
387
|
- lib/calabash-cucumber/keyboard_helpers.rb
|
409
388
|
- lib/calabash-cucumber/keychain_helpers.rb
|
410
|
-
- lib/calabash-cucumber/launch/simulator_helper.rb
|
411
|
-
- lib/calabash-cucumber/launch/simulator_launcher.rb
|
412
389
|
- lib/calabash-cucumber/launcher.rb
|
413
390
|
- lib/calabash-cucumber/logging.rb
|
414
391
|
- lib/calabash-cucumber/map.rb
|
415
392
|
- lib/calabash-cucumber/operations.rb
|
416
|
-
- lib/calabash-cucumber/playback_helpers.rb
|
417
393
|
- lib/calabash-cucumber/query_helpers.rb
|
418
|
-
- lib/calabash-cucumber/resources/cell_swipe_ios4_ipad.base64
|
419
|
-
- lib/calabash-cucumber/resources/cell_swipe_ios4_iphone.base64
|
420
|
-
- lib/calabash-cucumber/resources/cell_swipe_ios5_ipad.base64
|
421
|
-
- lib/calabash-cucumber/resources/cell_swipe_ios5_iphone.base64
|
422
|
-
- lib/calabash-cucumber/resources/double_tap_ios5_ipad.base64
|
423
|
-
- lib/calabash-cucumber/resources/double_tap_ios5_iphone.base64
|
424
|
-
- lib/calabash-cucumber/resources/double_tap_ios6_ipad.base64
|
425
|
-
- lib/calabash-cucumber/resources/double_tap_ios6_iphone.base64
|
426
|
-
- lib/calabash-cucumber/resources/pan_ios5_ipad.base64
|
427
|
-
- lib/calabash-cucumber/resources/pan_ios5_iphone.base64
|
428
|
-
- lib/calabash-cucumber/resources/pan_ios6_ipad.base64
|
429
|
-
- lib/calabash-cucumber/resources/pan_ios6_iphone.base64
|
430
|
-
- lib/calabash-cucumber/resources/pinch_in_ios4_ipad.base64
|
431
|
-
- lib/calabash-cucumber/resources/pinch_in_ios4_iphone.base64
|
432
|
-
- lib/calabash-cucumber/resources/pinch_in_ios5_ipad.base64
|
433
|
-
- lib/calabash-cucumber/resources/pinch_in_ios5_iphone.base64
|
434
|
-
- lib/calabash-cucumber/resources/pinch_in_ios6_ipad.base64
|
435
|
-
- lib/calabash-cucumber/resources/pinch_in_ios6_iphone.base64
|
436
|
-
- lib/calabash-cucumber/resources/pinch_out_ios5_ipad.base64
|
437
|
-
- lib/calabash-cucumber/resources/pinch_out_ios5_iphone.base64
|
438
|
-
- lib/calabash-cucumber/resources/pinch_out_ios6_ipad.base64
|
439
|
-
- lib/calabash-cucumber/resources/pinch_out_ios6_iphone.base64
|
440
|
-
- lib/calabash-cucumber/resources/rotate_left_home_down_ios4_ipad.base64
|
441
|
-
- lib/calabash-cucumber/resources/rotate_left_home_down_ios4_iphone.base64
|
442
|
-
- lib/calabash-cucumber/resources/rotate_left_home_down_ios5_ipad.base64
|
443
|
-
- lib/calabash-cucumber/resources/rotate_left_home_down_ios5_iphone.base64
|
444
|
-
- lib/calabash-cucumber/resources/rotate_left_home_left_ios4_ipad.base64
|
445
|
-
- lib/calabash-cucumber/resources/rotate_left_home_left_ios4_iphone.base64
|
446
|
-
- lib/calabash-cucumber/resources/rotate_left_home_left_ios5_ipad.base64
|
447
|
-
- lib/calabash-cucumber/resources/rotate_left_home_left_ios5_iphone.base64
|
448
|
-
- lib/calabash-cucumber/resources/rotate_left_home_right_ios4_ipad.base64
|
449
|
-
- lib/calabash-cucumber/resources/rotate_left_home_right_ios4_iphone.base64
|
450
|
-
- lib/calabash-cucumber/resources/rotate_left_home_right_ios5_ipad.base64
|
451
|
-
- lib/calabash-cucumber/resources/rotate_left_home_right_ios5_iphone.base64
|
452
|
-
- lib/calabash-cucumber/resources/rotate_left_home_up_ios4_ipad.base64
|
453
|
-
- lib/calabash-cucumber/resources/rotate_left_home_up_ios4_iphone.base64
|
454
|
-
- lib/calabash-cucumber/resources/rotate_left_home_up_ios5_ipad.base64
|
455
|
-
- lib/calabash-cucumber/resources/rotate_left_home_up_ios5_iphone.base64
|
456
|
-
- lib/calabash-cucumber/resources/rotate_right_home_down_ios4_ipad.base64
|
457
|
-
- lib/calabash-cucumber/resources/rotate_right_home_down_ios4_iphone.base64
|
458
|
-
- lib/calabash-cucumber/resources/rotate_right_home_down_ios5_ipad.base64
|
459
|
-
- lib/calabash-cucumber/resources/rotate_right_home_down_ios5_iphone.base64
|
460
|
-
- lib/calabash-cucumber/resources/rotate_right_home_left_ios4_ipad.base64
|
461
|
-
- lib/calabash-cucumber/resources/rotate_right_home_left_ios4_iphone.base64
|
462
|
-
- lib/calabash-cucumber/resources/rotate_right_home_left_ios5_ipad.base64
|
463
|
-
- lib/calabash-cucumber/resources/rotate_right_home_left_ios5_iphone.base64
|
464
|
-
- lib/calabash-cucumber/resources/rotate_right_home_right_ios4_ipad.base64
|
465
|
-
- lib/calabash-cucumber/resources/rotate_right_home_right_ios4_iphone.base64
|
466
|
-
- lib/calabash-cucumber/resources/rotate_right_home_right_ios5_ipad.base64
|
467
|
-
- lib/calabash-cucumber/resources/rotate_right_home_right_ios5_iphone.base64
|
468
|
-
- lib/calabash-cucumber/resources/rotate_right_home_up_ios4_ipad.base64
|
469
|
-
- lib/calabash-cucumber/resources/rotate_right_home_up_ios4_iphone.base64
|
470
|
-
- lib/calabash-cucumber/resources/rotate_right_home_up_ios5_ipad.base64
|
471
|
-
- lib/calabash-cucumber/resources/rotate_right_home_up_ios5_iphone.base64
|
472
|
-
- lib/calabash-cucumber/resources/swipe_down_ios5_ipad.base64
|
473
|
-
- lib/calabash-cucumber/resources/swipe_down_ios5_iphone.base64
|
474
|
-
- lib/calabash-cucumber/resources/swipe_down_ios6_ipad.base64
|
475
|
-
- lib/calabash-cucumber/resources/swipe_down_ios6_iphone.base64
|
476
|
-
- lib/calabash-cucumber/resources/swipe_left_hard_ios4_ipad.base64
|
477
|
-
- lib/calabash-cucumber/resources/swipe_left_hard_ios4_iphone.base64
|
478
|
-
- lib/calabash-cucumber/resources/swipe_left_ios4_ipad.base64
|
479
|
-
- lib/calabash-cucumber/resources/swipe_left_ios4_iphone.base64
|
480
|
-
- lib/calabash-cucumber/resources/swipe_left_ios5_ipad.base64
|
481
|
-
- lib/calabash-cucumber/resources/swipe_left_ios5_iphone.base64
|
482
|
-
- lib/calabash-cucumber/resources/swipe_left_ios6_ipad.base64
|
483
|
-
- lib/calabash-cucumber/resources/swipe_left_ios6_iphone.base64
|
484
|
-
- lib/calabash-cucumber/resources/swipe_right_hard_ios4_ipad.base64
|
485
|
-
- lib/calabash-cucumber/resources/swipe_right_hard_ios4_iphone.base64
|
486
|
-
- lib/calabash-cucumber/resources/swipe_right_ios4_ipad.base64
|
487
|
-
- lib/calabash-cucumber/resources/swipe_right_ios4_iphone.base64
|
488
|
-
- lib/calabash-cucumber/resources/swipe_right_ios5_ipad.base64
|
489
|
-
- lib/calabash-cucumber/resources/swipe_right_ios5_iphone.base64
|
490
|
-
- lib/calabash-cucumber/resources/swipe_right_ios6_ipad.base64
|
491
|
-
- lib/calabash-cucumber/resources/swipe_right_ios6_iphone.base64
|
492
|
-
- lib/calabash-cucumber/resources/swipe_up_ios5_ipad.base64
|
493
|
-
- lib/calabash-cucumber/resources/swipe_up_ios5_iphone.base64
|
494
|
-
- lib/calabash-cucumber/resources/swipe_up_ios6_ipad.base64
|
495
|
-
- lib/calabash-cucumber/resources/swipe_up_ios6_iphone.base64
|
496
|
-
- lib/calabash-cucumber/resources/touch_done_ios4_ipad.base64
|
497
|
-
- lib/calabash-cucumber/resources/touch_done_ios4_iphone.base64
|
498
|
-
- lib/calabash-cucumber/resources/touch_done_ios5_ipad.base64
|
499
|
-
- lib/calabash-cucumber/resources/touch_done_ios5_iphone.base64
|
500
|
-
- lib/calabash-cucumber/resources/touch_hold_ios5_ipad.base64
|
501
|
-
- lib/calabash-cucumber/resources/touch_hold_ios5_iphone.base64
|
502
|
-
- lib/calabash-cucumber/resources/touch_hold_ios6_ipad.base64
|
503
|
-
- lib/calabash-cucumber/resources/touch_hold_ios6_iphone.base64
|
504
|
-
- lib/calabash-cucumber/resources/touch_ios4_ipad.base64
|
505
|
-
- lib/calabash-cucumber/resources/touch_ios4_iphone.base64
|
506
|
-
- lib/calabash-cucumber/resources/touch_ios5_ipad.base64
|
507
|
-
- lib/calabash-cucumber/resources/touch_ios5_iphone.base64
|
508
|
-
- lib/calabash-cucumber/resources/touch_ios7_ipad.base64
|
509
|
-
- lib/calabash-cucumber/resources/touch_ios7_iphone.base64
|
510
|
-
- lib/calabash-cucumber/resources/wheel_down_ios4_ipad.base64
|
511
|
-
- lib/calabash-cucumber/resources/wheel_down_ios4_iphone.base64
|
512
|
-
- lib/calabash-cucumber/resources/wheel_down_ios5_ipad.base64
|
513
|
-
- lib/calabash-cucumber/resources/wheel_down_ios5_iphone.base64
|
514
|
-
- lib/calabash-cucumber/resources/wheel_up_ios4_ipad.base64
|
515
|
-
- lib/calabash-cucumber/resources/wheel_up_ios4_iphone.base64
|
516
|
-
- lib/calabash-cucumber/resources/wheel_up_ios5_ipad.base64
|
517
|
-
- lib/calabash-cucumber/resources/wheel_up_ios5_iphone.base64
|
518
394
|
- lib/calabash-cucumber/rotation_helpers.rb
|
519
395
|
- lib/calabash-cucumber/status_bar_helpers.rb
|
520
396
|
- lib/calabash-cucumber/store/preferences.rb
|
521
397
|
- lib/calabash-cucumber/tests_helpers.rb
|
522
398
|
- lib/calabash-cucumber/uia.rb
|
523
399
|
- lib/calabash-cucumber/usage_tracker.rb
|
524
|
-
- lib/calabash-cucumber/utils/logging.rb
|
525
|
-
- lib/calabash-cucumber/utils/plist_buddy.rb
|
526
|
-
- lib/calabash-cucumber/utils/simulator_accessibility.rb
|
527
|
-
- lib/calabash-cucumber/utils/xctools.rb
|
528
400
|
- lib/calabash-cucumber/version.rb
|
529
401
|
- lib/calabash-cucumber/wait_helpers.rb
|
530
402
|
- lib/calabash/formatters/html.rb
|
531
403
|
- lib/frank-calabash.rb
|
532
|
-
- scripts/.irbrc
|
533
404
|
- scripts/calabash.xcconfig.erb
|
534
405
|
- scripts/data/clients.plist
|
535
406
|
- scripts/data/com.apple.Accessibility-5.1.plist
|
536
407
|
- scripts/data/com.apple.Accessibility.plist
|
537
|
-
- scripts/launch.rb
|
538
408
|
- staticlib/calabash.framework.zip
|
539
409
|
- staticlib/libFrankCalabash.a
|
540
410
|
homepage: http://calaba.sh
|
@@ -552,9 +422,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
552
422
|
version: '2.0'
|
553
423
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
554
424
|
requirements:
|
555
|
-
- - "
|
425
|
+
- - ">"
|
556
426
|
- !ruby/object:Gem::Version
|
557
|
-
version:
|
427
|
+
version: 1.3.1
|
558
428
|
requirements: []
|
559
429
|
rubyforge_project:
|
560
430
|
rubygems_version: 2.5.2
|