当前位置:网站首页>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


边栏推荐
- Mongodn database is connected in the form of URL
- Swagger2.9.2 tutorial and swagger3.0.0 tutorial
- Who is responsible for the problems of virtual idol endorsement products? And listen to the lawyer's analysis
- 以太网驱动详解之RMII、SMII、GMII、RGMII接口
- Redis实现Single单点登入--系统框架搭建(一)
- 3.1 创建菜单与游戏页面——上
- 基于 Flink CDC 实现海量数据的实时同步和转换
- [download attached] a powerful web automated vulnerability scanning tool - Xray
- 【通信原理】第三章 -- 随机过程[上]
- Wechat applet - Advanced chapter Lin UI component library source code analysis button component (I)
猜你喜欢
随机推荐
PyCharm是真的强
Data center construction (II): brief introduction to data center
Hashtable
开放原子开源基金会OpenHarmony工作委员会主席侯培新寄语OpenAtom OpenHarmony分论坛
Li Kai: the interesting and cutting-edge audio and video industry has always attracted me
Win10 uses NVM to install node, NPM, and cnpm
Leetcode / Scala - sum of two numbers, three numbers, four numbers, and N numbers
LeetCode / Scala - 两数,三数,四数,N数之和
Understanding useref is enough
c语言代码量统计工具
线上一个隐匿 Bug 的复盘
Esp8266 Arduino programming example - know esp8266
【倒计时10天】腾讯云音视频专场即将见面,千元大奖等你来拿!
System call capture and analysis - ring layer kprobe hijacks system calls
C language code quantity statistical tool
程序员培训学习后好找工作吗?
Who is responsible for the problems of virtual idol endorsement products? And listen to the lawyer's analysis
Cohere博客:在生产环境中运行大型语言模型-推理框架概览
Redis实现Single单点登入详解
Mongodn database is connected in the form of URL









