diff --git a/common/utils/dingTalk.py b/common/utils/dingTalk.py index 71da2ff..1bd85d4 100644 --- a/common/utils/dingTalk.py +++ b/common/utils/dingTalk.py @@ -52,7 +52,7 @@ def dingTalk_markdown(secret,webhook,message): "markdown": { "title":"接口执行报告", "text": f"#### 接口自动化测试报告 \n> 本消息由Jenkins构建后自动发送\n> \ - \n> ###### {now_time}构建 [斑马信用](http://10.197.236.10:8080/job/bmc/allure/) \n" + \n> ###### 点击查看 >> [斑马信用](http://10.197.236.10:8080/job/bmc/allure/) \n" }, 'at': {'isAtAll': False}} post_data = json.dumps(data) @@ -63,9 +63,9 @@ def dingTalk_markdown(secret,webhook,message): if __name__ == '__main__': - res=dingTalk_markdown(secret="SEC1d08f46da74337cc0e1cd5bb9ad19622d825483343fdfa43ce396881e4745bdb", - webhook="https://oapi.dingtalk.com/robot/send?access_token=f9e005c1a984b9607960345d38669337b1115d1141a0294e98666443b312115b", - message="我就是我, @XXX 是不一样的烟火") + res=dingTalk_markdown(secret="SEC40a1be4bbd9214e16ba288208fd608b2b590e82e853fa9b24c1850a506c6185b", + webhook="https://oapi.dingtalk.com/robot/send?access_token=e830b05eeee88da31972099e403a74d05ec55719360707dc44e532c0d0b49cb6", + message="小帅") print(res) now_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M') print(now_time) diff --git a/test_case/bmc/test_accountinfo.py b/test_case/bmc/test_accountinfo.py index dd6f39c..c7f76c6 100644 --- a/test_case/bmc/test_accountinfo.py +++ b/test_case/bmc/test_accountinfo.py @@ -132,13 +132,12 @@ class TestRegister(): elif casenum == 'verifyCodedetailRegister008': req_data['jtId'] = None # elif casenum == 'verifyCodedetailRegister009' or casenum == 'verifyCodedetailRegister010': - # # time.sleep(60) + # time.sleep(61) # pass if not phone: res = request_main(url=url, headers=headers, method=method, data=req_data, has_token=False) - print(res) # 发送次数过多 - if res['msg'] == '验证码发送次数过多,请24小时后再试': + if res['msg'] == '验证码发送次数过多,请24小时后再试' or '发送的间隔时间' in res['msg']: expectData['code'] = 1006 assert res['code'] == expectData['code'] else: @@ -150,7 +149,7 @@ class TestRegister(): res = request_main(url=url, headers=headers, method=method, data=req_data, has_token=False) allure.attach("{0}".format(res), "用例结果") # 发送次数过多 - if res['msg'] == '验证码发送次数过多,请24小时后再试': + if res['msg'] == '验证码发送次数过多,请24小时后再试' or '发送的间隔时间' in res['msg']: expectData['code'] = 1006 assert res['code'] == expectData['code'] diff --git a/test_case_data/bmc/bmc_base_info_2021513.xlsx b/test_case_data/bmc/bmc_base_info_2021513.xlsx index f0f84a1..d10b42a 100644 Binary files a/test_case_data/bmc/bmc_base_info_2021513.xlsx and b/test_case_data/bmc/bmc_base_info_2021513.xlsx differ