2022-05-10 06:10:04:109 [Appium] Welcome to Appium v1.19.1 2022-05-10 06:10:04:110 [Appium] Non-default server args: 2022-05-10 06:10:04:111 [Appium] logFile: /Users/serenehoo/Downloads/appium-log/appium-0510-2.log 2022-05-10 06:10:04:126 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 2022-05-10 06:13:01:260 [HTTP] Request idempotency key: c0fb14cc-4413-466d-b1cf-7af22bd8140e 2022-05-10 06:13:01:288 [HTTP] --> POST /wd/hub/session 2022-05-10 06:13:01:288 [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"android","appium:deviceName":"emulator-5554","appium:appPackage":"com.tencent.wework","appium:appActivity":".launch.WwMainActivity","appium:noReset":true,"appium:skipDeviceInitialization":true,"appium:skipServerInstallation":true,"appium:chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"}} 2022-05-10 06:13:01:292 [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},null,{"alwaysMatch":{"platformName":"android","appium:deviceName":"emulator-5554","appium:appPackage":"com.tencent.wework","appium:appActivity":".launch.WwMainActivity","appium:noReset":true,"appium:skipDeviceInitialization":true,"appium:skipServerInstallation":true,"appium:chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},"firstMatch":[{}]}] 2022-05-10 06:13:01:293 [BaseDriver] Event 'newSessionRequested' logged at 1652163181293 (14:13:01 GMT+0800 (GMT+08:00)) 2022-05-10 06:13:01:301 [Appium] 2022-05-10 06:13:01:302 [Appium] ====================================================================== 2022-05-10 06:13:01:302 [Appium] DEPRECATION WARNING: 2022-05-10 06:13:01:302 [Appium] 2022-05-10 06:13:01:302 [Appium] The 'automationName' capability was not provided in the desired 2022-05-10 06:13:01:302 [Appium] capabilities for this Android session 2022-05-10 06:13:01:302 [Appium] 2022-05-10 06:13:01:303 [Appium] Setting 'automationName=UiAutomator2' by default and using the 2022-05-10 06:13:01:303 [Appium] UiAutomator2 Driver 2022-05-10 06:13:01:303 [Appium] 2022-05-10 06:13:01:303 [Appium] The next major version of Appium (2.x) will **require** the 2022-05-10 06:13:01:303 [Appium] 'automationName' capability to be set for all sessions on all 2022-05-10 06:13:01:303 [Appium] platforms 2022-05-10 06:13:01:304 [Appium] 2022-05-10 06:13:01:304 [Appium] In previous versions (Appium <= 1.13.x), the default was 2022-05-10 06:13:01:304 [Appium] 'automationName=UiAutomator1' 2022-05-10 06:13:01:304 [Appium] 2022-05-10 06:13:01:304 [Appium] If you wish to use that automation instead of UiAutomator2, please 2022-05-10 06:13:01:346 [Appium] add 'automationName=UiAutomator1' to your desired capabilities 2022-05-10 06:13:01:347 [Appium] 2022-05-10 06:13:01:347 [Appium] For more information about drivers, please visit 2022-05-10 06:13:01:347 [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the 2022-05-10 06:13:01:347 [Appium] 'Drivers' menu 2022-05-10 06:13:01:348 [Appium] 2022-05-10 06:13:01:348 [Appium] ====================================================================== 2022-05-10 06:13:01:348 [Appium] 2022-05-10 06:13:01:673 [Appium] Appium v1.19.1 creating new AndroidUiautomator2Driver (v1.59.0) session 2022-05-10 06:13:01:675 [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided 2022-05-10 06:13:01:675 [BaseDriver] Creating session with W3C capabilities: { 2022-05-10 06:13:01:675 [BaseDriver] "alwaysMatch": { 2022-05-10 06:13:01:675 [BaseDriver] "platformName": "android", 2022-05-10 06:13:01:675 [BaseDriver] "appium:deviceName": "emulator-5554", 2022-05-10 06:13:01:675 [BaseDriver] "appium:appPackage": "com.tencent.wework", 2022-05-10 06:13:01:675 [BaseDriver] "appium:appActivity": ".launch.WwMainActivity", 2022-05-10 06:13:01:675 [BaseDriver] "appium:noReset": true, 2022-05-10 06:13:01:676 [BaseDriver] "appium:skipDeviceInitialization": true, 2022-05-10 06:13:01:676 [BaseDriver] "appium:skipServerInstallation": true, 2022-05-10 06:13:01:676 [BaseDriver] "appium:chromedriverExecutable": "/Users/serenehoo/projects/chromedriver/chromedriver_66" 2022-05-10 06:13:01:676 [BaseDriver] }, 2022-05-10 06:13:01:685 [BaseDriver] "firstMatch": [ 2022-05-10 06:13:01:685 [BaseDriver] {} 2022-05-10 06:13:01:685 [BaseDriver] ] 2022-05-10 06:13:01:685 [BaseDriver] } 2022-05-10 06:13:01:695 [BaseDriver] Session created with session id: 7764172f-a93c-47e8-98b7-92ae84e5c140 2022-05-10 06:13:01:696 [UiAutomator2] Starting 'com.tencent.wework' directly on the device 2022-05-10 06:13:01:710 [ADB] Found 2 'build-tools' folders under '/Users/serenehoo/Library/Android/sdk' (newest first): 2022-05-10 06:13:01:710 [ADB] /Users/serenehoo/Library/Android/sdk/build-tools/30.0.2 2022-05-10 06:13:01:710 [ADB] /Users/serenehoo/Library/Android/sdk/build-tools/29.0.3 2022-05-10 06:13:01:711 [ADB] Using 'adb' from '/Users/serenehoo/Library/Android/sdk/platform-tools/adb' 2022-05-10 06:13:01:714 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 start-server' 2022-05-10 06:13:01:730 [AndroidDriver] Retrieving device list 2022-05-10 06:13:01:731 [ADB] Trying to find a connected android device 2022-05-10 06:13:01:731 [ADB] Getting connected devices 2022-05-10 06:13:01:747 [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}] 2022-05-10 06:13:01:748 [AndroidDriver] Using device: emulator-5554 2022-05-10 06:13:01:749 [ADB] Using 'adb' from '/Users/serenehoo/Library/Android/sdk/platform-tools/adb' 2022-05-10 06:13:01:749 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 start-server' 2022-05-10 06:13:01:762 [ADB] Setting device id to emulator-5554 2022-05-10 06:13:01:763 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' 2022-05-10 06:13:01:793 [ADB] Current device property 'ro.build.version.sdk': 23 2022-05-10 06:13:01:793 [ADB] Device API level: 23 2022-05-10 06:13:01:794 [AndroidDriver] No app sent in, not parsing package/activity 2022-05-10 06:13:01:794 [AndroidDriver] 'skipDeviceInitialization' is set. Skipping device initialization. 2022-05-10 06:13:01:795 [Logcat] Starting logs capture with command: /Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime 2022-05-10 06:13:01:823 [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8212 2022-05-10 06:13:01:823 [ADB] Forwarding system: 8212 to device: 6790 2022-05-10 06:13:01:823 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8212 tcp:6790' 2022-05-10 06:13:01:843 [UiAutomator2] 'skipServerInstallation' is set. Skipping UIAutomator2 server installation. 2022-05-10 06:13:01:843 [UiAutomator2] No app capability. Assuming it is already on the device 2022-05-10 06:13:01:844 [UiAutomator2] Performing shallow cleanup of automation leftovers 2022-05-10 06:13:01:855 [UiAutomator2] No obsolete sessions have been detected (socket hang up) 2022-05-10 06:13:01:855 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test' 2022-05-10 06:13:02:527 [UiAutomator2] 'skipServerInstallation' is set. Attempting to use UIAutomator2 server from the device 2022-05-10 06:13:02:527 [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... 2022-05-10 06:13:02:528 [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] 2022-05-10 06:13:03:286 [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: 2022-05-10 06:13:03:537 [WD Proxy] Matched '/status' to command name 'getStatus' 2022-05-10 06:13:03:539 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8212/wd/hub/status] with no body 2022-05-10 06:13:03:546 [WD Proxy] socket hang up 2022-05-10 06:13:04:551 [WD Proxy] Matched '/status' to command name 'getStatus' 2022-05-10 06:13:04:552 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8212/wd/hub/status] with no body 2022-05-10 06:13:04:591 [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} 2022-05-10 06:13:04:592 [UiAutomator2] The initialization of the instrumentation process took 2064ms 2022-05-10 06:13:04:592 [WD Proxy] Matched '/session' to command name 'createSession' 2022-05-10 06:13:04:592 [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8212/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}} 2022-05-10 06:13:04:614 [WD Proxy] Got response with status 200: {"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb"}} 2022-05-10 06:13:04:614 [WD Proxy] Determined the downstream protocol as 'W3C' 2022-05-10 06:13:04:620 [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8212/wd/hub/session/b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb/appium/device/info] with no body 2022-05-10 06:13:04:644 [WD Proxy] Got response with status 200: {"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb","value":{"androidId":"8934596162b158d","apiVersion":"23","bluetooth":{"state":"OFF"},"brand":"Android","carrierName":"","displayDensity":312,"locale":"zh_CN","manufacturer":"Netease","model":"MuMu","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_INTERNET,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_VALIDATED","signalStrength":-55,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":"\"Xf9RNvO\"","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"6.0.1","realDisplaySize":"936x1664","timeZone":"Asia/Shanghai"}} 2022-05-10 06:13:04:645 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window' 2022-05-10 06:13:04:683 [AndroidDriver] Screen already unlocked, doing nothing 2022-05-10 06:13:04:684 [UiAutomator2] Starting 'com.tencent.wework/.launch.WwMainActivity and waiting for 'com.tencent.wework/.launch.WwMainActivity' 2022-05-10 06:13:04:684 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n com.tencent.wework/.launch.WwMainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' 2022-05-10 06:13:15:875 [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8212/wd/hub/session/b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb/appium/device/pixel_ratio] with no body 2022-05-10 06:13:16:029 [WD Proxy] Got response with status 200: {"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb","value":1.95} 2022-05-10 06:13:16:035 [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' 2022-05-10 06:13:16:036 [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8212/wd/hub/session/b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb/appium/device/system_bars] with no body 2022-05-10 06:13:16:059 [WD Proxy] Got response with status 200: {"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb","value":{"statusBar":47}} 2022-05-10 06:13:16:059 [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' 2022-05-10 06:13:16:059 [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8212/wd/hub/session/b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb/window/current/size] with no body 2022-05-10 06:13:16:086 [WD Proxy] Got response with status 200: {"sessionId":"b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb","value":{"height":1664,"width":936}} 2022-05-10 06:13:16:086 [Appium] New AndroidUiautomator2Driver session created successfully, session 7764172f-a93c-47e8-98b7-92ae84e5c140 added to master session list 2022-05-10 06:13:16:087 [BaseDriver] Event 'newSessionStarted' logged at 1652163196087 (14:13:16 GMT+0800 (GMT+08:00)) 2022-05-10 06:13:16:087 [W3C (7764172f)] Cached the protocol value 'W3C' for the new session 7764172f-a93c-47e8-98b7-92ae84e5c140 2022-05-10 06:13:16:088 [W3C (7764172f)] Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66"},"platformName":"android","deviceName":"emulator-5554","appPackage":"com.tencent.wework","appActivity":".launch.WwMainActivity","noReset":true,"skipDeviceInitialization":true,"skipServerInstallation":true,"chromedriverExecutable":"/Users/serenehoo/projects/chromedriver/chromedriver_66","deviceUDID":"emulator-5554","deviceApiLevel":23,"platformVersion":"6.0.1","deviceScreenSize":"936x1664","deviceScreenDensity":312,"deviceModel":"MuMu","deviceManufacturer":"Netease","pixelRatio":1.95,"statBarHeight":47,"viewp... 2022-05-10 06:13:16:092 [HTTP] <-- POST /wd/hub/session 200 14804 ms - 1138 2022-05-10 06:13:16:092 [HTTP] 2022-05-10 06:14:16:090 [BaseDriver] Shutting down because we waited 60 seconds for a command 2022-05-10 06:14:16:091 [Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability' 2022-05-10 06:14:16:091 [Appium] Removing session '7764172f-a93c-47e8-98b7-92ae84e5c140' from our master session list 2022-05-10 06:14:16:093 [UiAutomator2] Deleting UiAutomator2 session 2022-05-10 06:14:16:095 [UiAutomator2] Deleting UiAutomator2 server session 2022-05-10 06:14:16:096 [WD Proxy] Matched '/' to command name 'deleteSession' 2022-05-10 06:14:16:097 [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8212/wd/hub/session/b10d5bc2-78d8-46f8-bb2a-cc6b2c6887cb] with no body 2022-05-10 06:14:16:129 [WD Proxy] socket hang up 2022-05-10 06:14:16:132 [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up 2022-05-10 06:14:16:137 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.tencent.wework' 2022-05-10 06:14:16:844 [Logcat] Stopping logcat capture 2022-05-10 06:14:16:847 [ADB] Removing forwarded port socket connection: 8212 2022-05-10 06:14:16:847 [ADB] Running '/Users/serenehoo/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:8212' 2022-05-10 06:29:18:692 [Appium] Received SIGINT - shutting down