python怎么进入考试_怎么用python进行测试

展开全部

These instructions explain how to run this guide yourself. If you are not interested in that, you can nevertheless view the results online.

Installations

The recommended approach to install Robot Framework on Python is using pip. Once you have both of these preconditions installed, you can simply run:

pip install robotframework

See Robot Framework installation instructions for alternative installation approaches and more information about installation in general.

This demo is written using reStructuredText markup language with Robot Framework test data in code blocks. Executing tests in this format requires installing additional docutils module:

pip install docutils

Notice that Robot Framework 3.0 is the first Robot Framework version to support Python 3. See the aforementioned installation instructions for information about Python 2 vs Python 3.

Execution

After installations you still need to get the demo itself. It is easiest to download a certain release or grab the latest contentand extract the package somewhere, but it is also possible to clone the project repository.

After installations and with all other preconditions in place, you can run the demo on the command line by using the robotcommand:

robot QuickStart.rst

If you use Robot Framework 2.9 or older, instead of the robot command you need to use pybot:

pybot QuickStart.rst

You can also configure the execution with various command line options:

robot --log custom_log.html --name Custom_Name QuickStart.rst

For a list of available options run robot --help.

Viewing results

Running the demo generates the following three result files. These files are linked to pre-executed files available online, but executing the demo creates them locally.report.html

Higher level test report.

log.html

Detailed test execution log.

output.xml

Results in machine readable XML format.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值