Top Level Namespace
Defined Under Namespace
Modules: CS
Classes: ElementFoundError, ElementNotFoundError, TouchElementError, UnexpectedPageError
Constant Summary
collapse
- FeatureMemory =
Struct.new(:feature, :invocation).new
Instance Method Summary
collapse
Instance Method Details
#device? ⇒ Boolean
67
68
69
70
71
72
73
|
# File 'lib/skeleton/features/ios/support/01_launch.rb', line 67
def device?
uuids = `xcrun simctl list`
return false if uuids.include? ENV['DEVICE_TARGET']
return true
end
|
#reinstall_app ⇒ Object
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/skeleton/features/ios/support/01_launch.rb', line 75
def reinstall_app
if device?
system "echo 'Installing the app...'"
success = system "ios-deploy -r -b #{ENV['APP_BUNDLE_PATH']} -i #{ENV['DEVICE_TARGET']} -t 5 > /dev/null"
unless success
success = system "ios-deploy -b #{ENV['APP_BUNDLE_PATH']} -i #{ENV['DEVICE_TARGET']} -t 5 > /dev/null"
fail 'Error. Could not install the app.' unless
success end
system "echo 'Installed.'"
sleep(3) end
end
|