当前位置:网站首页>Pytest interface automated testing framework | common plug-ins of pytest
Pytest interface automated testing framework | common plug-ins of pytest
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
Plug in list URL :
docs.pytest.org/en/latest/reference/plugin_list.html
pytest Our ecosystem is very prosperous

pytest-HTML plug-in unit Generate test reports
Installation mode :pip install pytest-html
Usage method :pytest --html= User path /report.html
pytest.ini
[pytest]
# 01 Multiple command line parameters can be added , Separate... With spaces
addopts = -s -v --html=./report/report.html
# 02 Search folder , Execute the use case in the specified folder , front :pytest The rules There is a detailed explanation in the section
testpaths = ./scripts
# 03 Configure the file name of the test search , The default is to search test Opening file , Change to auto start , With .py All the files at the end
python_files = auto*.py
# 04 Configure the test class name for the test search , The default is Test Initial class , Change to Auto_ Initial class
python_classes = Auto_*
# 05 Test function name for configuring test search , The default is test Opening method / function , Change to auto_* start
python_functions = auto_*
# 06 Execute by tag , Ahead “ Execute use cases through markup expressions ” Detailed explanation , There's no more talk about
markers =
slow: Comment statement
smoke: Comment statement
serial边栏推荐
- 征婚故事
- 大量if else判断如何优化?@Valib详解
- 沟通中经常用到的几个库存术语
- System call capture and analysis - ring layer kprobe hijacks system calls
- Esp8266 Arduino programming example - development environment construction (based on Arduino IDE)
- V01 - XX,记录美好生活从日志开始
- 初试YOLOv7
- 3.2 create menu and game pages (Part 2)
- Why BGP server is used in sunflower remote control? Automatic optimal route and high-speed transmission across operators
- MILA旗下初创企业Ubenwa获得250万美元投资,研究婴儿健康AI诊断
猜你喜欢

4.1 configure MySQL and register login module

Sword finger offer 25. merge two sorted linked lists

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

X 2 earn must rely on Ponzi startup? Where is the way out for gamefi? (top)

Harbor2.2 quick check of user role permissions

Exploration on cache design optimization of community like business

【安徽大学】考研初试复试资料分享

系统调用捕获和分析完结篇制作系统调用日志收集系统

4.1 配置Mysql与注册登录模块

Flink 在 讯飞 AI 营销业务的实时数据分析实践
随机推荐
《多线程下ThreadLocal使用场景实例》
系统调用捕获和分析完结篇制作系统调用日志收集系统
常用的 list.isEmpty() 为何突然报null?
pytest接口自动化测试框架 | pytest配置文件
零基础小白也能懂的 Redis 数据库,手把手教你易学易用!
Esp8266 Arduino programming example GPIO input and output
专访即构科技李凯:音视频的有趣、行业前沿一直吸引着我
7月27日19:30直播预告:HarmonyOS3及华为全场景新品发布会
The latest heart-shaped puzzle applet source code + with flow master
Pycharm is really strong
了解 useRef 一篇就够了
System call capture and segmentation - RING3 layer LD_ Preload mechanism for library function hijacking
Understanding useref is enough
Colt DCS is serious about building a green data center!
Hou Peixin, chairman of the openharmony Working Committee of the open atom open source foundation, sent a message to the openatom openharmony sub forum
Pyechart offline deployment
Live broadcast preview at 19:30 on July 27: harmonyos3 and Huawei's full scene new product launch
Sword finger offer 25. merge two sorted linked lists
系统调用捕获和分析—修改内核方法添加系统调用
Sunflower senior product director technology sharing: how to apply in AD domain environment