Skip to content

Commit 8000cfa

Browse files
Add _app suffix to install/remove/launch
1 parent bc81782 commit 8000cfa

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

android_tests/api.apk

1009 Bytes
Binary file not shown.

android_tests/lib/android/specs/install.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def not_installed
1616
skip # no way to launch apk after it's uninstalled/installed
1717
# blocked on: https://github.com/appium/appium/issues/2969
1818
installed
19-
remove 'io.appium.android.apis'
19+
remove_app 'io.appium.android.apis'
2020
not_installed
21-
install caps[:app]
21+
install_app caps[:app]
2222
installed
23-
launch
23+
launch_app
2424
end
2525
end

lib/appium_lib/device/device.rb

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Device
88
post: {
99
open_notifications: 'session/:session_id/appium/device/open_notifications',
1010
shake: 'session/:session_id/appium/device/shake',
11-
launch: 'session/:session_id/appium/app/launch',
11+
launch_app: 'session/:session_id/appium/app/launch',
1212
close_app: 'session/:session_id/appium/app/close',
1313
reset: 'session/:session_id/appium/app/reset',
1414
toggle_airplane_mode: 'session/:session_id/appium/device/toggle_airplane_mode',
@@ -33,7 +33,7 @@ module Device
3333

3434
# @!method current_activity
3535

36-
# @!method launch
36+
# @!method launch_app
3737
# Start the simulator and applicaton configured with desired capabilities
3838

3939
# @!method reset
@@ -128,15 +128,15 @@ def lock(duration)
128128
end
129129
end
130130

131-
add_endpoint_method(:install, 'session/:session_id/appium/device/install_app') do
132-
def install(path)
133-
execute :install, {}, :appPath => path
131+
add_endpoint_method(:install_app, 'session/:session_id/appium/device/install_app') do
132+
def install_app(path)
133+
execute :install_app, {}, :appPath => path
134134
end
135135
end
136136

137-
add_endpoint_method(:remove, 'session/:session_id/appium/device/remove_app') do
138-
def remove(id)
139-
execute :remove, {}, :appId => id
137+
add_endpoint_method(:remove_app, 'session/:session_id/appium/device/remove_app') do
138+
def remove_app(id)
139+
execute :remove_app, {}, :appId => id
140140
end
141141
end
142142

0 commit comments

Comments
 (0)