当前位置:网站首页>pytest接口自动化测试框架 | 使用函数返回值的形式传入参数值
pytest接口自动化测试框架 | 使用函数返回值的形式传入参数值
2022-08-01 07:12:00 【COCOgsta】
视频来源:B站《冒死上传!pytest接口自动化测试框架(基础理论到项目实战及二次开发)教学视频【软件测试】》
一边学习一边整理老师的课程内容及试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:pytest接口自动化测试框架 | 汇总_COCOgsta的博客-CSDN博客
import pytest
def return_data():
return [(1,2),(3,4)]
# 使用函数返回值的形式传入参数值
@pytest.mark.parametrize("a,b", return_data())
def test_01(a,b):
print("\n" + "a=%d, b=%d" % (a,b))
if __name__ == '__main__':
pytest.main(['-s', 'test_return.py'])边栏推荐
- LeetCode240+312+394
- "By sharing" northwestern university life service | | bytes a second interview on three sides by HR
- 牛客刷SQL---2
- 2022杭电多校第二场1011 DOS Card(线段树)
- 聊一聊ICMP协议以及ping的过程
- LevelSequence源码分析
- Dart 异常详解
- Information system project managers must recite the work of the core test site (56) Configuration Control Board (CCB)
- Xiaobai's 0 Basic Tutorial SQL: An Overview of Relational Databases 02
- 插入排序—直接插入排序和希尔排序
猜你喜欢
随机推荐
Leetcode第 304 场周赛
插入排序—直接插入排序和希尔排序
matlab wind speed model wavelet filtering
Summary of test points about app updates in different ways
问下 mysql向pg同步多个表的话 有什么好的方案吗?
Zero-code website development tool: WordPress
LeetCode 0149. Maximum number of points on a line
NIO编程
Golang: go open web service
rhcsa 第三次
太厉害了,终于有人能把文件上传漏洞讲的明明白白了
first unique character in characters
Fist game copyright-free music download, League of Legends copyright-free music, can be used for video creation, live broadcast
datagrip 报错 “The specified database userpassword combination is rejected...”的解决方法
从零开始—仿牛客网讨论社区项目(一)
LabVIEW中局部变量和全局变量的分配
Srping中bean的生命周期
Offer brush questions - 1
测试工具(四)Jenkins环境搭建与使用
VSCode 快捷键及通用插件推荐








