安裝環境
使用環境ubuntu14.04
請參考:https://github.com/huaping/StabilityKPI
安裝基礎庫:
sudo apt-get install python-pip mplayer2 libudev-dev
sudo pip install robotframework
sudo pip install uiautomator
安裝RobotFramework IDE
sudo apt-get install python-wxgtk2.8
sudo pip install robotframework-ride
具體架構:
編寫測試用例要點:
熟悉 uiautomator python wrapper, 使用Common UI Lib編寫你自己的關鍵字(在UI Driver中), 這些關鍵字會被RobotFramework使用。
怎麼寫uiautomator的UI操作,將會在其他章節中詳細談到。