1. Install Python (Python 3.7.6-amd64) on your computer.

1. Go to the python's official website to download python installation package, address: https://www.python.org/getit/ 2. After the completion of the download, install, the installation steps for reference: https://blog.csdn.net/weixin_40844416/article/details/80889165 3. After the installation is complete, you need to configure the environment variable path (you do not need to configure it if automatic write was selected when installing Python) 4. Run CMD, enter python, and press Enter. If the version information is displayed, the installation is successfulCopy the code

Python3.8 is not compatible with the version of the robotFramework. If python3.8 is installed, it will cause the Edit screen in the RIDE window to be blank

2. Install the PIP. Before installing the PIP, ensure that the Python environment on the PC is normal

1. Download the installation package from the official website

2. Decompress the downloaded installation package to drive C :\ PIP. Then CMD opens the command window and goes to the PIP file

   

3. In the PIP directory, run the python setup.py install command to install the PIP module. After the installation is complete, Finished is displayed, indicating that the installation is successful



Note: If you enter "python setup.py install", error: can is returned't create or remove files in install directory 'Copy the code

1. Locate the Python file location, right click on properties

2. On the Python properties page, click the Security page, select Users, and click Edit to change permissions

3. After the permission is changed, run the python setup.py install command again. The installation succeeds

3. RobotFramework download

1. Baidu search: robotFramework download, select the following link:

2. Enter the site, choose to download version (https://pypi.org/project/robotframework/#files)

3. After downloading, decompress to disk C, as shown in the figure below:

4. Run the CMD command to go to drive C and run Python setup.py install.

5. After the installation is complete, Finished is displayed indicating that the installation is successful

6. After the installation is complete, you can view the robotFramework files in the python file directory

4. Install wxPython (official website to download address: https://pypi.org/project/wxPython/)

Install using the PIP commandCopy the code

1. Open the CMD window

2. Enter PIP install wxPython to install it

3. After the installation is successful, enter python in the CMD window to go to the Python command interaction window

4. Run the import wx command to check whether the installation is successful. If no error message is displayed, the installation is successful

Note: If the following error message is displayed during installation:Copy the code
Solve way is: change the PIP source to domestic mirror, to enter the command: PIP install wxpython -i https://pypi.douban.com/simpleCopy the code

5. Install Robot Framework-ride

1. Download the Robot framework - ride (website address: https://pypi.org/project/robotframework-ride)

2. After downloading, decompress to disk C, as shown in the figure:

3. Open the CMD window, go to drive C, and run Python setup.py install.

4. After the installation is successful, pythonwe can be used to view the file

6. Install robotframeworklexer

PIP install robotframeworklexerCopy the code

7. Install Pypubsub

PIP install Pypubsub==3.3.0Copy the code

8. Robotframework – selenium2library installation

PIP install RobotFramework -selenium2Library PIP install RobotFramework -selenium2LibraryCopy the code

9. In the CMD window, enter PIP List to check whether the software is successfully installed and which software is installed



10. Start the RIDE interface

1. Enter ride.py in a CMD command window or "Python ride.py" in C: Program Files\Python38\Scripts>.

2. After the startup is successful, the RIDE drawing automatically opens

Note: If the startup fails, the following error occurs:

Solution: 1. Find the application.py file

2. Open the file with notepad++ and add the following code to the def OnInit function: self.locale = wx.locale (wx.language_english) save the file and run it again

If the following error message is displayed after the operation :(the cause is that the space and newline characters are inconsistent)

1. Application. Py file open with notepad++, select view --> show symbols --> show Spaces and tabs to check if there are Spaces in the added code, then save the file and re-run: ride.py command

11. Create shortcuts for robotframework tools

1. Right-click on the desktop and choose create shortcut -----> Select file location

-c "from robotide import main; "C:\Program Files\Python38\pythonw.exe -c "from robotide import main; Main ()" Click on the step to create it

3. Modify the program software icon: Right-click the file and select properties ----> Change icon ----> find the program icon path (%ProgramFiles%\Python38\Lib\ site-Packages \ Robotide \ Widgets \robot.ico) select the icon and click OK to submit

4. The following information is displayed:



12. Run the RIDE

1. The interface function is introduced: the reference link -- -- > https://www.icode9.com/content-4-608779.html

13. Install RequestsLibrary to perform interface tests

1. Download RequestsLibrary and install it

Install requests first by running the PIP install requests command in a CMD command window



Install requests first by running the PIP install requests command in a CMD command window