I. Installation Package
1. Python
2. robotframework
3. Selenium
4. selenium2library
5. wxpython
6. Install ride
Ii. Installation Process
The robot framework is written in the Python language. Therefore, you must install the python environment before installing the robot framework.
The robot framework only supports Python version 2.x. I use version 2.6.6 and version 2.71 and 2.72 are also tested.
Http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
Download the package and install it all the way to next.
After installation, add the python directory itself and its subdirectory script to the path of the environment variable. For example, D: \ python26 and D: \ python26 \ Script
- Verify whether the installation is successful
On the command line, enter:
Python -- version if the version is successfully displayed, the installation is successful.
- 2. Install the robot framework
We recommend that you install the latest version 2.8 and download the Win32 version (64-bit OS can download the 64-bit version)
Https://pypi.python.org/pypi/robotframework/2.8.5
Install RF, unzip the RF to a local directory (such as a drive C), and run the command to the directory (CD \; CD robotframework-2.8.1) to execute Python setup. py install.
- Verify whether the installation is successful
On the command line, enter:
Pybot -- version if the version is successfully displayed, the installation is successful.
Jybot -- version if the version number is successfully displayed, it means that the Jython environment has been installed successfully and you can walk on two legs.
Install selenium. Same as above
Https://pypi.python.org/pypi/selenium/2.40.0
- 4. Install selenium2library
Install selenium2library. The method is the same as above.
Https://pypi.python.org/pypi/robotframework-selenium2library/1.5.0
Before installing ride, you need to install the ride Runtime Library wxpython in advance, which is similar to the Java swing library.
Go to the wxpython Download Page
Http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
Select the following version for win64 (UNICODE must be selected, or Chinese characters are not supported)
WxPython2.8-win64-unicode-2.8.12.1-py27.exe
Download the package and install it all the way to next.
After wxpython is installed, you can install ride.
Go to the ride homepage and find the download link in the lower-left corner. (The current maximum version is 0.39)
Https://pypi.python.org/pypi/robotframework-ride/1.3#downloads
Robotframework-ride-1.3.win-amd64.exe (MD5)
After the download, the next installation is complete.
- Verify that ride is successfully installed.
On the command line, enter:
ride.py
If the following ride interface appears, the installation is successful. If an error is prompted, it may be that wypython is not correctly installed or ride. py is not in the environment variable pyth, You need to manually add the environment variable (generally ride. py is automatically installed in the scripts directory of Python .)
Iii. Try it
1. First open ride
2. Create a project:
You can set the name and path by yourself. There is a type and format on the right. For projects, we recommend that you use directory for type and select TXT for format to facilitate management.
3. Create a new suite
Here, you can select file as the type. The difference is that test case can be written directly under file, but not under directory.
4. Create a test case
5. Edit case
Before editing a case, you must first import the selenium2library and add the library in the suite.
Enter the library name selenium2library.
Now you can edit the case.
Open browse is a keyword, so it is blue. You can press F5 to view the keywords.
6. perform the test
7. view the report
Robot framework-Installation