安装环境
使用环境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操作,将会在其他章节中详细谈到。