Skip to content

Instantly share code, notes, and snippets.

@jvillacortam
Created November 29, 2016 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvillacortam/385e97ef31b64030a3181b7f1d3b1552 to your computer and use it in GitHub Desktop.
Save jvillacortam/385e97ef31b64030a3181b7f1d3b1552 to your computer and use it in GitHub Desktop.
Appium 1.6.1 - Target API 24
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/qa/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","0184b3a5550beebd","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'com.qa.unitytest' and activity: 'com.unity3d.player.UnityPlayerActivity'
[debug] [MJSONWP] Responding to client with driver.startActivity() result: null
[HTTP] <-- POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/appium/device/start_activity 200 1630 ms - 76
[HTTP] --> GET /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/contexts {}
[debug] [MJSONWP] Calling AppiumDriver.getContexts() with args: ["2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/qa/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","0184b3a5550beebd","shell","cat","/proc/net/unix"]
[debug] [AndroidDriver] WEBVIEW_7979 mapped to pid 7979
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/qa/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","0184b3a5550beebd","shell","ps"]
[debug] [AndroidDriver] Parsed pid: 7979 pkg: com.qa.unitytest!
[debug] [AndroidDriver] from: u0_a923,7979,174,1144452,119732,ffffffff,00000000,R,com.qa.unitytest
[debug] [AndroidDriver] returning process name: com.qa.unitytest
[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.qa.unitytest"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.qa.unitytest"]
[debug] [MJSONWP] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_com.qa.unitytest"]
[HTTP] <-- GET /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/contexts 200 168 ms - 122
[HTTP] --> POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/context {"sessionId":"2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5","name":"WEBVIEW_com.qa.unitytest"}
[debug] [MJSONWP] Calling AppiumDriver.setContext() with args: ["WEBVIEW_com.qa.unitytest","2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/qa/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","0184b3a5550beebd","shell","cat","/proc/net/unix"]
[debug] [AndroidDriver] WEBVIEW_7979 mapped to pid 7979
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/qa/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","0184b3a5550beebd","shell","ps"]
[debug] [AndroidDriver] Parsed pid: 7979 pkg: com.qa.unitytest!
[debug] [AndroidDriver] from: u0_a923,7979,174,1144452,119732,ffffffff,00000000,R,com.qa.unitytest
[debug] [AndroidDriver] returning process name: com.qa.unitytest
[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.qa.unitytest"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.qa.unitytest"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.qa.unitytest'
[debug] [AndroidDriver] A port was not given, using random port: 8000
[debug] [Chromedriver] Changed state to 'starting'
[Chromedriver] Set chromedriver binary as: /Users/qa/qa-qa-tools/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver
[Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/Users/qa/qa-qa-tools/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver.*--port=8000"
[Chromedriver] No old chromedrivers seemed to exist
[Chromedriver] Spawning chromedriver with: /Users/qa/qa-qa-tools/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver --url-base=wd/hub --port=8000 --adb-port=5037
[Chromedriver] [STDOUT] Starting ChromeDriver 2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1) on port 8000
Only local connections are allowed.
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"status\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",\"name\":\"Mac OS X\",\"version\":\"10.10.5\"}}}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.qa.unitytest","androidUseRunningApp":true,"androidDeviceSerial":"0184b3a5550beebd"}}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"630c897a652b7587c8ba5cb728af4b40","status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1)"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"pageLoadStrategy":"normal","platform":"ANDROID","rotatable":false,"takesHeapSnapshot":true,"takesScreenshot":true,"version":"30.0.0.0","webStorageEnabled":true}}
[debug] [Chromedriver] Changed state to 'online'
[debug] [MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/context 200 1640 ms - 76
[HTTP] --> POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/execute {"sessionId":"2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5","args":[],"script":"success()"}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/execute] to [POST http://127.0.0.1:8000/wd/hub/session/630c897a652b7587c8ba5cb728af4b40/execute] with body: {"sessionId":"2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5","args":[],"script":"success()"}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"630c897a652b7587c8ba5cb728af4b40","status":13,"value":{"message":"unknown error: success is not defined\n (Session info: webview=30.0.0.0)\n (Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.10.5 x86_64)"}}
[JSONWP Proxy] Replacing sessionId 630c897a652b7587c8ba5cb728af4b40 with 2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5
[HTTP] <-- POST /wd/hub/session/2ea9d0f6-9a9c-4c32-ba37-9eaa2e9370c5/execute 200 65 ms - 279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment