当前位置:网站首页>Pytest interface automation test framework | execute use cases through markup expressions
Pytest interface automation test framework | execute use cases through markup expressions
2022-07-26 11:57:00 【COCOgsta】
Video source :B standing 《 Risking your life to upload !pytest Interface automation test framework ( From basic theory to project practice and secondary development ) Teaching video 【 software test 】》
Organize the teacher's course content and test notes while studying , And share it with you , Infringement is deleted , Thank you for your support !
Attach summary sticker :pytest Interface automation test framework | Summary _COCOgsta The blog of -CSDN Blog
pytest -m slow
This command will execute the decorator @pytest.mark.slow All test cases decorated
import pytest
# Failure
def test_fail01():
print(" The first failure ")
assert 1==2
@pytest.mark.slow
def test_fail02():
print(" The second failure ")
assert 1 == 2
@pytest.mark.slow
def test_hello():
print(" The third success ")
assert 1 == 1
Need to create main.py, And execute the py In the document main function
import pytest
if __name__ == '__main__':
# pytest.main(["--maxfail=2", "test_fail2.py"])
# Execute through a markup expression
# pytest.main(["-m", "slow", "test_fail2.py"])
pytest.main(["-m", "not slow", "test_fail2.py"])边栏推荐
- Leetcode / Scala - sum of two numbers, three numbers, four numbers, and N numbers
- 代码实例详解【可重入锁】和【不可重入锁】区别?
- LeetCode / Scala - 两数,三数,四数,N数之和
- 建模杂谈系列151 SCLC工程化实验4-SCLC对象
- [communication principle] Chapter 3 -- random process [i]
- 3.1 创建菜单与游戏页面——上
- MICCAI2022论文 | 进化多目标架构搜索框架:在COVID-19三维CT分类中的应用
- 浅谈Web Vitals
- Li Kai: the interesting and cutting-edge audio and video industry has always attracted me
- 征婚故事
猜你喜欢

Swagger2.9.2 tutorial and swagger3.0.0 tutorial

元宇宙日报|元宇宙社交 App“派对岛”产品下架;广州南沙元宇宙产业集聚区揭牌;数字经济发展部际联席会议制度推出

V00 - 年纪大了,想做啥就做啥吧

最新心形拼图小程序源码+带流量主

Redis database, which can be understood by zero foundation Xiaobai, is easy to learn and use!

4.1 配置Mysql与注册登录模块

Audio and video technology development weekly | 255

Pycharm is really strong

4.1 configure MySQL and register login module

Substance painter 2021 software installation package download and installation tutorial
随机推荐
Leetcode / Scala - sum of two numbers, three numbers, four numbers, and N numbers
Wechat applet - Advanced chapter Lin UI component library source code analysis button component (I)
Yuancosmos daily | yuancosmos social app "Party Island" product off the shelves; Guangzhou Nansha yuanuniverse industrial agglomeration zone was unveiled; The inter ministerial joint conference system
滴滴被罚80亿!拿用户数据赚钱的时代结束了
There are various signs that apple is expected to support AV1
以太网驱动详解之RMII、SMII、GMII、RGMII接口
pytest接口自动化测试框架 | pytest的setup和teardown函数
[ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)
线上一个隐匿 Bug 的复盘
C language code quantity statistical tool
Substance painter 2021 software installation package download and installation tutorial
MILA旗下初创企业Ubenwa获得250万美元投资,研究婴儿健康AI诊断
Pycharm is really strong
【活动早知道】LiveVideoStack近期活动一览
【通信原理】第二章 -- 确知信号
程序员培训学习后好找工作吗?
Query advanced alias
Pyechart offline deployment
虚拟偶像代言产品出问题谁负责? 且听律师分析
远程ip Debugger(实用干货)