This are my capabilities
{
"platformName": "android",
"platformVersion": 9,
"deviceName": "note9",
"automationName": "uiautomator2",
"noReset": true,
"app": "/Users/curatio/IdeaProjects/ui_tests/apk/Curatio-debug-3.8.0.apk",
"appPackage": "me.curatio.curatio",
"appActivity": "curatio.curatio"
}
And I'm getting this error
Encountered internal error running command: Error: zipAlignApk failed. Original error: Command '/Users/curatio/Library/Android/sdk/build-tools/29.0.0-rc1/zipalign -f 4 /Users/curatio/IdeaProjects/ui_tests/apk/Curatio-debug-3.8.0.apk /var/folders/s3/ff6krr157v7g45sl5ysfqrs40000gq/T/201934-64772-19dtlxv.cag5/appium.tmp' exited with code 1. Stdout: ''; Stderr: 'Unable to open '/Users/curatio/IdeaProjects/ui_tests/apk/Curatio-debug-3.8.0.apk' as zip archive
I couldn't find an answer. I'm running Appium Desktop.
Related
An unknown server-side error occurred while processing the command. Original error: Failed to launch Appium Settings app: Condition unmet after 5398 ms. Timing out.
{
"platformName": "android",
"platformVersion": "9",
"deviceName": "redmi Y2",
"noReset": "True",
"appPackage": "com.pc360.appmedevantage",
"appActivity": "com.pc360.appmedevantage.MainActivity",
"automationName": "uiautomator2",
}
I am trying to run appium scripts with below setup:
Appium Version : 1.22.3
Xcode Version : 13.4.1
Mac Version : 12.4
iPhone : 15.5
Below is the code I am using to launch health on iPhone real device
{
"platformName": "iOS",
"appium:platformVersion": "15.5",
"appium:deviceName": "iPhone",
"appium:automationName": "XCUITest",
"appium:udid": "00008101-000504921E86001E",
"appium:xcodeOrgId": "***",
"appium:xcodeSigningId": "iPhone Developer",
"appium:bundleId": "com.apple.Health",
}
I am getting the error and please find the logs below:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: 2022-06-07 18:54:35.319 xcodebuild[2317:27933] [MT] IDETestOperationsObserverDebug: (3002D231-969E-4711-B37F-3FDF1F41BACE) Failed to make test runner session: Error
Trying to start IOS iPhone 13 simulator on IOS 15 it keeps failing - these are my capabilities:
{
"automationName": "XCUITest",
"platformName": "iOS",
"deviceName": "iPhone 13",
"platformVersion": "15.0"
}
running on Xcode 13
getting the following error:
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100). Retrying...
does Appium support Xcode 13?
am I missing anything here?
We are trying to Appium session using the following capability.
[debug] [35m[BaseDriver] [39m "deviceName": "8C4Y14QBGA",
[debug] [35m[BaseDriver] [39m "newCommandTimeout": "1800",
[debug] [35m[BaseDriver] [39m "automationName": "UiAutomator2",
[debug] [35m[BaseDriver] [39m "app": "/process/uploads/20200609131058_nqx3Q.apk",
[debug] [35m[BaseDriver] [39m "platformName": "android",
[debug] [35m[BaseDriver] [39m "platformVersion": "9",
[debug] [35m[BaseDriver] [39m "connectHardwareKeyboard": "true"
We are using Java Appium client library to create session with the above capability and we are getting an error while taking a screenshot "UiAutomation not connected!"
Here is the Appium error log.
[debug] [35m[MJSONWP (3128a38e)][39m Calling AppiumDriver.getScreenshot() with args: ["3128a38e-d465-4c28-bba5-f9977abd4150"]
[debug] [35m[WD Proxy][39m Matched '/screenshot' to command name 'getScreenshot'
[debug] [35m[WD Proxy][39m Proxying [GET /screenshot] to [GET http://127.0.0.1:8200/wd/hub/session/be4490f0-7be9-48cd-bcae-6a32ed9359c0/screenshot] with no body[35m[WD Proxy][39m Got response with status 500: {"sessionId":"be4490f0-7be9-48cd-bcae-6a32ed9359c0","value":{"error":"unknown error","message":"java.lang.IllegalStateException: UiAutomation not connected!","stacktrace":"java.lang.IllegalStateException: UiAutomation not connected!\n\tat android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1112)\n\tat android.app.UiAutomation.takeScreenshot(UiAutomation.java:709)\n\tat io.appium.uiautomator2.utils.ScreenshotHelper.takeDeviceScreenshot(Unknown Source:169)\n\tat io.appium.uiautomator2.utils.ScreenshotHelper.takeScreenshot(Unknown Source:7)\n\tat io.appium.uiautomator2.utils.ScreenshotHelper.takeScreenshot(Unknown Source:1)\n\tat io.appium.uiautomator2.handler.CaptureScreenshot.safeHandle(Unknown Source:11)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(Unknown Source:0)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(Unknown Source:23)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(Unknown Source:57)\n\tat io.appium.uiautomator2.ht...
[debug] [35m[W3C][39m Matched W3C error code 'unknown error' to UnknownError
[debug] [35m[MJSONWP (3128a38e)][39m Encountered internal error running command: An unknown server-side error occurred while processing the command. Original error: java.lang.IllegalStateException: UiAutomation not connected!
[debug] [35m[MJSONWP (3128a38e)][39m java.lang.IllegalStateException: UiAutomation not connected!
Appium will not take screen shots if FLAG_SECURE is enabled for your app for security purposes. Ask the developer to give you an app with the setting disabled.
Also, to eliminate the possibility of a problem with the latest appium release 1.17.1-1, please try taking screenshot with appium version v1.16.0 and share your results.
We are experiencing difficulties while running Appium script for native iOS app. It opens the app, then it stand still and does not respond to scripts. Please refer to below Logs which we got through terminal. We have also activated XcodeLogs through Capabilities.
[Xcode]
[Xcode] 2018-10-30 19:50:16.262904+0530 WebDriverAgentRunner-
Runner[1899:251246] Enqueue Failure: Failure fetching attributes for
(null):
Error Domain=com.apple.XCTestErrorDomain Code=1000 "Timeout waiting for fulfillment of promise for 'Fetching attributes for (null)'." UserInfo=
{NSLocalizedDescription=Timeout waiting for fulfillment of promise for 'Fetching attributes for (null)'.}
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 37 1
[Xcode]
[Xcode] 2018-10-30 19:50:16.265961+0530 WebDriverAgentRunner-Runner[1899:251246] Enqueue Failure: Failure getting list of active applications: (null)
/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 37 1
[Xcode]
[Xcode] t = 322.45s Unable to monitor event loop
[Xcode]
[Xcode] t = 322.47s Unable to monitor animations
[Xcode]
[Xcode] t = 322.48s Open com.release.demoapp
[Xcode]
[Xcode] t = 322.48s Launch com.release.demoapp
[Xcode]
[Xcode] t = 322.48s Terminate com.release.demoapp:1904
[Xcode]
[Xcode] t = 323.72s Wait for com.release.demoapp to idle
[Xcode]
[debug]
[XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: ESOCKETTIMEDOUT). Retrying...
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1540909218924 (19:50:18 GMT+0530 (India Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Matched '/session' to command name 'createSession'
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST
http://localhost:52148/session] with body: {"desiredCapabilities":{"bundleId":"com.release.demoapp","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":10,"shouldUseSingletonTestManager":false}}
Capabilities:
{
"android": {
"platformName": "android",
"platformVersion": "8.0",
"app": "./build/Sapphire.apk",
"appPackage": "com.release.muvisdk",
"appActivity": "com.home.vod.activity.SplashScreen",
"deviceName": "android",
"noSign": true,
"avdLaunchTimeout":300000,
"avdReadyTimeout":300000,
"autoGrantPermissions": true
},
"iOS": {
"platformName": "iOS",
"app": {
"device" : "./build/Sapphire.app",
"simulator": "./build/SapphireSim.app"
},
"deviceName": "iPhone",
"wdaLaunchTimeout": 80000,
"wdaConnectionTimeout": 80000,
"preventWDAAttachments": true,
"clearSystemFiles": true,
"shouldUseSingletonTestManager": false,
"simpleIsVisibleCheck": true,
"maxTypingFrequency": 10,
"showXcodeLog": true,
"autoAcceptAlerts": true,
"useNewWDA": true,
"fullReset": true,
"newCommandTimeout": 60,
"showIOSLog": true
},
"hostMachines":
[
{
"machineIP": "127.0.0.1",
"simulators":
[
]
}
],
"ATDServiceHost":"127.0.0.1",
"ATDServicePort":"3000"
}