Robot Framework (1) - to build and install the Environment

First, understand the Robot Framework

Robot Framework is not a testing tool, precisely, it is an automated testing framework, or that it is an automated testing platform

Characteristics are as follows:

1. Supports keyword-driven, data-driven and driving behavior

2. Test execution reports and logs in HTML format, easier to read

3. easy to expand, testers can create your own needs test libraries with Python and java

4. Provide a remote test execution interface that can be distributed test execution

5. Easy to use, the use of tabular syntax, unified test format

Second, the installation and configuration environment

1.Python(3.7.3)

1> RF Python frame is based need to install Python

Download: http: //www.python.org/downloads/

Note: Because the compatibility issues, try to use compatible versions herein, this can be used as reference

 

2> If checked, will automatically configure the environment variables, just in case, to confirm:

【Path】增加:C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37

3> View Python installation was successful

4> View pip can run the command

 

2.Setuptools(40.8.0)

Setuptools support the installation of a variety of test tools for libraries, information will install good test libraries in a common file

Download: https: //pypi.python.org/pypi/setuptools/

Installation:

1> Download the zip file, extract, cut to extract the directory directory, enter the command: python setup.py install

2> pip install setuptools command line command to install, this is the recommended

3.Robot Framework(3.1)

Download: https: //pypi.org/project/robotframework/

Installation:

1> Download the zip file, extract, cut to extract the directory directory, enter the command: python setup.py install

2>命令行输入pip install robotframework==3.1命令进行安装,建议使用这种

4.wxPython(4.0.6)

 wxPython是用于支持Python图形化界面的,主要用来运行RIDE

下载地址:https://pypi.org/project/wxPython/

安装方式:

1>下载压缩文件,解压,目录切到解压目录,输入命令:python setup.py install

2>命令行输入pip install wxPython命令进行安装,建议使用这种

5.robotframework-ride(1.7.3.1)

RIDE是一个可视化界面工具,能更加方便的编写测试案例

下载地址:https://pypi.org/project/robotframework-ride/

安装方式:

1>下载压缩文件,解压,目录切到解压目录,输入命令:python setup.py install

2>命令行输入pip install robotframework-ride==1.7.3.1命令进行安装,建议使用这种

打开方式:

1>打开RIDE界面,命令行输入:ride.py

2>添加快捷方式

进到C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37\Scripts\ride.py下,右键创建快捷方式,将快捷方式放到桌面

注:可以更换图标(图标路径C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37\Lib\site-packages\robotide\widgets)

快捷方式右键属性,更换图标

更改成功:

3>双击C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37\Lib\site-packages\robotide\_init_.py或者C:\Users\DXM_0019\AppData\Local\Programs\Python\Python37\Scripts\ride.py启动程序

 

安装成功,可以开始学习之旅了,后续会更新

Guess you like

Origin www.cnblogs.com/icy88/p/10930454.html