当前位置:网站首页>Pytest interface automation test framework | rerun failed cases
Pytest interface automation test framework | rerun failed cases
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-rerunfailures It's a way to make pytest Rerun the tested plug-in , To eliminate intermittent faults .
Installation requirements :
The following prerequisites are required to use pytest-rerunfailures:
python3.5, The highest 3.8 or Pypy3
pytest 5.0 Or later
Currently, for the recent 5 Secondary pytest Version tested the package . If you are using an earlier version pytest, You should consider updating or using one of the earlier versions of this software package .
install
pip install pytest-rerunfailures
test_rerun.py
import pytest
def test_case01():
assert 1!=1
def test_case02():
assert 1 ==2
def test_case03():
assert 1 ==3
def test_case04():
assert 1 ==4main.py
import pytest
if __name__ == '__main__':
# Rerun all test failure cases , Please use --reruns Command line options , And set the maximum number of tests to run
# pytest.main(['--reruns', "5", "test_rerun.py"])
# To increase the delay between two retries , Please use --reruns-delay, This includes the number of seconds you want to wait before the next test restarts
pytest.main(['--reruns', "2", "--reruns-delay", "1", "test_rerun.py"])边栏推荐
- [early knowledge of activities] list of recent activities of livevideostack
- 按位与怎么写SQL
- [download attached] a powerful web automated vulnerability scanning tool - Xray
- pytest接口自动化测试框架 | conftest.py
- System call capture and segmentation - RING3 layer LD_ Preload mechanism for library function hijacking
- pytest接口自动化测试框架 | fixture调用fixture
- Ga-rpn: recommended area network for guiding anchors
- There are various signs that apple is expected to support AV1
- 滴滴被罚80亿!拿用户数据赚钱的时代结束了
- 建模杂谈系列150 SCLC工程化实验3-SRule
猜你喜欢

Wechat applet - Advanced chapter Lin UI component library source code analysis button component (I)

Cohere博客:在生产环境中运行大型语言模型-推理框架概览

7月27日19:30直播预告:HarmonyOS3及华为全场景新品发布会

Acwing727.菱形图案

征婚故事

武林头条-建站小能手争霸赛

Esp8266 Arduino programming example - development environment construction (based on platformio)

基于 Flink CDC 实现海量数据的实时同步和转换

【附下载】一款强大的Web自动化漏洞扫描工具——Xray

Ga-rpn: recommended area network for guiding anchors
随机推荐
了解string类
3.1 创建菜单与游戏页面——上
[communication principle] Chapter 1 -- Introduction
MILA旗下初创企业Ubenwa获得250万美元投资,研究婴儿健康AI诊断
Koin
Didi was fined 8billion! The era of making money from user data is over
开放原子开源基金会OpenHarmony工作委员会主席侯培新寄语OpenAtom OpenHarmony分论坛
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
pytest接口自动化测试框架 | 重新运行失败用例
数据库组成 触发器
3.1 create menu and game page - up
Miccai2022 paper | evolutionary multi-objective architecture search framework: application in covid-19 3D CT classification
LeetCode / Scala - 两数,三数,四数,N数之和
【安徽大学】考研初试复试资料分享
线上一个隐匿 Bug 的复盘
Ga-rpn: recommended area network for guiding anchors
System call capture and analysis - ring layer kprobe hijacks system calls
Pyechart offline deployment
"Mongodb" mongodb high availability deployment architecture - replica set
c语言代码量统计工具