def test_getAdultCurbactList(self, test_case):
     # 初始化请求:执行前置接口+替换关联变量
     test_info, test_case = init_premise(test_case["test_info"], test_case, case_yaml)
     # 发送当前接口
     code, data = send_request(test_info, test_case)
     # 校验接口返回
     check_result(test_case, code, data)
Ejemplo n.º 2
0
 def test_template(self, test_case):
     # 初始化请求:执行前置接口+替换关联变量
     test_info, test_case = init_premise(case_data["test_info"], test_case,
                                         case_yaml)
     # 发送当前接口
     code, data = send_request(test_info, test_case)
     # 校验接口返回
     check_result(test_case, code, data)