lundi 23 février 2015

which files are mandatory to sun appium on an android 3rd party device?



I use appium for the first time.


I want to run a simple automation on a 3rd party installed app.


I want to configure the appium server for that specific app.


I have few questions:



  1. which fields are mandatory?

  2. I have to fill them manually? because my Android is plugged in to the mac, and yet I cannot autocomplete names.

  3. how can i easily find the desired app apk path and it's launch activity (I guess after double clicking the apk?)


enter image description here


update:


i now get the following error:


doesn't work.


new console opened:



➜ ~ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home


Doctor:


Running Android Checks



✔ ANDROID_HOME is set to "/Users/eladb/MyWorkspace2/adt-bundle-mac-x86_64/sdk/"
✔ JAVA_HOME is set to "/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home."
✔ ADB exists at /Users/eladb/MyWorkspace2/adt-bundle-mac-x86_64/sdk/platform-tools/adb
✔ Android exists at /Users/eladb/MyWorkspace2/adt-bundle-mac-x86_64/sdk/tools/android
✔ Emulator exists at /Users/eladb/MyWorkspace2/adt-bundle-mac-x86_64/sdk/tools/emulator
✔ Android Checks were successful.

✔ All Checks were successful
➜ ~


and yet appium says:



info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.5","revision":"a124a15677e26b33db16e81c4b3b34d9c6b8cac9"}}}
info: <-- GET /wd/hub/status 200 0.927 ms - 104 {"status":0,"value":{"build":{"version":"1.3.5","revision":"a124a15677e26b33db16e81c4b3b34d9c6b8cac9"}}}

info: --> POST /wd/hub/session {"desiredCapabilities":{"appPackage":"com.grindrapp.android","appActivity":".activity.SplashActivity","platformVersion":"4.4.2","browserName":"","platformName":"Android","deviceName":"10.0.0.9:5555"}}

info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)

info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device

info: [debug] Creating new appium session e232fa9d-a70c-4de9-84e7-d86441cc9dc6

info: Starting android appium

info: [debug] Getting Java version

info: [debug] Cleaning up android objects

info: [debug] Cleaning up appium session

info: [debug] Error: Could not get the Java version. Is Java installed?
at /Applications/http://ift.tt/17rW0jH
at ChildProcess.exithandler (child_process.js:735:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Socket.<anonymous> (child_process.js:1176:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:476:12)

error: Failed to start an Appium session, err was: Error: Could not get the Java version. Is Java installed?

info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not get the Java version. Is Java installed?)","origValue":"Could not get the Java version. Is Java installed?"},"sessionId":null}
info: <-- POST /wd/hub/session 500 87.838 ms - 222

info: --> GET /wd/hub/status {}


I'm using appium 1.3.5




Aucun commentaire:

Enregistrer un commentaire