Hi, I have been using appium 1.4.16 successfully with android and ios, on both simulators and real devices. And have just tried using the 1.5 beta 9 but I get all sorts of problems. I'm hoping i've just missed some setup steps needed to use the 1.5 version of appium. I'm installing via 'npm install -g appium@1.5.0-beta9'
For IOS
I could not run on simulator (using same capabilities as used for 1.4.16). I have found this was due to having the capability fullReset: true. Seems it was deleting the simulator before the test and then not recreating it so the device was unable to be found for the test. Removing the capability resolved this problem(I also needed to recreate the simulator versions manually through the simulators manage devices option).
I could not run on a real device until I reinstalled ideviceinstaller through brew.
I am using xcode 7.1 and ios simulator 9.1
For Android
I cannot get it to find my app which is hosted on a local network (http://myaddress/android.apk).
[Selendroid] Error: Could not find app apk at 'http://myaddress/android.apk'
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at SelendroidDriver.checkAppPresent$ (lib/driver.js:226:14)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:433:9)
at process._tickCallback (node.js:362:13)
[Error: Could not find app apk at 'http://myaddress/android.apk']
[debug] [Selendroid] Deleting Selendroid session
If I switch to a local copy for the app it then moves to a different error. Where it cannot find the android sdk's build-tools folder. It is looking for '...android-sdk/build-tools', however my sdk's build folder is at '...android-sdk/24.4.1_1/build-tools'
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appPackage":"nz.co.mcom.phone","appActivity":".activities.MobilitiActivity","platformName":"Android","automationName":"Selendroid","autoAcceptAl...
[Appium] Creating new SelendroidDriver session
[BaseDriver] The following capabilities were provided, but are not recognized by appium: autoAcceptAlerts, deviceType.
[BaseDriver] Session created with session id: 54336238-2655-4cdb-a335-88b914dc1533
[debug] [Selendroid] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_45
[ADB] Checking whether adb is present
[debug] [Selendroid] Deleting Selendroid session
[MJSONWP] Encountered internal error running command: Error: ENOENT: no such file or directory, scandir '/usr/local/Cellar/android-sdk/build-tools'
at Error (native)
note: the same error occurs if I use automationName: Appium, instead of Selendroid.
EDIT: rolling back to 1.4.16 did not resolve sdk issues this time. Seems like my Android SDK is messed up. So just the network url for the app path that is an issue for Android it seems. And perhaps that is an issue with Selendroid 0.17 since it doesent happen with Appium as the AutomatinoName
Any thoughts on how to resolve these issues? need me to provide more logging?