Detailed installation steps for frequently used third-party libraries in the robot framework

Source: Internet
Author: User
PIP Upgrade:
python-m pip Install--upgrade pip

First, install robotframework-selenium2library, equivalent to the selenium in Python
Cmd>pip Install Robotframework-selenium2library

Second, the interface test request
CMD>PIP Install requests (support the second step, otherwise RF introduced Requestslibrary Library will error)
Cmd>pip Install-u robotframework-requests

Third, the relevant dictionary
Load collections directly without PIP install

Iv. installation of MySQL
Install the Databaselibrary library First, then install the Pymysql
Where the installation of the Databaselibrary library is a bit special, so put in the last record
Here is a copy of the contents according to Jing, the Databaselibrary Library has the original and modified version of the points.

1, installation Databaselibrary
1). How to install the original
The original installation has 2 methods:
A. PIP installation
Cmd>pip Install robotframework-databaselibrary (Note: This is version 0.6)
B. Source code Installation
On GitHub download version 0.7, and then unzip the installation, previously introduced the installation method, into the extracted directory (with setup.py file),
Then enter: Python setup.py install

2). How to install the modified version
Because the original package is a bit small problem: SQLite under Windows can only use the current directory of the database file, specify the path because of the Windows path delimiter \ In Python as an escape character,
Then add the implementation of some small problems, to use \\\\ to do the path separation, so I made a little change to solve the problem.
Modified version of GitHub home: https://github.com/qitaos/Robotframework-Database-Library
Modified version of PyPI home: https://pypi.python.org/pypi/robotframework-databaseslibrary
And the original path is very similar, I just add a s, copyright or belong to the original author.
There are 2 ways to install a modified version:
A. PIP installation
Cmd>pip Install Robotframework-databaseslibrary
B. Source code Installation
To the modified version of the GitHub webpage to download the latest version, into the extracted directory (with setup.py file),
Then enter: Python setup.py install

Note: Although the modified version of the PIP installed on the name of the addition of a s, but load the test library, the name is still databaselibrary, so if you install the original, and then install the modified version, will be overwritten.
However, the coverage of this actually has little impact, recommend the use of modified version.

2, the above completed the installation of the Databaselibrary library, and then install MySQL
Cmd>pip Install Pymysql

In summary, the best command to install MySQL with PIP is:
Cmd>pip Install Robotframework-databaseslibrary
Cmd>pip Install Pymysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.