测试报告

##### 报告汇总

用例名称:
用例总数:
用例通过:
用例失败:
用例跳过:
开始时间:
运行时间:

##### 详细数据

测试类:
结果:
用例数: | 成功: | 失败: | 跳过:

编号 | 请求地址 | 响应结果 | 用例描述 | 耗时 | 结果 | 操作
--- | --- | --- | --- | --- | --- | ---

=======end1", "
", "
", "======================================== 下一个请求 ========================================", "
", "
", "" ] }, { "className": "http://jolyne.liangkebang.com/querySQL/pre/gyxd", "methodName": "Success", "description": "查询gyxd数据(post)", "spendTime": "3.61 s", "status": "成功", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '查询gyxd数据(post)', 'url': '/querySQL/pre/gyxd', 'casename': 'token', 'body': \"{\\r\\n 'sql':[\\r\\n 'select * from loan_application_manifest_history where loan_id=\\\\'%s\\\\';'\\r\\n ]\\r\\n}\", 'db': 'xyqb_user', 'sql': \"select l.loan_application_history_id from xyqb_user.user u\\r\\ninner join xyqb.`loan_application_manifest_history` l\\r\\non u.id=l.user_id\\r\\nwhere u.phone_no='%s'\\r\\norder by l.id desc limit 1;\", 'header': {'Content-Type': 'application/json'}, 'type': 'queryJolyne', 'result': {'code': '0000'}} select l.loan_application_history_id from xyqb_user.user u\r", "inner join xyqb.`loan_application_manifest_history` l\r", "on u.id=l.user_id\r", "where u.phone_no=13700000001\r", "order by l.id desc limit 1;", "请求url== http://jolyne.liangkebang.com/querySQL/pre/gyxd", "
", "请求method== post", "
", "请求body1== {\r", " 'sql':[\r", " 'select * from loan_application_manifest_history where loan_id=\\'0\\';'\r", " ]\r", "}", "
", "请求header== {'Content-Type': 'application/json'}", "
", "请求commit(说明)== 查询gyxd数据(post)", "
", "
", "响应数据=== {\"msg\": null, \"code\": \"0000\", \"data\": []} =======end1", "
", "[预期][code:0000],实际['0000']", "
", "
", "======================================== 下一个请求 ========================================", "
", "
", "从表里查到的数据=== [0] {'method': 'post', 'commit': '查询gyxd数据(post)', 'url': '/querySQL/pre/gyxd', 'casename': 'token', 'body': \"{\\r\\n 'sql':[\\r\\n 'select * from loan_application_manifest_history where loan_id=\\\\'%s\\\\';'\\r\\n ]\\r\\n}\", 'db': 'xyqb_user', 'sql': \"select l.loan_application_history_id from xyqb_user.user u\\r\\ninner join xyqb.`loan_application_manifest_history` l\\r\\non u.id=l.user_id\\r\\nwhere u.phone_no='%s'\\r\\norder by l.id desc limit 1;\", 'header': {'Content-Type': 'application/json'}, 'type': 'queryJolyne', 'result': {'code': '0000'}} select l.loan_application_history_id from xyqb_user.user u\r", "inner join xyqb.`loan_application_manifest_history` l\r", "on u.id=l.user_id\r", "where u.phone_no=13700000001\r", "order by l.id desc limit 1;", "" ] }, { "className": "http://jolyne.liangkebang.com/executeSQL/pre/gyxd", "methodName": "Success", "description": "广源小贷修改状态为3(post)", "spendTime": "3.03e+02 s", "status": "成功", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '广源小贷修改状态为3(post)', 'url': '/executeSQL/pre/gyxd', 'casename': 'token', 'body': \"{\\r\\n 'sql':[\\r\\n 'update loan_application_manifest_history set loan_progress=3 where loan_id=%s;'\\r\\n ]\\r\\n}\", 'db': 'xyqb_user', 'sql': \"select l.loan_application_history_id from xyqb_user.user u\\r\\ninner join xyqb.`loan_application_manifest_history` l\\r\\non u.id=l.user_id\\r\\nwhere u.phone_no='%s'\\r\\norder by l.id desc limit 1;\", 'header': {'Content-Type': 'application/json'}, 'type': 'queryJolyne', 'sleep': '300', 'result': {'code': '0000'}} select l.loan_application_history_id from xyqb_user.user u\r", "inner join xyqb.`loan_application_manifest_history` l\r", "on u.id=l.user_id\r", "where u.phone_no=13700000001\r", "order by l.id desc limit 1;", "请求url== http://jolyne.liangkebang.com/executeSQL/pre/gyxd", "
", "请求method== post", "
", "请求body1== {\r", " 'sql':[\r", " 'update loan_application_manifest_history set loan_progress=3 where loan_id=0;'\r", " ]\r", "}", "
", "请求header== {'Content-Type': 'application/json'}", "
", "请求commit(说明)== 广源小贷修改状态为3(post)", "
", "
", "响应数据=== {\"msg\": null, \"code\": \"0000\", \"data\": 0} =======end1", "
", "[预期][code:0000],实际['0000']", "
", "
", "======================================== 下一个请求 ========================================", "
", "
", "从表里查到的数据=== [0] {'method': 'post', 'commit': '广源小贷修改状态为3(post)', 'url': '/executeSQL/pre/gyxd', 'casename': 'token', 'body': \"{\\r\\n 'sql':[\\r\\n 'update loan_application_manifest_history set loan_progress=3 where loan_id=%s;'\\r\\n ]\\r\\n}\", 'db': 'xyqb_user', 'sql': \"select l.loan_application_history_id from xyqb_user.user u\\r\\ninner join xyqb.`loan_application_manifest_history` l\\r\\non u.id=l.user_id\\r\\nwhere u.phone_no='%s'\\r\\norder by l.id desc limit 1;\", 'header': {'Content-Type': 'application/json'}, 'type': 'queryJolyne', 'sleep': '300', 'result': {'code': '0000'}} select l.loan_application_history_id from xyqb_user.user u\r", "inner join xyqb.`loan_application_manifest_history` l\r", "on u.id=l.user_id\r", "where u.phone_no=13700000001\r", "order by l.id desc limit 1;", "" ] }, { "className": "http://api-pre.liangkebang.net/ex/paycenter/pay_notify", "methodName": "Success", "description": "放款结果通知(post)", "spendTime": "1.1 s", "status": "成功", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '放款结果通知(post)', 'url': '/ex/paycenter/pay_notify', 'casename': 'token', 'body': {'orderNo': '%s', 'payOrderNo': '%s', 'payTime': '%s', 'payStatus': '3'}, 'sql': \"select id,id,concat(REPLACE(unix_timestamp(current_timestamp(3)),'.','')) from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc;\", 'header': {'Content-Type': 'application/x-www-form-urlencoded'}, 'type': 'api', 'result': {'code': '0000'}} select id,id,concat(REPLACE(unix_timestamp(current_timestamp(3)),'.','')) from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc;", "请求url== http://api-pre.liangkebang.net/ex/paycenter/pay_notify", "
", "请求method== post", "
", "请求body3== {'orderNo': 0, 'payOrderNo': 0, 'payTime': 0, 'payStatus': '3'}", "
", "请求header== {'Content-Type': 'application/x-www-form-urlencoded'}", "
", "请求commit(说明)== 放款结果通知(post)", "
", "
", "响应数据=== SUCCESS =======end1", "
", "
", "======================================== 下一个请求 ========================================", "
", "
", "从表里查到的数据=== [0] {'method': 'post', 'commit': '放款结果通知(post)', 'url': '/ex/paycenter/pay_notify', 'casename': 'token', 'body': {'orderNo': '%s', 'payOrderNo': '%s', 'payTime': '%s', 'payStatus': '3'}, 'sql': \"select id,id,concat(REPLACE(unix_timestamp(current_timestamp(3)),'.','')) from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc;\", 'header': {'Content-Type': 'application/x-www-form-urlencoded'}, 'type': 'api', 'result': {'code': '0000'}} select id,id,concat(REPLACE(unix_timestamp(current_timestamp(3)),'.','')) from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc;", "" ] }, { "className": "http://mapi-pre.liangkebang.net/xjd/user/check_user", "methodName": "Success", "description": "验证userToken-支付相关(get)", "spendTime": "1.35 s", "status": "成功", "log": [ "请求url== http://mapi-pre.liangkebang.net/xjd/user/check_user", "
", "请求method== get", "
", "请求body3== None", "
", "请求header== {'X-Auth-Token': '1396bf28-64f4-44b6-9eec-bb334c08fc5e', 'Content-Type': 'application/x-www-form-urlencoded'}", "
", "请求commit(说明)== 验证userToken-支付相关(get)", "
", "
", "响应数据=== {\"msg\": \"\", \"code\": \"0000\", \"businessCode\": \"0000\", \"businessFlag\": \"0000\", \"data\": {\"uuid\": \"25862211-0173-41d9-b743-94506684547e\", \"phoneNo\": \"13700000001\"}, \"success\": true} =======end1", "
", "[预期][code:0000],实际['0000']", "
", "
", "======================================== 下一个请求 ========================================", "
", "
", "" ] }, { "className": "http://mapi-pre.liangkebang.net/xjd/repayment/plans", "methodName": "{\"msg\":\"记录不存在\",\"code\":\"0000\",\"businessCode\":\"0001\",\"businessFlag\":\"0000\",\"success\":false}", "description": "查看还款计划(post)", "spendTime": "0.661 s", "status": "失败", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '查看还款计划(post)', 'url': '/xjd/repayment/plans', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'passportapitoken'}, 'body': {'id': '%s'}, 'type': 'mapi', 'db': 'xyqb_user', 'sql': \"select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc;\", 'result': {'code': '0000'}} select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc;\n请求url== http://mapi-pre.liangkebang.net/xjd/repayment/plans\n
\n请求method== post\n
\n请求body3== {'id': 0}\n
\n请求header== {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': '1396bf28-64f4-44b6-9eec-bb334c08fc5e'}\n
\n请求commit(说明)== 查看还款计划(post)\n
\n
\n响应数据=== {\"msg\": \"记录不存在\", \"code\": \"0000\", \"businessCode\": \"0001\", \"businessFlag\": \"0000\", \"success\": false} =======end1\n
\n[预期][code:0000],实际['0000']\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n从表里查到的数据=== [0] {'method': 'post', 'commit': '查看还款计划(post)', 'url': '/xjd/repayment/plans', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'passportapitoken'}, 'body': {'id': '%s'}, 'type': 'mapi', 'db': 'xyqb_user', 'sql': \"select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc;\", 'result': {'code': '0000'}} select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc;\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 777, in test_137\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/xjd/paycenter/repay", "methodName": "{\"msg\":\"记录不存在\",\"code\":\"0000\",\"businessCode\":\"0001\",\"businessFlag\":\"0000\",\"success\":false}", "description": "支付中心token获取(post)", "spendTime": "0.767 s", "status": "失败", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '支付中心token获取(post)', 'url': '/xjd/paycenter/repay', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'passportapitoken'}, 'body': {'id': '%s'}, 'type': 'mapi', 'sql': \"select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc limit 1;\", 'result': {'code': '0000'}} select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc limit 1;\n请求url== http://mapi-pre.liangkebang.net/xjd/paycenter/repay\n
\n请求method== post\n
\n请求body3== {'id': 0}\n
\n请求header== {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': '1396bf28-64f4-44b6-9eec-bb334c08fc5e'}\n
\n请求commit(说明)== 支付中心token获取(post)\n
\n
\n响应数据=== {\"msg\": \"记录不存在\", \"code\": \"0000\", \"businessCode\": \"0001\", \"businessFlag\": \"0000\", \"success\": false} =======end1\n
\n[预期][code:0000],实际['0000']\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n从表里查到的数据=== [0] {'method': 'post', 'commit': '支付中心token获取(post)', 'url': '/xjd/paycenter/repay', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'passportapitoken'}, 'body': {'id': '%s'}, 'type': 'mapi', 'sql': \"select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no='%s') order by id desc limit 1;\", 'result': {'code': '0000'}} select id from xyqb.loan_application_history where user_id=(select id from xyqb_user.user where phone_no=13700000001) order by id desc limit 1;\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 797, in test_138\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/bank_card/card_list", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "查询卡信息(get)", "spendTime": "0.198 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/common/bank_card/card_list\n
\n请求method== get\n
\n请求body3== None\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Referer': 'http://pay-pre.liangkebang.net/repay-card-list?enter=true', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 查询卡信息(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 817, in test_139\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/order/repay/amount", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "获取还款金额信息(get)", "spendTime": "0.297 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/common/order/repay/amount\n
\n请求method== get\n
\n请求body3== None\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Referer': 'http://pay-pre.liangkebang.net/repay-card-list?enter=true', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 获取还款金额信息(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 837, in test_140\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/bank_card/pay_approach/sms", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "二次鉴权获取短验(post)", "spendTime": "0.568 s", "status": "失败", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '二次鉴权获取短验(post)', 'url': '/pay/bank_card/pay_approach/sms', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'mapitoken'}, 'body': {'bankCardId': '%s', 'preservePhoneNo': '%s', 'payApproach': '23'}, 'type': 'mapi', 'result': {'code': '0000'}, 'db': 'payment_center', 'sql': \"select id,preserve_phone_no from payment_center.bank_card where user_id in \\r\\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001'));\"} select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001'));\n请求url== http://mapi-pre.liangkebang.net/pay/bank_card/pay_approach/sms\n
\n请求method== post\n
\n请求body3== {'bankCardId': 0, 'preservePhoneNo': 0, 'payApproach': '23'}\n
\n请求header== {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285'}\n
\n请求commit(说明)== 二次鉴权获取短验(post)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n从表里查到的数据=== [0] {'method': 'post', 'commit': '二次鉴权获取短验(post)', 'url': '/pay/bank_card/pay_approach/sms', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'mapitoken'}, 'body': {'bankCardId': '%s', 'preservePhoneNo': '%s', 'payApproach': '23'}, 'type': 'mapi', 'result': {'code': '0000'}, 'db': 'payment_center', 'sql': \"select id,preserve_phone_no from payment_center.bank_card where user_id in \\r\\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001'));\"} select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001'));\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 857, in test_141\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/bank_card/pay_approach/sms_confirm", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "二次鉴权短验校验(post)", "spendTime": "0.28 s", "status": "失败", "log": [ "从表里查到的数据=== [0] {'method': 'post', 'commit': '二次鉴权短验校验(post)', 'url': '/pay/bank_card/pay_approach/sms_confirm', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'mapitoken'}, 'body': {'bankCardId': '%s', 'validateCode': '000000', 'payApproach': '23'}, 'type': 'mapi', 'result': {'code': '0000'}, 'db': 'payment_center', 'sql': \"select a.id from payment_center.bank_card a \\r\\njoin payment_center.user b on a.user_id=b.id \\r\\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001');\"} select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001');\n请求url== http://mapi-pre.liangkebang.net/pay/bank_card/pay_approach/sms_confirm\n
\n请求method== post\n
\n请求body3== {'bankCardId': 0, 'validateCode': '000000', 'payApproach': '23'}\n
\n请求header== {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285'}\n
\n请求commit(说明)== 二次鉴权短验校验(post)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n从表里查到的数据=== [0] {'method': 'post', 'commit': '二次鉴权短验校验(post)', 'url': '/pay/bank_card/pay_approach/sms_confirm', 'casename': 'token', 'Headers': {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': 'mapitoken'}, 'body': {'bankCardId': '%s', 'validateCode': '000000', 'payApproach': '23'}, 'type': 'mapi', 'result': {'code': '0000'}, 'db': 'payment_center', 'sql': \"select a.id from payment_center.bank_card a \\r\\njoin payment_center.user b on a.user_id=b.id \\r\\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001');\"} select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001');\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 877, in test_142\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/bank_card/card_list", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "查询卡信息(get)", "spendTime": "0.136 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/common/bank_card/card_list\n
\n请求method== get\n
\n请求body3== None\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Referer': 'http://pay-pre.liangkebang.net/repay-card-list?enter=true', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 查询卡信息(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 897, in test_143\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/order/repay/amount", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "获取还款金额信息(get)", "spendTime": "0.212 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/common/order/repay/amount\n
\n请求method== get\n
\n请求body3== None\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Referer': 'http://pay-pre.liangkebang.net/repay-card-list?enter=true', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 获取还款金额信息(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 917, in test_144\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/bank_card/make_bind_relation", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "确认支付(get)", "spendTime": "0.241 s", "status": "失败", "log": [ "从表里查到的数据=== [0] {'method': 'get', 'commit': '确认支付(get)', 'url': '/pay/common/bank_card/make_bind_relation', 'casename': 'token', 'header': {'X-Auth-Token': 'mapitoken'}, 'result': {'code': '0000'}, 'type': 'mapi', 'body': {'cardBindInfoId': '%s', 'cardId': '%s'}, 'db': 'payment_center', 'sql': \"select id,`bank_card_id` from payment_center.card_bind_info where \\r\\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001')) order by id desc limit 1;\", 'isurl': '1'} select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001')) order by id desc limit 1;\n请求url== http://mapi-pre.liangkebang.net/pay/common/bank_card/make_bind_relation\n
\n请求method== get\n
\n请求body3== {'cardBindInfoId': 0, 'cardId': 0}\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 确认支付(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n从表里查到的数据=== [0] {'method': 'get', 'commit': '确认支付(get)', 'url': '/pay/common/bank_card/make_bind_relation', 'casename': 'token', 'header': {'X-Auth-Token': 'mapitoken'}, 'result': {'code': '0000'}, 'type': 'mapi', 'body': {'cardBindInfoId': '%s', 'cardId': '%s'}, 'db': 'payment_center', 'sql': \"select id,`bank_card_id` from payment_center.card_bind_info where \\r\\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001')) order by id desc limit 1;\", 'isurl': '1'} select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='13700000001')) order by id desc limit 1;\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 937, in test_145\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/common/order/repay/init_new", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "确认支付页面关联接口(get)", "spendTime": "0.182 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/common/order/repay/init_new\n
\n请求method== get\n
\n请求body3== None\n
\n请求header== {'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285', 'Content-Type': 'application/x-www-form-urlencoded'}\n
\n请求commit(说明)== 确认支付页面关联接口(get)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 957, in test_146\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/order/repay/sms", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "还款获取短验(post)", "spendTime": "0.137 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/order/repay/sms\n
\n请求method== post\n
\n请求body3== {'firstEnter': '0'}\n
\n请求header== {'Content-Type': 'application/x-www-form-urlencoded', 'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285'}\n
\n请求commit(说明)== 还款获取短验(post)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 977, in test_147\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] }, { "className": "http://mapi-pre.liangkebang.net/pay/order/repay/sms_validate?validateCode=000000", "methodName": "{\"msg\":\"UnAuthorized request\",\"code\":\"0401\",\"businessCode\":\"0000\"}\n", "description": "还款短验校验(post)", "spendTime": "0.236 s", "status": "失败", "log": [ "请求url== http://mapi-pre.liangkebang.net/pay/order/repay/sms_validate?validateCode=000000\n
\n请求method== post\n
\n请求body3== None\n
\n请求header== {'Content-Type': 'application/json;charset=UTF-8', 'X-Auth-Token': '75d2421775d0b74ca27b28677bfa63410285'}\n
\n请求commit(说明)== 还款短验校验(post)\n
\n
\n响应数据=== {\"msg\": \"UnAuthorized request\", \"code\": \"0401\", \"businessCode\": \"0000\"} =======end1\n
\n
\n======================================== 下一个请求 ========================================\n
\n
\n", "Traceback (most recent call last):\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 59, in testPartExecutor\n yield\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 615, in run\n testMethod()\n", " File \"/Users/dm/Desktop/python_script/autoInterface/blueprints/testcases.py\", line 997, in test_148\n self.assertEqual(1, 0,msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 840, in assertEqual\n assertion_func(first, second, msg=msg)\n", " File \"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py\", line 833, in _baseAssertEqual\n raise self.failureException(msg)\n", "AssertionError: 1 != 0 : 断言失败，预期结果：{'code': '0000'},实际结果查看响应数据\n" ] } ], "testName": "passportapi", "testAll": 49, "testFail": 18, "beginTime": "2020-05-11 18:14:16", "totalTime": "1277s", "testSkip": 0, "testError": 0 }; function clickRow(obj){ $("#detailBody").children("tr").attr("style","font-family: Consolas"); $(obj).attr("style","font-family: Consolas; background-color: #b0d877"); } function details(obj) { if ($(obj).text() == '展开') { var len = $(obj).parent().parent().children().length; var detailLog = ""; var logs = resultData["testResult"][parseInt($(obj).attr("buttonIndex"))]["log"]; $(obj).text("收缩"); $(obj).removeClass("btn-primary"); $(obj).addClass("btn-danger"); $.each(logs, function (i, n) { detailLog = detailLog + "

" + n + "

"; }); $(obj).parent().parent().after("
" + detailLog + "
"); } else if ($(obj).text() == '收缩') { $(obj).parent().parent().next().remove(); $(obj).text("展开"); $(obj).removeClass("btn-danger"); $(obj).addClass("btn-primary"); } } $(function () { $("#testName").text(resultData["testName"]); $("#testPass").text(resultData["testPass"]); $("#testFail").text(resultData["testFail"]); $("#testSkip").text(resultData["testSkip"]); $("#testAll").text(resultData["testAll"]); $("#beginTime").text(resultData["beginTime"]); $("#totalTime").text(resultData["totalTime"]); $("#filterAll").text(resultData["testAll"]); $("#filterOk").text(resultData["testPass"]); $("#filterFail").text(resultData["testFail"]); $("#filterSkip").text(resultData["testSkip"]); var classNames = []; var results = []; $.each(resultData["testResult"], function (i, n) { if (classNames.indexOf(n["className"]) == -1) { classNames.push(n["className"]); } if (results.indexOf(n["status"]) == -1) { results.push(n["status"]); } }); $.each(classNames, function (i, n) { $("#filterClass").append("" + n + ""); }); $.each(results, function (i, n) { $("#filterResult").append("" + n + ""); }); $("#filterClass").chosen({search_contains: true}); $("#filterResult").chosen({search_contains: true}); function generateResult(className, caseResult) { $("#detailBody").children().remove(); var filterAll = 0; var filterOk = 0; var filterFail = 0; var filterSkip = 0; $.each(resultData["testResult"], function (i, n) { if ((className == "" || n["className"] == className) && (caseResult == "" || n["status"] == caseResult)) { filterAll += 1; var status = ""; if (n["status"] == '成功') { filterOk += 1; status = "成功"; } else if (n["status"] == '失败') { filterFail += 1; status = "失败"; } else if (n["status"] == '跳过') { filterSkip += 1; status = "跳过"; } else { status = "" + n["status"] + ""; } var tr = "
" + "" + (i + 1) + "" + "" + n["className"] + "" + "" + n["methodName"] + "" + "" + n["description"] + "" + "" + n["spendTime"] + "" + status + "
" $("#detailBody").append(tr); } }); $("#filterAll").text(filterAll); $("#filterOk").text(filterOk); $("#filterFail").text(filterFail); $("#filterSkip").text(filterSkip); } generateResult("", ""); $("#filterClass").on('change', function () { var className = $("#filterClass").val(); var caseResult = $("#filterResult").val(); generateResult(className, caseResult); }); $("#filterResult").on('change', function () { var className = $("#filterClass").val(); var caseResult = $("#filterResult").val(); generateResult(className, caseResult); }); //$(".chosen-select").trigger("chosen:updated"); function pie() { var option = { title: { text: '测试用例运行结果', subtext: '', x: 'center' }, tooltip: { trigger: 'item', formatter: "{a}
{b} : {c} ({d}%)" }, legend: { orient: 'vertical', left: 'left', data: ['失败', '跳过', '成功'] }, series: [ { name: '运行结果', type: 'pie', radius: '55%', center: ['50%', '60%'], data: [ {value: resultData["testFail"], name: '失败'}, {value: resultData["testSkip"], name: '跳过'}, {value: resultData["testPass"], name: '成功'} ], itemStyle: { emphasis: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } } } ] }; var chart = echarts.init(document.getElementById("echarts-map-chart")); chart.setOption(option); } pie(); });