首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

#pytest

Pytest测试实战|分布式执行

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

3810

Pytest参数化用例

霍格沃兹测试开发Muller老师

注意:必须在同目录下创建conftest.py文件,将下面内容添加进去,运行脚本后,才可以正常显示中文的重命名。

7410

pytest Mark标记测试用例

霍格沃兹测试开发Muller老师

skip:始终跳过该测试用例。采用添加装饰器@pytest.mark.skip,或者添加跳过代码pytest.skip(reason)等两种方式。

7210

Allure2添加用例标题、用例步骤

霍格沃兹测试开发Muller老师

应用场景:为了让生成的测试报告便于阅读,可以为每条用例添加一个便于阅读的标题(可以使用中文标题)。生成的报告展示用例时,就会以设置的标题名展示出来。

10710

Pytest测试框架

霍格沃兹测试开发Muller老师

6910

Pytest配置文件pytest.ini

霍格沃兹测试开发Muller老师

9210

pytest + yaml 框架 -69.新增depend 关键字,导入其它yaml用例

上海-悠悠

有小伙伴提到,test_a.yml 中已经写了几个流程,test_b.yml 中希望能接着test_a.yml去写用例,于是就需要先导入test_a.yml用例...

9310

基础测试框架之pytest和unittest之间新手如何选择?

苦叶子

而pytest则是通过插件和hook的方式,以易用性为本,提供了应对各种场景的插件、以及对框架本身的二次开发能力,非常适合企业级的应用。

9910

pytest

打铁读书郎

6310

pytest配置实用指南

苦叶子

在本文主要介绍以pytest.ini文件为配置文件的使用方法,不对tox.ini和setup.cfg说明,通常掌握了pytest.ini配置文件的使用,足以应对...

7310

如何安装、利用、激活、禁用pytest插件

苦叶子

在本文中,我们介绍如何安装和使用pytest第三方插件,对于如何自己开发pytest插件,我们后续写文继续更新。

7910

pytest + yaml 框架 -68.新增全局请求参数配置verify和headers

上海-悠悠

最近有小伙伴提到如何全局添加请求参数verify=False 和 全局请求添加头部参数如:{“x-token”: “xxx”} 之前的版本可以用fixture解...

9610

pytest 使用

MaybeHC

以上配置文件表示,pytest查找模块名为test_,check_,example_开头的模块,函数名为_test结尾的文件,Suite结尾的类

6210

Pytest测试实战|执行方式

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

8110

Pytest测试实战|参数化

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

7810

Pytest测试实战|Fixture详解

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

7310

Pytest测试实战|Conftest.py详解

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

7810

Pytest测试实战|执行常用命令

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

12110

Pytest测试实战|常用插件

无涯WuYa

The pytest framework makes it easy to write small, readable tests, and can scale...

4910
领券