info: --> POST /wd/hub/session { "desiredCapabilities" :{ "platformVersion" : "4.2" , "deviceName" : "4d00b6a5bee8a047" , "platformName" : "Android" , "appActivity" :
"com.yy.mobile.ui.splash.SplashActivity" , "appPackage" : "com.duowan.mobile" }}
info: Client User-Agent string: Python-urllib /2 .7
info: [debug] Didn‘t get app but did get Android package, will attempt to launch it on the device
info: [debug] Creating new appium session 1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.6.0_45
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Not checking whether app is present since we are assuming it‘s already on the device
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\Android\sdk\platform-tools\adb.exe
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe devices
info: [debug] 2 device(s) connected
info: Found device 4d00b6a5bee8a047
info: [debug] Setting device id to 4d00b6a5bee8a047
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 wait- for -device
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "echo ‘ready‘"
info: [debug] Starting logcat capture
warn: No app capability, can‘t parse package /activity
info: [debug] Getting device API level
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] Apk doesn‘t exist locally
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "rm -rf /data/local/tmp/strings.json"
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Skipping install since we launched with a package instead of an app path
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 push "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_mod
ules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 install "C:\Users\Administrator\AppData\Roaming\npm\node_module
s\appium\build\settings_apk\settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 install "C:\Users\Administrator\AppData\Roaming\npm\node_module
s\appium\build\unlock_apk\unlock_apk-debug.apk"
info: Starting App
info: [debug] Attempting to kill all ‘uiautomator‘ processes
info: [debug] Getting all processes with ‘uiautomator‘
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "ps ‘uiautomator‘"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.b
ootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id =UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test =testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] Waking up device if it‘s not alive
info: [debug] Pushing command to appium work queue: [ "wake" ,{}]
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "wake" , "params" :{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : true , "status" :0}
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "dumpsys window"
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: [ "getDataDir" ,{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "getDataDir" , "params" :{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : "\/data\/local\/tmp" , "status" :0}
info: [debug] dataDir set to: /data/local/tmp
info: [debug] Pushing command to appium work queue: [ "compressedLayoutHierarchy" ,{ "compressLayout" : false }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "compressedLayoutHierarchy" , "params" :{ "compressLayout" : false }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : false , "status" :0}
info: [debug] Getting device API level
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "am start -S -a android.intent.action.MAIN -c android.int
ent.category.LAUNCHER -f 0x10200000 -n com.duowan.mobile /com .yy.mobile.ui.splash.SplashActivity"
info: [debug] Waiting for pkg "com.duowan.mobile" and activity "com.yy.mobile.ui.splash.SplashActivity" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "dumpsys window windows"
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId 1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35
info: <-- POST /wd/hub/session 303 8377.855 ms - 9
info: --> GET /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35 {}
info: [debug] Responding to client with success: { "status" :0, "value" :{ "platform" : "LINUX" , "browserName" : "Android" , "platformVersion" : "4.2" ,"webStorageEn
abled ":false," takesScreenshot ":true," javascriptEnabled ":true," databaseEnabled ":false," networkConnectionEnabled ":true," locationContextEnabled ":false," w
arnings ":{}," desired ":{" platformVersion ":" 4.2 "," deviceName ":" 4d00b6a5bee8a047 "," platformName ":" Android "," appActivity ":" com.yy.mobile.ui.splash.SplashA
ctivity "," appPackage ":" com.duowan.mobile "}," deviceName ":" 4d00b6a5bee8a047 "," platformName ":" Android "," appActivity ":" com.yy.mobile.ui.splash.SplashActiv
ity "," appPackage ":" com.duowan.mobile "}," sessionId ":" 1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35"}
info: <-- GET /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35 200 2.143 ms - 641 { "status" :0, "value" :{ "platform" : "LINUX" , "browserName" : "Android" ,
"platformVersion" : "4.2" , "webStorageEnabled" : false , "takesScreenshot" : true , "javascriptEnabled" : true , "databaseEnabled" : false , "networkConnectionEnabled" :t
rue, "locationContextEnabled" : false , "warnings" :{}, "desired" :{ "platformVersion" : "4.2" , "deviceName" : "4d00b6a5bee8a047" , "platformName" : "Android" ,"appActiv
ity ":" com.yy.mobile.ui.splash.SplashActivity "," appPackage ":" com.duowan.mobile "}," deviceName ":" 4d00b6a5bee8a047 "," platformName ":" Android "," appActivity"
: "com.yy.mobile.ui.splash.SplashActivity" , "appPackage" : "com.duowan.mobile" }, "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element { "using" : "name" , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "value"
: "神曲" }
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: [ "find" ,{ "strategy" : "name" , "selector" : "神曲" , "context" : "" , "multiple" : false }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "find" , "params" :{ "strategy" : "name" , "selector" : "神曲" , "context" : "" ,"mu
ltiple": false }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding 神曲 using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=神曲, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=神曲, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" :{ "ELEMENT" : "1" }, "status" :0}
info: [debug] Responding to client with success: { "status" :0, "value" :{ "ELEMENT" : "1" }, "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element 200 30359.695 ms - 87 { "status" :0, "value" :{ "ELEMENT" : "1" }, "sessionId" :"1b0
e4603-d4c8-44d7-868a-cd1c0d1f4b35"}
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element/1/click { "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "id" : "1" }
info: [debug] Pushing command to appium work queue: [ "element:click" ,{ "elementId" : "1" }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "element:click" , "params" :{ "elementId" : "1" }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : true , "status" :0}
info: [debug] Responding to client with success: { "status" :0, "value" : true , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element/1/click 200 3267.154 ms - 76 { "status" :0, "value" : true , "sessionId" :"1b0e460
3-d4c8-44d7-868a-cd1c0d1f4b35"}
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element { "using" : "name" , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "value"
: "站台" }
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: [ "find" ,{ "strategy" : "name" , "selector" : "站台" , "context" : "" , "multiple" : false }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "find" , "params" :{ "strategy" : "name" , "selector" : "站台" , "context" : "" ,"mu
ltiple": false }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding 站台 using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=站台, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=站台, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : "No element found" , "status" :7}
info: [debug] Condition unmet after 190ms. Timing out.
info: [debug] Responding to client with error: { "status" :7, "value" :{ "message" :"An element could not be located on the page using the given search para
meters. "," origValue ":" No element found "}," sessionId ":" 1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35"}
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element 500 196.363 ms - 195
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element { "using" : "name" , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "value"
: "月榜" }
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: [ "find" ,{ "strategy" : "name" , "selector" : "月榜" , "context" : "" , "multiple" : false }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "find" , "params" :{ "strategy" : "name" , "selector" : "月榜" , "context" : "" ,"mu
ltiple": false }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding 月榜 using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=月榜, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=月榜, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" :{ "ELEMENT" : "2" }, "status" :0}
info: [debug] Responding to client with success: { "status" :0, "value" :{ "ELEMENT" : "2" }, "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element 200 242.911 ms - 87 { "status" :0, "value" :{ "ELEMENT" : "2" }, "sessionId" :"1b0e4
603-d4c8-44d7-868a-cd1c0d1f4b35"}
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element/2/click { "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "id" : "2" }
info: [debug] Pushing command to appium work queue: [ "element:click" ,{ "elementId" : "2" }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "element:click" , "params" :{ "elementId" : "2" }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : true , "status" :0}
info: [debug] Responding to client with success: { "status" :0, "value" : true , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element/2/click 200 3377.934 ms - 76 { "status" :0, "value" : true , "sessionId" :"1b0e460
3-d4c8-44d7-868a-cd1c0d1f4b35"}
info: --> POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element { "using" : "name" , "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" , "value"
: "站台" }
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: [ "find" ,{ "strategy" : "name" , "selector" : "站台" , "context" : "" , "multiple" : false }]
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "action" , "action" : "find" , "params" :{ "strategy" : "name" , "selector" : "站台" , "context" : "" ,"mu
ltiple": false }}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding 站台 using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=站台, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[TEXT=站台, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" :{ "ELEMENT" : "3" }, "status" :0}
info: [debug] Responding to client with success: { "status" :0, "value" :{ "ELEMENT" : "3" }, "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- POST /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35/element 200 630.792 ms - 87 { "status" :0, "value" :{ "ELEMENT" : "3" }, "sessionId" :"1b0e4
603-d4c8-44d7-868a-cd1c0d1f4b35"}
info: --> DELETE /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35 {}
info: Shutting down appium session
info: [debug] Pressing the HOME button
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s 4d00b6a5bee8a047 shell "input keyevent 3"
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: { "cmd" : "shutdown" }
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: { "value" : "OK, shutting down" , "status" :0}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id =UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test =testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 41.607
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test )
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] Sent shutdown command , waiting for UiAutomator to stop...
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: { "status" :0, "value" :null, "sessionId" : "1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35" }
info: <-- DELETE /wd/hub/session/1b0e4603-d4c8-44d7-868a-cd1c0d1f4b35 200 1333.091 ms - 76 { "status" :0, "value" :null, "sessionId" :"1b0e4603-d4c8-44d7-86
8a-cd1c0d1f4b35"}
|