[WD Proxy] socket hang up [debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} [debug] [UiAutomator2] The initialization of the instrumentation process took 3072ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","platformVersion":"11.0","deviceName":"TEST PHONE API 30","app":"./verificac19.apk","appPackage":"it.ministerodellasalute.verificaC19","appActivity":"MainActivity","automationName":"UiAutomator2"},"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","app":"./verificac19.apk","appPackage":"it.ministerodellasalute.verificaC19","appActivity":"MainActivity","automationName":"UiAutomator2","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"187d18f3-8cf2-488a-887d-28ff9d957c0b","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"11.0","deviceName":"TEST PHONE API 30","app":"./verificac19.apk","appPackage":"it.ministerodellasalute.verificaC19","appActivity":"MainActivity","automationName":"UiAutomator2"},"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","app":"./verificac19.apk","appPackage":"it.ministerodellasalute.verificaC19","appActivity":"MainActivity","automationName":"UiAutomator2","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":"187d18f3-8cf2-488a-887d-28ff9d957c0b"}} [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/187d18f3-8cf2-488a-887d-28ff9d957c0b/appium/device/info] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"187d18f3-8cf2-488a-887d-28ff9d957c0b","value":{"androidId":"cf529e209d01847c","apiVersion":"30","bluetooth":{"state":"OFF"},"brand":"google","carrierName":"Android","displayDensity":420,"locale":"en_US","manufacturer":"Google","model":"sdk_gphone_x86","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":141000,"linkUpstreamBandwidthKbps":141000,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-30,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":"","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"},{"capabilities":{"SSID":null,"linkDownBandwidthKbps":30000,"linkUpstreamBandwidthKbps":15000,"networkCapabilit... [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] Starting 'it.ministerodellasalute.verificaC19/MainActivity and waiting for 'it.ministerodellasalute.verificaC19/MainActivity' [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n it.ministerodellasalute.verificaC19/MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' [debug] [ADB] We tried to start an activity that doesn't exist, retrying with '.MainActivity' activity name [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n it.ministerodellasalute.verificaC19/.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/187d18f3-8cf2-488a-887d-28ff9d957c0b] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"187d18f3-8cf2-488a-887d-28ff9d957c0b","value":null} [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop it.ministerodellasalute.verificaC19' [debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:8200' [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/maxelweb/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [debug] [BaseDriver] Event 'newSessionStarted' logged at 1641858248872 (00:44:08 GMT+0100 (Ora standard dell’Europa centrale)) [debug] [W3C] Encountered internal error running command: Error: Cannot start the 'it.ministerodellasalute.verificaC19' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Cannot start the 'it.ministerodellasalute.verificaC19' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Activity name '.MainActivity' used to start the app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity [debug] [W3C] at ADB.startApp (/home/maxelweb/.npm-global/lib/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:179:11) [debug] [W3C] at AndroidUiautomator2Driver.ensureAppStarts (/home/maxelweb/.npm-global/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:564:7) [debug] [W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (/home/maxelweb/.npm-global/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:431:7) [debug] [W3C] at AndroidUiautomator2Driver.createSession (/home/maxelweb/.npm-global/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:229:7) [debug] [W3C] at AppiumDriver.createSession (/home/maxelweb/.npm-global/lib/node_modules/appium/lib/appium.js:387:35) [HTTP] <-- POST /wd/hub/session 500 10625 ms - 1663 [HTTP] [debug] [Instrumentation] . [debug] [Instrumentation] Time: 3.068 [debug] [Instrumentation] [debug] [Instrumentation] OK (1 test) [debug] [Instrumentation] The process has exited with code 0