跳到主內容

APP自動化測試環境建置

 

建立應用程式 UI 自動化測試 - 以 Robot Framework 為例

https://ithelp.ithome.com.tw/users/20168859/ironman/7650

install appium
https://ithelp.ithome.com.tw/articles/10360843


Robot Framework 安裝及初體驗

install python
https://www.python.org/downloads/
install nvm
https://github.com/coreybutler/nvm-windows

nvm install lts
nvm use 22.16.0
npm intall -g appium

image-1750756211301.png

image-1750756233619.png

install appium-inspector
https://github.com/appium/appium-inspector

image-1750757422111.png

{
  "platformName": "Android",
  "appium:automationName": "uiautomator2",
  "appium:deviceName": "Android",
  "appium:appPackage": "com.android.settings",
  "appium:appActivity": ".Settings"
}

最快方法:安裝 Android Platform Tools(免裝 Android Studio):

👉 下載網址:https://developer.android.com/studio/releases/platform-tools