自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 D102【python 接口自动化学习】- pytest进阶之fixture用法

pytest的usefixtures方法,无法接收返回值...

2024-12-19 23:11:17 722

原创 D101【python 接口自动化学习】- pytest进阶之fixture用法

fixture的作用范围:session>module>class>function...

2024-12-18 22:40:56 663

原创 D100【python 接口自动化学习】- pytest进阶之fixture用法

pytest使用yield做后置处理...

2024-12-17 22:08:43 445

原创 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

原创 D97【python 接口自动化学习】- pytest进阶之fixture用法

(scop="module") 每一个.py文件调用一次...

2024-12-14 23:03:46 158

原创 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

原创 D93【python 接口自动化学习】- pytest基础用法

pytest中一个接口的参数可以返回,用于另一个接口的入参形成依赖...

2024-12-09 22:44:20 878

原创 D92【python 接口自动化学习】- pytest基础用法

@pytest.mark.skip 跳过标记的用例...

2024-12-08 12:22:40 407

原创 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

原创 D88【python 接口自动化学习】- pytest基础用法

pytest使用ini配置指定运行参数...

2024-12-04 23:05:34 681

原创 D87【python 接口自动化学习】- pytest基础用法

pytest -k 执行用例包含“关键字”的用例...

2024-12-03 23:46:15 1025

原创 D86【python 接口自动化学习】- pytest基础用法

创建pytest.ini文件,配置testpaths可指定目标目录或文件...

2024-12-02 23:36:26 734

原创 D85【python 接口自动化学习】- pytest基础用法

pytest执行测试用例,不跟目标文件或目录,会执行根目录下所有符合规则的测试用例...

2024-12-01 22:23:15 864

原创 D84【python 接口自动化学习】- pytest基础用法

pytest中用assert进行断言...

2024-11-30 22:46:18 350

原创 D83【python 接口自动化学习】- pytest基础用法

测试用例默认从后往前执行顺序...

2024-11-29 23:24:16 379

原创 D82【python 接口自动化学习】- pytest基础用法

py测试文件必须以test_开头(或_test结尾)...

2024-11-28 23:26:59 368

原创 D81【 python 接口自动化学习】- python基础之HTTP

request请求可以使用session会话保持登录态...

2024-11-27 22:32:31 545

原创 D80【 python 接口自动化学习】- python基础之HTTP

request请求中headers存放请求头信息

2024-11-26 20:53:42 505

原创 D79【 python 接口自动化学习】- python基础之HTTP

requests模块进行get请求,传参使用形参params...

2024-11-25 22:07:02 1060

原创 D78【 python 接口自动化学习】- python基础之HTTP

安装requests库方法包括终端pip命令安装或设置中安装...

2024-11-24 21:26:49 1527

原创 D77【 python 接口自动化学习】- python基础之HTTP

get请求用于查询数据post请求用于添加数据。

2024-11-23 22:39:42 420

原创 D76【 python 接口自动化学习】- python 基础之 HTTP 

接口参数的类型包括string,int,float,boolean接口测试的方法包括业务功能测试,边界分析测试,性能测试和安全测试判断接口正确需要看状态码,接口数据,接口类型和值。

2024-11-22 17:22:47 596

原创 D75【 python 接口自动化学习】- python 基础之HTTP

接口测试是测试系统组件间接口的一种测试...

2024-11-21 22:21:14 493

原创 D74【 python 接口自动化学习】- python 基础之HTTP

HTTP 是一个协议(服务器传输超文本到浏览器的传送协议)...

2024-11-20 22:00:14 676

原创 D73【 python 接口自动化学习】- python 基础之正则表达式

字符串的r标记表示,字符串内转移字符无效,作为普通字符使用...

2024-11-19 21:05:51 591

原创 D72【 python 接口自动化学习】- python 基础之正则表达式

正则表达式是一种字符串验证的规则,通过特殊的字符串组合来确立规则,用规则去匹配字符串是否满足...

2024-11-18 22:08:03 739

原创 D71【 python 接口自动化学习】- python 基础之数据库

将写入到MySQL数据库的文件读取出来

2024-11-17 23:26:33 340

原创 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

原创 D66【python 接口自动化学习】- python基础之数据库

排序和分页限制的语法...

2024-11-12 22:28:16 480

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除