Robot framework test library installation

1. Built-in library

Robot framework built-in library path: %PATHON_PATH%\Lib\site-packages\robotframework-3.0.2-py2.7.egg\robot\libraries

RIDE reads the path of built-in libraries: %PATHON_PATH%\Lib\site-packages\robotide\lib\robot\libraries

Generally, the library files under the robot framework should be copied to the library file path of RIDE to ensure that RIDE reads the latest library files

2. External library

The robot framework is developed based on python, and the installation of the external library is the same as the installation of the python library:

Install through pip (you need to know the library name, you can go to https://pypi.org website to check), easy to install;

Install python setup.py install with source code, need to resolve dependencies

2.1 SeleniumLibrary (web automation test)

The latest version of SeleniumLibrary3.1.1 is already compatible with the old SeleniumLibrary and Selenium2Library

Download address: https://github.com/robotframework/SeleniumLibrary

After the installation is successful, the library storage path: %PATHON_PATH%\Lib\site-packages\robotframework_seleniumlibrary-3.1.1-py2.7.egg\SeleniumLibrary\

SeleniumLibrary dependencies:

  decorator

  selenium

  robotframework

  docutils

Chromedriver download address: http://chromedriver.storage.googleapis.com/index.html 

IEdriver download address: http://selenium-release.storage.googleapis.com/index.html

Firefox driver download address: https://github.com/mozilla/geckodriver/releases/

2.2AutoItLibrary (c/s automated test)

  Limitation: Only standard win32 system controls are recognized

  pywin32 download address: https://sourceforge.net/projects/pywin32/files/pywin32/

  AutoItLibrary download address: https://github.com/qitaos/robotframework-autoitlibrary

  AutoIt download address: https://www.autoitscript.com/site/autoit/downloads

  Installation complete library storage path: %PYTHON_PATH%\Lib\site-packages\AutoItLibrary

2.3DatabaseLibrary (database test)

  Download address: https://github.com/franz-see/robotframework-database-library

  Installation complete library storage path: %PYTHON_PATH%\Lib\site-packages\robotframework_databaselibrary-1.0.1-py2.7.egg\DatabaseLibrary

2.4 AppiumLibrary (mobile terminal automated testing)

  Install in sequence: Appium

            Appium-Python-Client

         robotframework-appiumlibrary

       Installation complete library storage path: %PYTHON_PATH%\Lib\site-packages\AppiumLibrary

2.5 Import into test project in RIDE editor

 

       

  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325347929&siteId=291194637