每天努力一点点,坚持下去 ------ 博客首页
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页
摘要: 一、项目介绍 ——账号信息查询: 我们注册的账号后 需要查询下账号的注册信息 接口URL: http://sky.nnzhp.cn/api/user/user_info 二、测试 ——使用jmeter 线程组这里,需要填写多少呢? ——我们可以根据【性能指标】:吞吐量、响应时间、并发处理能力、资源占 阅读全文
posted @ 2022-10-23 15:51 他还在坚持嘛 阅读(137) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-09-16 16:20 他还在坚持嘛 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 在用ymal做参数化时,运行结果报错: raise ScannerError(None, None, E yaml.scanner.ScannerError: mapping values are not allowed here E in "<unicode string>", line 2, c 阅读全文
posted @ 2022-09-15 17:57 他还在坚持嘛 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: 今天在执行yaml中,报错了: AttributeError: 'int' object has no attribute 'encode' data.yaml interface: /api/import test_cases: case-01-全部字段齐全: code: 200 body: fi 阅读全文
posted @ 2022-09-15 16:43 他还在坚持嘛 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 我们在接口请求中,遇到需上传文件时,可使用requests_toolbelt 安装 pip install requests_toolbelt 代码如下: from requests_toolbelt.multipart.encoder import MultipartEncoder req_url 阅读全文
posted @ 2022-09-15 16:37 他还在坚持嘛 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 代码如下: import unittest class TestGeApi(unittest.TestCase): @classmethod def setUpclass(cls) -> None: cls.client = GovernmentApiClient( GovernmentData.h 阅读全文
posted @ 2022-09-13 17:36 他还在坚持嘛 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 代码如下: platformOrderNo = result['data']['platformOrderNo'] # platformOrderNo=LO20220829000000036 exe_sql = f"select * from repay_plan WHERE loan_order_ 阅读全文
posted @ 2022-09-07 14:40 他还在坚持嘛 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 需求页面 如上图,我们在实际测试过程中,需要测试这个列表页在数据过多时,是否会有滑轮出现,依照我们常规操作,会需要我们操作业务流程,单条的走【申请】-【审批】等流程,会繁琐、浪费时间,而我们知道了这个方法,会大大节省我们的时间,就是我们可以进入【开发者工具】页面(鼠标右键-【检查】),如下图操作: 阅读全文
posted @ 2022-09-07 11:27 他还在坚持嘛 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 代码: def create_re_pay(num): for i in range(num): GovernmentApiClient().re_pay() create_re_pay(3) 结果: {'code': 200, 'msg': '处理成功', 'time': 166183978156 阅读全文
posted @ 2022-08-30 14:17 他还在坚持嘛 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 class GovernmentApiClient: 2 3 def refund(self): 4 print('123456') 5 '''退款返销''' 6 body = { 7 "thirdOrderNo": "5rd20220829173058", 8 "flowNo": 阅读全文
posted @ 2022-08-30 09:19 他还在坚持嘛 阅读(33) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页