最近在windows下安裝Robot Framework.
這邊做個簡單記錄.
- 下載 Python
- 設定環境變數
Control Panel\System and Security\System => Advanced System settings ==> Environment Variables ==> path: add ";C:\Python27;C:\Python27\Scripts"
預設是 C:\Python27\ , 這邊可以改成自己的 - 安裝 pip
下載網址. (https://pip.pypa.io/en/stable/installing/)
若有需要自行設定pip 的proxy
$ set http_proxy=http://${yourproxy}
$ set https_proxy=http://${yourproxy
下載手動安裝執行
$ python get-pip.py - 升級 pip
$ python -m pip install --upgrade robotframework - Install Robot Framework.
$ python -m pip install robotframework - 驗證Robot Framework安裝完成.
$ python -m robot --version
Robot Framework 3.0.2 (Python 2.7.14 on win32) - Install selenium2library
$ python -m pip install robotframework-selenium2library - Install wxPython
$ python -m pip install -U wxPython
100% |████████████████████████████████| 22.9M MB
52kB/s
Collecting six (from wxPython)
Downloading six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, wxPython
Successfully installed six-1.11.0 wxPython-4.0.0b2
https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
And execute the installation wizard. - Install RIDE
$ python -m pip install robotframework-ride100% |████████████████████████████████| 583kB 846kB/s
Building wheels for collected packages: robotframework-ride
Running setup.py bdist_wheel for robotframework-ride ... done
Stored in directory: C:\xxxxxxxx\
Successfully built robotframework-ride
Installing collected packages: robotframework-ride
Successfully installed robotframework-ride-1.5.2.1 - Execute ride.py to run the RIDE.
It works. Done.