Appium Client app problem for start inspection or start testing - appium

Here's the steps of problem I am facing:
**Predefined: My Android SDK path and JDK path has been given in config section. Also "Session override" is checked **
I'm opening the Appium Client.
Starting the server.
Starting"Inspector session" Choosing the previously saved device with capatalities.
Choosing automatic server.
Trying to start thesession.
After sometime, I'm ending seeing this message:
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: spawn EPERM. Stdout: 'undefined'; Stderr: 'undefined'
The capabilites I've provided:
{
"deviceName": "",
"platformName": "",
"platformVersion": "",
"appPackage": "",
"appActivity": ""
}
Note: I have used appium desktop in same pc before... But somehow seeing this message now... In between, I've done several Android Studio installation.
enter image description here

Related

An unknown server-side error occurred while processing the command. Original error: multi-disk zip files are not supported: found disk number: 8224

When I try to create appium server, i get this error
An unknown server-side error occurred while processing the command. Original error: multi-disk zip files are not supported: found disk number: 8224
Appium v1.17.1
{
"platformName": "Android",
"deviceName": "Any device name",
"app": "C:\Users\A196673\OneDrive - DEKRA SE\Desktop\apk\ApiDemos-debug.apk",
"udid": "emulator-5554",
"autmationName": "UiAutomator2"
}
i installed everything good but can not create server

Appium - Install iOS apps from a testflight public url

I'm trying to install / run an iOS app from a test flight public url when using appium desktop but get the following error when starting the session:
"An unknown server-side error occurred while processing the command. Original error: Could not install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
The desired capabilities I provided to appium desktop are shown below:
{
"automationName": "XCUITest",
"platformName": "iOS",
"deviceName": "[DEVICE_NAME]",
"platformVersion": "13.3",
"xcodeOrgId": "[XCODE_ORG_ID]",
"xcodeSigningId": "iPhone Developer",
"udid": "[DEVICE_UDID]",
"bundleId": "[APP_BUNDLE_ID]",
"updatedWDABundleId": "[WEDRIVER_AGENT_RUNNER]",
"app": "https://testflight.apple.com/join/[RANDOM_GENERATED_CODE]"
}
Does appium support this functionality? If so what am i missing?
You should try to download the app before setting up Appium. (with bash script or Java itself)
After downloading, set the local URL in the capabilities.
This error:
install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
Seems to indicate you are pointing to a file, not a directory, which is what the executing code expected. Are you supposed to expand the artifacts from TestFlight before using them? Perhaps something is wrong with the [DirectoryPath] you specified. What's actually at that location after the failure occurs?

Problem In Opening Appium Inspector with calculator seesion

"deviceName": "Moto C Plus",
"udid": "ZZ2222MGJM",
"platformName": "Android",
"platformVersion": "7.0",
"appPackage": "com.google.android.calculator",
"appActivity": "com.android.calculator2.Calculator"
when click on startSession button
error :
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: Command 'C:\Users\ANIL\Desktop\android-sdk\platform-tools\zipalign.exe -f 4 C:\Users\ANIL\AppData\Local\Temp\20191017-3868-paf3kz.h4yu\appium-uiautomator2-server-debug-androidTest.apk C:\Users\ANIL\AppData\Local\Temp\20191017-3868-1e9g3nn.xgdch\appium.tmp' exited with code 3221225781. Stdout: ''; Stderr: ''
I think you need to add the automationName parameter to your desired capabilities here. Something like:
automationName: UiAutomator1
Or
automationName: UiAutomator2
You can read about the automationName parameter under the Appium docs: http://appium.io/docs/en/writing-running-appium/caps/
It basically tells Appium which device-native automation framework to use.

Appium server returns "Error : Closed" with Code 1

I am starting to use Appium Desktop for Mobile Testing.
After the preliminary setup where I set the path and environment variables and defining the desired capabilities, clicking on "Start Session" button result in this message:
"An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C\:\\Users\\test-PC\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm list packages com.mol.molwallet' exited with code 1'; Stderr: 'error: closed'; Code: '1'.
Is there any way to find out what causes the "Closure" ? I am using Bluestack as the emulator.

Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65

I'm new to ios appium and trying to use appium for app testing which i did not have the source code nor ios developer account, the app is downloaded from crashlytics.
I've tried to modify the certificate for webdriveragent with my personal account but failed. And i saw the document from appium that i should able to use appium with only "app" or "bundleid" capability so i tried to remove the "app" then got another err.
Please advise, thank you in advance.
My capabilities set as below
capabilities['platformName'] = 'iOS'
capabilities['automationName'] = 'XCUITest'
capabilities['platformVersion'] = '11.4'
capabilities['deviceName'] = 'iPhone X'
capabilities['udid'] = 'my phone'
capabilities['bindleId'] = 'app.bundleId'
capabilities['app'] = '/pathtomyapp'
Appium log output
selenium.common.exceptions.WebDriverException 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".
If I remove the "app" from capablities then I get following error
selenium.common.exceptions.WebDriverException: Message: An unknown
server-side error occurred while processing the command. Original
error: The desired capabilities must include either an app or a
bundleId for iOS
https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md
a very comprehensive tutorial how to deal with your problem, you are missing
desired_caps['xcodeOrgId'] = 'YOURDEVID'
desired_caps['xcodeSigningId'] = "iPhone Developer"
I believe that this error normally happens because the wda is in the wrong directory. Which version of appium is this? If it's above 1.7.2 then you'll need to add the capabilities usePrebuiltWDA set to true and derivedDataPath set to the path of the derived data folder of the wda.
https://github.com/appium/appium-xcuitest-driver/blob/master/README.md
Hth
James

Resources