Recently, the company needs to build an automation platform in the intranet environment, no external network, and therefore can not use convenient and fast pip for installation, but the RF framework components have a lot of version dependence, offline source installation may not know what dependencies, the special will own the summary after the pit to share the following, to enjoy the same fellow.
First, prepare the required source code package
①python2.7 Address: https://www.python.org/downloads/
Download the system corresponding version of the installation package, double-click Install
This is the basis of everything, as for why not use Python3, because RF ride is not supported.
Installation complete requires environment variables: Add the path to path: C:\python and C:\python\Scripts
②wxpython Address: Https://sourceforge.net/projects/wxpython/files/wxPython
WxPython is a very well-known GUI library for Python because ride was developed based on this library, so this must be installed.
Find the appropriate version on the official web download, exe executable file, double-click the button.
Note: The corresponding Win32 or Win64, not the version of your operating system, but the corresponding installation Python is 32-bit or 64-bit
The current Robotframework-ide version is compatible with Wxpython2.8-win64-unicode-2.8.12.1-py27.exe or Wxpython2.8-win32-unicode-2.8.12.1-py27.exe
③robotframework Address: Https://pypi.python.org/pypi/robotframework
That is, the RF framework itself
④robotframework-ride Address: Https://pypi.python.org/pypi/robotframework-ride
Robotframework's IDE interface, the robot
⑤selenium2library Address: Https://pypi.python.org/pypi/robotframework-selenium2library
SELENIUM2 Test Library, based on Webdriver Drive
UI Automation Essentials, a key font based on Python encapsulation.
⑥decorator libraries that are dependent on the Selenium2library library. Https://pypi.python.org/pypi/decorator
⑦docutils libraries that are dependent on the Selenium2library library. Https://pypi.python.org/pypi/docutils
⑧selenium Native Python library. Https://pypi.python.org/pypi/selenium
⑨seleniumlibrary Dependent library https://github.com/robotframework/SeleniumLibrary/releases for selenium2library libraries
Note: In addition to Python, other source packages are not given version, because the update faster, the corresponding address page to download the latest version can be;
Second, installation;
Order: ①②③④⑥⑦⑧⑨⑤
①② Double-click Install can;
The ③④⑥⑦⑧⑨⑤ installation operation is as follows:
After extracting the downloaded tar.gz package into a folder, the CMD interface enters the folder directory (setup.py directory)
Enter the python setup.py install.
If you are prompted that Python is not a command, configure the PATH environment variable.
Note:
1. Check whether the Robotframework is installed successfully \python27\lib\site-packages appear Robotframework-3.0-py2.7.egg can;
2.Ride installation Success flag: Python installation path \python27\scripts appears ride.py file;
Third, inspection
1. Double click ride.py to enter the ride interface, press F5 (find keyword), there are options to represent the Selenium2library library installation success:
The next step is to script and execute.
Tips
Desktop shortcuts for building ride:
The first step, right-click on the desktop, create a new "shortcut", in the Popup box type: C:\Python27\pythonw.exe-c "from robotide import main; Main () "and click Next;
The second step, find the RIDE path with you any name, it is recommended to use "RIDE" more formal, and click "Done";
Step Three, change the shortcut icon after creation: Click the shortcut Right--Properties--Modify icon
Select Robot icon Location: C:\Python27\Lib\site-packages\robotide\widgets\robot.ico
Ride.py Run is going to flash a command line window if you do not want this window to appear. You can change the ride.py to Ride.pyw.
Windows offline State source installation Robotframework environment and its dependent packages