当前位置:网站首页>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'])边栏推荐
- How JS works
- Sound Signal Processing Fundamental Frequency Detection and Time-Frequency Analysis
- 头歌MySQL数据库实训答案 有目录
- 【视觉SLAM十四讲】第一章理论详解
- 爆肝3万字,最硬核丨Mysql 知识体系、命令全集 【建议收藏 】
- 爬虫基本原理介绍、实现以及问题解决
- The BP neural network based on MATLAB voice characteristic signal classification
- LeetCode Question of the Day (309. Best Time to Buy and Sell Stock with Cooldown)
- Dart exception details
- 爬虫框架 Scrapy 详解
猜你喜欢

滚动条样式修改

Three aspects of Ali: How to solve the problem of MQ message loss, duplication and backlog?

Golang: go static file processing

图片无损压缩软件哪个好用:试试完全免费的JPG-C 图片批量修整压缩减肥工具吧 | 最新jpg批量修整工具下载

Using FiddlerScript caught poly FiddlerScript 】 【 download

小程序通过云函数操作数据库【使用get取数据库】

MVVM project development (commodity management system 1)

matlab wind speed model wavelet filtering

Introduction to the basic principles, implementation and problem solving of crawler

实战演练 Navicat 中英文模式切换
随机推荐
special day to remember
Offer brush questions - 1
my creative day
"By sharing" northwestern university life service | | bytes a second interview on three sides by HR
Using FiddlerScript caught poly FiddlerScript 】 【 download
Fist game copyright-free music download, League of Legends copyright-free music, can be used for video creation, live broadcast
金山打字通 官网 下载
How to generate and configure public key certificate in Alipay
LeetCode 0149. Maximum number of points on a line
JVM:运行时数据区-PC寄存器(程序计数器)
app 自动化 通过工具查看app 元素 (三)
【ASWC Arxml结构分解】-7-Explicit(显式)和Implicit(隐式) Sender-Receiver communication描述差异
插入排序—直接插入排序和希尔排序
头歌MySQL数据库实训答案 有目录
LeetCode Question of the Day (309. Best Time to Buy and Sell Stock with Cooldown)
小程序通过云函数操作数据库【使用get取数据库】
Dart 异常详解
MVVM project development (commodity management system 1)
奇葩问题 npm install 报错 gyp ERR
Data organization -- singly linked list of the linear table