该文被密码保护。 阅读全文
摘要:
在用ymal做参数化时,运行结果报错: raise ScannerError(None, None, E yaml.scanner.ScannerError: mapping values are not allowed here E in "<unicode string>", line 2, c 阅读全文
摘要:
今天在执行yaml中,报错了: AttributeError: 'int' object has no attribute 'encode' data.yaml interface: /api/import test_cases: case-01-全部字段齐全: code: 200 body: fi 阅读全文
摘要:
我们在接口请求中,遇到需上传文件时,可使用requests_toolbelt 安装 pip install requests_toolbelt 代码如下: from requests_toolbelt.multipart.encoder import MultipartEncoder req_url 阅读全文
摘要:
代码如下: import unittest class TestGeApi(unittest.TestCase): @classmethod def setUpclass(cls) -> None: cls.client = GovernmentApiClient( GovernmentData.h 阅读全文
摘要:
代码如下: platformOrderNo = result['data']['platformOrderNo'] # platformOrderNo=LO20220829000000036 exe_sql = f"select * from repay_plan WHERE loan_order_ 阅读全文
摘要:
需求页面 如上图,我们在实际测试过程中,需要测试这个列表页在数据过多时,是否会有滑轮出现,依照我们常规操作,会需要我们操作业务流程,单条的走【申请】-【审批】等流程,会繁琐、浪费时间,而我们知道了这个方法,会大大节省我们的时间,就是我们可以进入【开发者工具】页面(鼠标右键-【检查】),如下图操作: 阅读全文
摘要:
代码: def create_re_pay(num): for i in range(num): GovernmentApiClient().re_pay() create_re_pay(3) 结果: {'code': 200, 'msg': '处理成功', 'time': 166183978156 阅读全文
摘要:
代码如下: 1 class GovernmentApiClient: 2 3 def refund(self): 4 print('123456') 5 '''退款返销''' 6 body = { 7 "thirdOrderNo": "5rd20220829173058", 8 "flowNo": 阅读全文
摘要:
记录下性能测试常用的几个指标,性能测试其实就是检查各项指标是否符合要求。 性能测试核心指标: 吞吐量 响应时间(Rsponse Time) 并发处理能力 资源占用能力 测试中的时间占比 40% 性能测试分析 30% 测试执行 30% 测试结果分析 全链路监控:只要和系统相关的全部需要监控到 一、吞吐 阅读全文