当前位置:网站首页>Pytest interface automation test framework | pytest configuration file
Pytest interface automation test framework | pytest configuration file
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.ini
[pytest]
# 01 Multiple command line parameters can be added , Separate... With spaces
addopts = -s -v
# 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
serialSuch as ini After adding comments to the file , Run time appears “UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 16: illegal multibyte sequence” error , adjustment ini File format , as follows , Set to GBK


边栏推荐
- Miccai2022 paper | evolutionary multi-objective architecture search framework: application in covid-19 3D CT classification
- 初试YOLOv7
- CVPR 2022 单目深度估计新SOTA—NeW CRFs:Neural Window Fullyconnected CRFs
- 以太网驱动详解之RMII、SMII、GMII、RGMII接口
- Machine learning by Li Hongyi 2. Regression
- Big view +500 cases, software teams should improve R & D efficiency in this way!
- flink 写redis 比较慢,大家有啥思路优化吗?
- Database composition indexes and constraints
- 【通信原理】第一章 -- 绪论
- 向日葵资深产品总监技术分享:如何在AD域环境下应用
猜你喜欢

Pyechart offline deployment

pytest接口自动化测试框架 | pytest常用插件
![[ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)](/img/84/640de0bf779cd45498204909be56d1.png)
[ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)

4.1 configure MySQL and register login module

以太网驱动详解之RMII、SMII、GMII、RGMII接口

哈希表

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

Meiker Studio - Huawei 14 day Hongmeng equipment development practical notes 8

3.2 创建菜单与游戏页面(下)

大咖观点+500强案例,软件团队应该这样提升研发效能!
随机推荐
Pytoch -- error based on mmseg/mmdet training: runtimeerror: expected to have finished reduction in the priority iteration
【通信原理】第二章 -- 确知信号
【附下载】一款强大的Web自动化漏洞扫描工具——Xray
程序员培训学习后好找工作吗?
最新心形拼图小程序源码+带流量主
PyCharm是真的强
按位与怎么写SQL
音视频+
音视频技术开发周刊 | 255
System call capture and analysis - modify kernel methods to add system calls
Esp8266 Arduino programming example - development environment construction (based on Arduino IDE)
Flink 在 讯飞 AI 营销业务的实时数据分析实践
Acwing727. Diamond pattern
【活动早知道】LiveVideoStack近期活动一览
Application scheme of ankerui residual pressure monitoring system in residential quarter
pytest接口自动化测试框架 | 通过标记表达式执行用例
Is it easy to find a job after programmer training?
Harbor2.2 quick check of user role permissions
浅谈低代码技术在物流运输平台中的搭建与管理
[countdown 10 days] Tencent cloud audio and video special is about to meet, and the thousand yuan prize is waiting for you!