mac appium 启动genymotion
mac eclipse appium 启动genymotion 模拟器,设置红框中的三项内容就可以。2个红色箭头不需要设置。
如果launch_avd 设置,就会提示:Emulator xxx not running,无法运行测试
[debug] [ADB] Trying to find and_device emulator
[debug] [ADB] Getting connected emulators
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] 0 emulator(s) connected
[debug] [ADB] Emulator and_device not running
Devices Name 也可以不用设置,要设置可以设置成和命令行中adb devices 的值一样也可以,不过发现设置任意值也没有关系
启动命令:
eexport ANDROID_HOME="/Users/apptest/myapp/android-sdk-macosx"; '/Applications/Appium.app/Contents/Resources/node/bin/node' appium/build/lib/main.js --address "127.0.0.1" --session-override --debug-log-spacing --automation-name "Appium" --platform-name "Android" --platform-version "4.4" --dont-stop-app-on-reset