- 博客(105)
- 收藏
- 关注
原创 D105【python 接口自动化学习】- pytest进阶参数化用法
多参数循环 @pytest.mark.parametrize("a,b",[("c","d"),("e","f")])
2024-12-25 00:05:58
354
原创 D104【python 接口自动化学习】- pytest进阶参数化用法
单参数单次循环,@pytest.mark.parametrize("a",["b"])...
2024-12-23 23:13:35
394
1
原创 D103【python 接口自动化学习】- pytest进阶之fixture用法
@pytest.fixtrue(params=["参数1","参数2"],ids=["用例1"],"用例2"])...
2024-12-22 23:07:44
336
原创 D101【python 接口自动化学习】- pytest进阶之fixture用法
fixture的作用范围:session>module>class>function...
2024-12-18 22:40:56
663
原创 D99【python 接口自动化学习】- pytest进阶之fixture用法
conftest.py为固定写法,不可修改名字,使用conftest.py文件方法无需导入...
2024-12-16 23:26:15
448
原创 D98【python 接口自动化学习】- pytest进阶之fixture用法
(scop="session") 是多个文件调用一次,.py文件就是module...
2024-12-15 20:06:57
337
原创 D96【python 接口自动化学习】- pytest进阶之fixture用法
@pytest.fixture(scope="class") 每一个类调用一次...
2024-12-12 23:13:46
452
原创 D95【python 接口自动化学习】- pytest进阶之fixture用法
func的autouse是TRUE时,所有函数方法都会调用func...
2024-12-11 23:32:51
562
原创 D94【python 接口自动化学习】- pytest进阶之fixture用法
fixture是 pytest 用于将测试前后进行预备、清理工作的代码处理机制...
2024-12-11 23:32:32
542
原创 D91【python 接口自动化学习】- pytest基础用法
类级 setup_class/teardown_class 只在类中前后运行一次(在类中)...
2024-12-07 16:59:17
497
原创 D90【python 接口自动化学习】- pytest基础用法
函数级 setup_function/teardown_function 对每条函数用例生效...
2024-12-06 22:37:41
298
原创 D89【python 接口自动化学习】- pytest基础用法
模块级 setup_module/teardown_module 开始于模块始末...
2024-12-05 23:28:35
540
原创 D85【python 接口自动化学习】- pytest基础用法
pytest执行测试用例,不跟目标文件或目录,会执行根目录下所有符合规则的测试用例...
2024-12-01 22:23:15
864
原创 D76【 python 接口自动化学习】- python 基础之 HTTP
接口参数的类型包括string,int,float,boolean接口测试的方法包括业务功能测试,边界分析测试,性能测试和安全测试判断接口正确需要看状态码,接口数据,接口类型和值。
2024-11-22 17:22:47
596
原创 D72【 python 接口自动化学习】- python 基础之正则表达式
正则表达式是一种字符串验证的规则,通过特殊的字符串组合来确立规则,用规则去匹配字符串是否满足...
2024-11-18 22:08:03
739
原创 D70【 python 接口自动化学习】- python 基础之数据库
使用Python实现读取写入数据库操作ps.今天去看航展了,歼20简直不要太快,明天再来补作业~
2024-11-16 23:33:30
283
原创 D69【 python 接口自动化学习】- python 基础之数据库
redis是一款高性能的键值数据库2. Python使用redis-py 库连接数据库3. 可以对redis数据库进行读写操作。
2024-11-15 21:35:33
439
原创 D68【python 接口自动化学习】- python基础之数据库
commit提交:pymysql库在执行对数据库有修改操作的行为时,是需要通过链接对象的commit成员方法来进行确认的,只有确认的修改,才能生效...
2024-11-14 23:15:50
420
原创 D67【python 接口自动化学习】- python基础之数据库
Python中使用第三方库:pymysql来操作MySQL,安装命令:pip install pymysql...
2024-11-13 22:01:13
632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅