1. 程式人生 > >appium-andriod自動化實現註意項

appium-andriod自動化實現註意項

andriod sin cto git ast /tmp mar 實現 ons

註意項:

1.appium需要全局安裝,否則run test case 報錯“appium not installed”

2.啟動appium命令

node /Applications/Appium.app/Contents/Resources/node_modules/appium/build/lib/main.js

3.adb 自動push待測試apk到手機端失敗

/data/local/tmp/b2d2916bb5388e1dc281ec3e71ef1234.apk: No such file or directory,解決方案是手動執行命令“adb push xxx.apk /data/local/tmp/b2d2916bb5388e1dc281ec3e71ef1234.apk”

4.Screen did not unlock successfully

解決方案參考:https://github.com/appium/appium-android-driver/blob/master/docs/UNLOCK.md,如下指定

Using the unlock with UIAutomation capabilities:

{

  "unlockType": "pin",
  "unlockKey": "1111"
}

appium-andriod自動化實現註意項