10 2022 档案
摘要:原始的正确的文件下载接口: 最终实现的代码: import json import requests url = 'https://test.jlcerp.com/faMaterialManage/fileInfo/uploadFile' file_name = 'u4.png' file_path
阅读全文
摘要:const text = String.raw`{"success":true,"code":0,"message":null,"body":{"items":[{"isNonStandard":false,"productId":1813,"skuNumber":"H00027","manufac
阅读全文
摘要:需求背景:重复请求一个接口,提取返回的产品型号,按序打印。当返回的数据有产品型号时才能用JSON提取器提取到结果,当返回的数据没有产品型号时想输出"-",因此采用BeanShell后置处理器 JsonObject&JsonArray 使用之前需要导包 jar包下载地址:https://search.
阅读全文
摘要:第三方包使用的时候需要单独安装 使用场景:快速提取接口返回的JSON串中的某一个字段的值 import json import jsonpath json_str = ''' { "success": true, "code": 200, "message": null, "data": { "me
阅读全文
摘要:目录基础使用测试用例中使用自定义fixture的返回值类级别fixture 手动调用fixure 中获取params 传入的数据 实现数据驱动测试用例中使用 fixture 返回的数据ids 与params参数结合使用,给参数起别名name 参数 给fixture 起别名fixture 结合 con
阅读全文
摘要:https://blog.csdn.net/qq_40308101/article/details/125545573
阅读全文