Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add terminate and activate app #58

Merged
merged 6 commits into from
Feb 6, 2018
Merged

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Feb 5, 2018


ok

[HTTP] --> POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/terminate_app {"appId":"io.appium.android.apis"}
[W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/terminate_app] to [POST http://localhost:8200/wd/hub/session/328f5c81-65c3-41dd-9c8b-ad819dbf29fc/appium/device/terminate_app] with body: {"appId":"io.appium.android.apis"}
[W3C] Encountered internal error running command: Error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - undefined
    at doJwpProxy$ (/Users/kazuaki/GitHub/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:404:13)
    at tryCatch (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    at <anonymous>
[HTTP] <-- POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/terminate_app 500 49 ms - 1315
[HTTP] --> POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/activate_app {"bundleId":"io.appium.android.apis"}
[W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/activate_app] to [POST http://localhost:8200/wd/hub/session/328f5c81-65c3-41dd-9c8b-ad819dbf29fc/appium/device/activate_app] with body: {"bundleId":"io.appium.android.apis"}
[W3C] Encountered internal error running command: Error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - undefined
    at doJwpProxy$ (/Users/kazuaki/GitHub/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:404:13)
    at tryCatch (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Users/kazuaki/GitHub/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    at <anonymous>
[HTTP] <-- POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/activate_app 500 15 ms - 1315
[HTTP] --> POST /wd/hub/session/c579c9fc-32cc-49b8-9dc5-3ad46c4fe80f/appium/device/app_installed {"bundleId":"io.appium.android.apis"}
[debug] [W3

@KazuCocoa KazuCocoa changed the title [WIP]add terminate and activate app add terminate and activate app Feb 5, 2018
@@ -183,6 +183,24 @@ module Device
# @driver.activate_app("io.appium.bundle") #=> {}
#

# Get the status of an existing application on the device.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we create separate constants set in the client library for these states?

@KazuCocoa KazuCocoa merged commit b1b484d into appium:master Feb 6, 2018
@KazuCocoa KazuCocoa deleted the app_management branch February 6, 2018 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants