"Original link": http://www.cnblogs.com/atsats/p/6666848.html
General Robotframework are installed on the PC of Windows/linux, here will be a brief introduction on the Raspberry Pi hardware platform configuration robotframework development and operating environment.
With the automated test software configured on the Raspberry Pi, consider using several of these inexpensive "computers" to carry out parallel test case executions. Multiply to increase efficiency.
This is just an example of an application, I believe you can find more application scenarios, welcome to exchange discussion.
1. Install Firefox firefox browser
sudo apt-get install Iceweasel #后续做web页面自动化时, the default browser is Firefox, note that the name here is Iceweasel
2. Installing Wxpython
Since an IDE tool for Robotframework ride needs to use this third-party interface library, it must be installed first. The specific installation commands are as follows:
sudo apt-get install python-wxgtk2.8
If the above installation is unsuccessful, you can perform this command to update the information
3.Install Robotframework
Use the command to install the Python library, Pip. If you use Python3, the command can use PIP3
sudo pip install robotframwork #安装脚本引擎核心库 sudo pip install robotframework-ride #安装测脚本的IDE软件 sudo Pip Install robotframework-selenium2library #安装selenium2library库
sudo pip install selenium==2.53.6 # Special Note: install the specified version of the Selenium library, if the installation of more than 3.x version, the execution of the script will be abnormal!
4. Run the robotframework IDE Ride
Path:/usr/local/bin/ride.py
/usr/local/bin/ride.py #直接运行IDEsudo ln-s/usr/local/bin/ride.py/home/pi/desktop/ride.py # Configure a ride.py file to link to the desktop and later run the IDE on the desktop
5. Validation scripts
The specific instance code is as follows:
Library selenium2library 3 log Hello World 7 Open Browser/ http Www.baidu.com 8 Input Text id=kw Raspberry Install robotframework 9 Click Button id= SU10 sleep 8 seconds11 Close Browser
--end--
Successful installation of Robotframework+selenium in Raspberry Pi Raspberry