2020-07-08 21:28:05,290 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:05,291 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:28:05,291 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:28:05,291 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:28:05,291 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:28:05,405 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:05,406 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:05,406 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:05,407 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:28:05,407 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:28:05,407 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-08 21:28:05,407 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:28:05,520 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:05,521 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 8555405.44, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-08 21:33:05', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:05,584 py30 INFO test_recharge.py-67 line:充值前的用户余额:8555405.44 2020-07-08 21:28:05,585 py30 INFO test_recharge.py-70 line:充值的金额为:600 2020-07-08 21:28:05,586 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:8556005.44 2020-07-08 21:28:05,586 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:05,587 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:05,587 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:05,587 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:05,587 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-08 21:28:05,670 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:05,670 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 8556005.44, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:05,725 py30 INFO test_recharge.py-91 line:充值后的用户余额:8556005.44 2020-07-08 21:28:05,780 py30 INFO test_recharge.py-67 line:充值前的用户余额:8556005.44 2020-07-08 21:28:05,780 py30 INFO test_recharge.py-70 line:充值的金额为:600.1 2020-07-08 21:28:05,780 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:8556605.54 2020-07-08 21:28:05,781 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:05,781 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:05,781 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:05,781 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:05,782 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-08 21:28:05,852 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:05,853 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 8556605.54, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:05,904 py30 INFO test_recharge.py-91 line:充值后的用户余额:8556605.54 2020-07-08 21:28:05,954 py30 INFO test_recharge.py-67 line:充值前的用户余额:8556605.54 2020-07-08 21:28:05,954 py30 INFO test_recharge.py-70 line:充值的金额为:600.22 2020-07-08 21:28:05,955 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:8557205.76 2020-07-08 21:28:05,955 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:05,955 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:05,955 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:05,956 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:05,956 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-08 21:28:06,027 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,028 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 8557205.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,085 py30 INFO test_recharge.py-91 line:充值后的用户余额:8557205.76 2020-07-08 21:28:06,141 py30 INFO test_recharge.py-67 line:充值前的用户余额:8557205.76 2020-07-08 21:28:06,141 py30 INFO test_recharge.py-70 line:充值的金额为:500000 2020-07-08 21:28:06,142 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9057205.76 2020-07-08 21:28:06,142 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,142 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,142 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,142 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,143 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-08 21:28:06,203 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,203 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9057205.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,253 py30 INFO test_recharge.py-91 line:充值后的用户余额:9057205.76 2020-07-08 21:28:06,259 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,260 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,261 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,261 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,262 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-08 21:28:06,321 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,321 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,322 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,322 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,323 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,323 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,323 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-08 21:28:06,378 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,379 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,384 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,385 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,386 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,386 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,386 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-08 21:28:06,458 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,459 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9057805.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,459 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-08 21:28:06,465 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,465 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,465 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,466 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,466 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-08 21:28:06,522 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,523 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,525 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,526 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,527 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,527 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,528 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-08 21:28:06,598 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,598 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9057805.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,598 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-08 21:28:06,602 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,603 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,603 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,603 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,603 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-08 21:28:06,660 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,662 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,671 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,671 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,672 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,673 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,673 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-08 21:28:06,742 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,742 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,742 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 2 != 1 2020-07-08 21:28:06,745 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,745 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,745 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,746 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,746 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-08 21:28:06,805 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,806 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,806 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额小数超过两位 != 金额小数超过两位 2020-07-08 21:28:06,821 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,824 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,825 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,825 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,825 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-08 21:28:06,892 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,892 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:06,894 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-08 21:28:06,903 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:06,903 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MTg1fQ.9oTx_KSOwjEg4V9Ez_P6QV-3aBk3QCCFRZk3OlTnGDElkVanMLFK_H5wgI_9xolnjBNZE9TMI7e1nSOPKWj2HA'} 2020-07-08 21:28:06,904 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:06,904 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:06,904 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-08 21:28:06,960 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:06,960 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:31,797 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:31,798 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:28:31,798 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:28:31,798 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:28:31,798 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:28:31,921 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:31,921 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:31,921 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:31,922 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:28:31,922 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:28:31,922 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-08 21:28:31,922 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:28:32,036 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,037 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9057805.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-08 21:33:31', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,090 py30 INFO test_recharge.py-67 line:充值前的用户余额:9057805.76 2020-07-08 21:28:32,092 py30 INFO test_recharge.py-70 line:充值的金额为:600 2020-07-08 21:28:32,093 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9058405.76 2020-07-08 21:28:32,094 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,094 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,095 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,095 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,095 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-08 21:28:32,157 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,157 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9058405.76, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,198 py30 INFO test_recharge.py-91 line:充值后的用户余额:9058405.76 2020-07-08 21:28:32,244 py30 INFO test_recharge.py-67 line:充值前的用户余额:9058405.76 2020-07-08 21:28:32,246 py30 INFO test_recharge.py-70 line:充值的金额为:600.1 2020-07-08 21:28:32,254 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9059005.86 2020-07-08 21:28:32,256 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,256 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,257 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,257 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,257 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-08 21:28:32,322 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,323 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9059005.86, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,374 py30 INFO test_recharge.py-91 line:充值后的用户余额:9059005.86 2020-07-08 21:28:32,424 py30 INFO test_recharge.py-67 line:充值前的用户余额:9059005.86 2020-07-08 21:28:32,425 py30 INFO test_recharge.py-70 line:充值的金额为:600.22 2020-07-08 21:28:32,425 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9059606.08 2020-07-08 21:28:32,425 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,425 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,426 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,426 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,426 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-08 21:28:32,499 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,502 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9059606.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,558 py30 INFO test_recharge.py-91 line:充值后的用户余额:9059606.08 2020-07-08 21:28:32,604 py30 INFO test_recharge.py-67 line:充值前的用户余额:9059606.08 2020-07-08 21:28:32,606 py30 INFO test_recharge.py-70 line:充值的金额为:500000 2020-07-08 21:28:32,608 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9559606.08 2020-07-08 21:28:32,609 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,610 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,610 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,611 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,611 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-08 21:28:32,693 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,697 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9559606.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,741 py30 INFO test_recharge.py-91 line:充值后的用户余额:9559606.08 2020-07-08 21:28:32,744 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,745 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,745 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,745 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,746 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-08 21:28:32,818 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,818 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,819 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,819 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,819 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,819 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,819 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-08 21:28:32,882 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,884 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,889 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,889 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,889 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,889 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,890 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-08 21:28:32,948 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:32,949 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9560206.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:32,949 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:28:32,960 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:32,961 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:32,962 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:32,963 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:32,964 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-08 21:28:33,031 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,032 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,036 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,037 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,037 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,037 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,037 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-08 21:28:33,102 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,103 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9560206.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,103 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:28:33,104 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,104 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,104 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,105 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,105 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-08 21:28:33,172 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,173 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,180 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,182 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,183 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,183 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,184 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-08 21:28:33,240 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,240 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,241 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-08 21:28:33,248 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,250 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,251 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,251 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,251 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-08 21:28:33,324 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,325 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,327 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-08 21:28:33,330 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,333 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,343 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,345 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,346 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-08 21:28:33,412 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,414 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:28:33,417 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-08 21:28:33,420 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:28:33,420 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MjExfQ.CUDCn_kH5wr0BZpc1oQJnig7OLv8lU-yTdsQ5QQI-Y0daUntvOB1N6Mmm8mpcWUqo8vxVPXUGuGIu0s8ASHbkg'} 2020-07-08 21:28:33,420 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:28:33,421 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:28:33,421 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-08 21:28:33,486 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:28:33,489 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:22,425 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:22,426 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:30:22,426 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:30:22,426 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:30:22,426 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:30:22,534 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:22,534 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:22,535 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:22,535 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:30:22,535 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:30:22,535 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-08 21:30:22,535 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:30:22,651 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:22,652 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9560206.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-08 21:35:22', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:22,704 py30 INFO test_recharge.py-67 line:充值前的用户余额:9560206.08 2020-07-08 21:30:22,704 py30 INFO test_recharge.py-70 line:充值的金额为:600 2020-07-08 21:30:22,704 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9560806.08 2020-07-08 21:30:22,705 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:22,705 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:22,705 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:22,705 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:22,705 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-08 21:30:22,771 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:22,780 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9560806.08, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:22,828 py30 INFO test_recharge.py-91 line:充值后的用户余额:9560806.08 2020-07-08 21:30:22,876 py30 INFO test_recharge.py-67 line:充值前的用户余额:9560806.08 2020-07-08 21:30:22,877 py30 INFO test_recharge.py-70 line:充值的金额为:600.1 2020-07-08 21:30:22,879 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9561406.18 2020-07-08 21:30:22,879 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:22,880 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:22,880 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:22,881 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:22,881 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-08 21:30:22,948 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:22,948 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9561406.18, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,008 py30 INFO test_recharge.py-91 line:充值后的用户余额:9561406.18 2020-07-08 21:30:23,059 py30 INFO test_recharge.py-67 line:充值前的用户余额:9561406.18 2020-07-08 21:30:23,060 py30 INFO test_recharge.py-70 line:充值的金额为:600.22 2020-07-08 21:30:23,060 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:9562006.4 2020-07-08 21:30:23,061 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,061 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,061 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,062 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,062 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-08 21:30:23,129 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,131 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 9562006.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,187 py30 INFO test_recharge.py-91 line:充值后的用户余额:9562006.40 2020-07-08 21:30:23,238 py30 INFO test_recharge.py-67 line:充值前的用户余额:9562006.40 2020-07-08 21:30:23,238 py30 INFO test_recharge.py-70 line:充值的金额为:500000 2020-07-08 21:30:23,239 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:10062006.4 2020-07-08 21:30:23,239 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,240 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,241 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,241 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,241 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-08 21:30:23,300 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,300 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10062006.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,349 py30 INFO test_recharge.py-91 line:充值后的用户余额:10062006.40 2020-07-08 21:30:23,351 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,352 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,352 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,352 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,353 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-08 21:30:23,436 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,438 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,441 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,442 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,443 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,444 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,444 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-08 21:30:23,502 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,503 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,504 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,512 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,512 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,513 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,513 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-08 21:30:23,590 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,593 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10062606.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,595 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:30:23,604 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,605 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,613 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,614 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,614 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-08 21:30:23,669 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,669 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,670 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,670 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,670 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,671 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,671 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-08 21:30:23,739 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,740 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10062606.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,741 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:30:23,742 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,742 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,743 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,743 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,743 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-08 21:30:23,800 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,800 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,800 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-08 21:30:23,802 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,803 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,803 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,805 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,806 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-08 21:30:23,881 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,882 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,883 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-08 21:30:23,886 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,887 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,888 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,889 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,889 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-08 21:30:23,956 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:23,957 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:23,957 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-08 21:30:23,958 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:23,958 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:23,959 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:23,959 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:23,959 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-08 21:30:24,024 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:24,024 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:30:24,025 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-08 21:30:24,026 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:30:24,027 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1MzIyfQ.1mlHrVSZ-AA3YZfn-m171Z8ZyORf55X7BgzkRmC9kHYl6YZyOEPQ2Vi_BrZs1Kh-y8KuT3wc3_J84xVZlzvJFg'} 2020-07-08 21:30:24,027 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:30:24,027 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:30:24,027 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-08 21:30:24,085 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:30:24,085 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,193 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:44,194 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:44,194 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:35:44,194 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:44,194 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:35:44,327 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:44,327 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,328 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:44,328 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:44,328 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-08 21:35:44,328 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-08 21:35:44,328 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-08 21:35:44,435 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:44,436 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10062606.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-08 21:40:44', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,496 py30 INFO test_recharge.py-67 line:充值前的用户余额:10062606.40 2020-07-08 21:35:44,497 py30 INFO test_recharge.py-70 line:充值的金额为:600 2020-07-08 21:35:44,498 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:10063206.4 2020-07-08 21:35:44,498 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:44,499 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:44,501 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:44,501 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:44,501 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-08 21:35:44,567 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:44,568 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10063206.4, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,620 py30 INFO test_recharge.py-91 line:充值后的用户余额:10063206.40 2020-07-08 21:35:44,671 py30 INFO test_recharge.py-67 line:充值前的用户余额:10063206.40 2020-07-08 21:35:44,672 py30 INFO test_recharge.py-70 line:充值的金额为:600.1 2020-07-08 21:35:44,672 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:10063806.5 2020-07-08 21:35:44,672 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:44,673 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:44,673 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:44,673 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:44,673 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-08 21:35:44,742 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:44,743 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10063806.5, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,795 py30 INFO test_recharge.py-91 line:充值后的用户余额:10063806.50 2020-07-08 21:35:44,852 py30 INFO test_recharge.py-67 line:充值前的用户余额:10063806.50 2020-07-08 21:35:44,853 py30 INFO test_recharge.py-70 line:充值的金额为:600.22 2020-07-08 21:35:44,854 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:10064406.72 2020-07-08 21:35:44,855 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:44,856 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:44,856 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:44,856 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:44,856 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-08 21:35:44,934 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:44,934 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10064406.72, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:44,985 py30 INFO test_recharge.py-91 line:充值后的用户余额:10064406.72 2020-07-08 21:35:45,036 py30 INFO test_recharge.py-67 line:充值前的用户余额:10064406.72 2020-07-08 21:35:45,037 py30 INFO test_recharge.py-70 line:充值的金额为:500000 2020-07-08 21:35:45,037 py30 INFO test_recharge.py-72 line:期望的充值之后的金额为:10564406.72 2020-07-08 21:35:45,037 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,037 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,038 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,038 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,038 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-08 21:35:45,108 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,109 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10564406.72, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,160 py30 INFO test_recharge.py-91 line:充值后的用户余额:10564406.72 2020-07-08 21:35:45,164 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,165 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,166 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,166 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,167 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-08 21:35:45,232 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,232 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,233 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,233 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,233 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,233 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,233 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-08 21:35:45,291 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,292 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,293 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,294 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,295 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,295 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,296 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-08 21:35:45,377 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,378 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10565006.72, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,378 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:35:45,382 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,382 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,383 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,383 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,383 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-08 21:35:45,446 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,447 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,447 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,448 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,448 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,448 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,449 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-08 21:35:45,512 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,513 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10565006.72, 'mobile_phone': '18605671115', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,513 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-08 21:35:45,514 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,515 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,515 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,515 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,515 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-08 21:35:45,574 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,575 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,575 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-08 21:35:45,576 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,577 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,577 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,577 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,578 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-08 21:35:45,646 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,646 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,646 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 84, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-08 21:35:45,648 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,648 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,648 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,648 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,648 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-08 21:35:45,702 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,702 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,702 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-08 21:35:45,705 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,705 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,706 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,706 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,707 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-08 21:35:45,778 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,779 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,779 py30 ERROR test_recharge.py-94 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_recharge.py", line 85, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-08 21:35:45,781 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:45,783 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0MjE1NjQ0fQ.HQopKHKdzIEyGrt0HUUPJOSD5fnm_KSw0aPQkli4MarUZ5zgxPDVPZxry_EfuanOgrz1rwm7wYZKx32JjI8HCw'} 2020-07-08 21:35:45,784 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:45,785 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-08 21:35:45,786 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-08 21:35:45,857 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:45,858 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:45,859 py30 INFO test_register.py-34 line:====== 注册模块用例 开始执行 ======== 2020-07-08 21:35:45,860 py30 INFO test_register.py-44 line:********* 执行用例1:注册成功-带注册名 ********* 2020-07-08 21:35:46,079 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,080 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,081 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,081 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,081 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '19963428620', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-08 21:35:46,140 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,142 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,145 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-08 21:35:46,146 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 0 2020-07-08 21:35:46,149 py30 INFO test_register.py-44 line:********* 执行用例2:成功-不带用户名 ********* 2020-07-08 21:35:46,347 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,348 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,349 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,349 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,350 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13549350927', 'pwd': '123456789', 'type': 1} 2020-07-08 21:35:46,482 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,483 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 221866, 'reg_name': '小柠檬', 'mobile_phone': '13549350927'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,483 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-08 21:35:46,483 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day7\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 1 2020-07-08 21:35:46,484 py30 INFO test_register.py-44 line:********* 执行用例3:不输入手机号 ********* 2020-07-08 21:35:46,485 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,485 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,485 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,485 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,485 py30 INFO handle_requests.py-44 line:请求数据为:{'pwd': '12345678', 'type': 1} 2020-07-08 21:35:46,549 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,550 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '手机号为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,550 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-08 21:35:46,551 py30 INFO test_register.py-44 line:********* 执行用例4:手机号长度10位 ********* 2020-07-08 21:35:46,551 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,551 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,552 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,552 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,552 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000', 'pwd': '12345678', 'type': 1} 2020-07-08 21:35:46,618 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,619 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,620 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-08 21:35:46,620 py30 INFO test_register.py-44 line:********* 执行用例5:手机号长度12位 ********* 2020-07-08 21:35:46,621 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,621 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,621 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,621 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,621 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '155000000001', 'pwd': '12345678', 'type': 1} 2020-07-08 21:35:46,676 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,677 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,677 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-08 21:35:46,678 py30 INFO test_register.py-44 line:********* 执行用例6:手机号含有非法字符 ********* 2020-07-08 21:35:46,678 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,679 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,679 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,679 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,679 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000q', 'pwd': '12345678', 'type': 1} 2020-07-08 21:35:46,746 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,747 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,748 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-08 21:35:46,750 py30 INFO test_register.py-44 line:********* 执行用例7:已注册过的手机号 ********* 2020-07-08 21:35:46,750 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,751 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,751 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,751 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,752 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000000', 'pwd': '12345678', 'type': 1} 2020-07-08 21:35:46,872 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,872 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,872 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"账号已存在"} 2020-07-08 21:35:46,873 py30 INFO test_register.py-44 line:********* 执行用例8:密码7位 ********* 2020-07-08 21:35:46,873 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,874 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,874 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,874 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,874 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500056781', 'pwd': '1234567', 'type': 1} 2020-07-08 21:35:46,936 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:46,937 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:46,937 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-08 21:35:46,938 py30 INFO test_register.py-44 line:********* 执行用例9:密码17位 ********* 2020-07-08 21:35:46,938 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:46,938 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:46,938 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:46,938 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:46,939 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000001', 'pwd': '12345678901234567', 'type': 1} 2020-07-08 21:35:46,999 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:47,000 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:47,000 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-08 21:35:47,001 py30 INFO test_register.py-44 line:********* 执行用例10:不输入密码 ********* 2020-07-08 21:35:47,002 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:47,002 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:47,003 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:47,003 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:47,003 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300000001', 'type': 1} 2020-07-08 21:35:47,062 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:47,062 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '密码为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:47,062 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"密码为空"} 2020-07-08 21:35:47,062 py30 INFO test_register.py-44 line:********* 执行用例11:注册名11位 ********* 2020-07-08 21:35:47,062 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:47,063 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:47,063 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:47,063 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:47,063 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13303007856', 'pwd': '12345678', 'type': 1, 'reg_name': '12345678909991'} 2020-07-08 21:35:47,121 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:47,121 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '用户昵称长度超过10位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:47,122 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"用户昵称长度超过10位"} 2020-07-08 21:35:47,123 py30 INFO test_register.py-44 line:********* 执行用例12:类型输入非0,1内容 ********* 2020-07-08 21:35:47,123 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:47,123 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:47,123 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:47,123 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:47,123 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300003456', 'pwd': '12345678', 'type': 2} 2020-07-08 21:35:47,178 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:47,181 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '不支持的用户类型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:47,181 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"不支持的用户类型"} 2020-07-08 21:35:47,183 py30 INFO test_register.py-44 line:********* 执行用例13:不输入类型 ********* 2020-07-08 21:35:47,374 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-08 21:35:47,375 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-08 21:35:47,375 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-08 21:35:47,375 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-08 21:35:47,375 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13187039808', 'pwd': '12345678'} 2020-07-08 21:35:47,489 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-08 21:35:47,489 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 221867, 'reg_name': '小柠檬', 'mobile_phone': '13187039808'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-08 21:35:47,490 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-08 21:35:47,586 py30 INFO test_register.py-38 line:====== 注册模块用例 执行结束 ======== 2020-07-15 22:01:39,978 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:01:39,982 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:01:39,983 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:01:39,983 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-15 22:01:39,984 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:01:40,095 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:01:40,100 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:01:40,100 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:01:40,100 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:01:40,101 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:01:40,101 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-15 22:01:40,101 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:01:40,209 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:01:40,209 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10502401.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-15 22:06:39', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIxOTk5fQ.G7uve97zGmJvAy31hIBFJugzXRnjJfifFrxHg7IWspNbNQCOJQkTDyJE4BcI4f5GOqOf3AitpF7PGoOOjCVR5g'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:01:40,467 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:01:40,470 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIxOTk5fQ.G7uve97zGmJvAy31hIBFJugzXRnjJfifFrxHg7IWspNbNQCOJQkTDyJE4BcI4f5GOqOf3AitpF7PGoOOjCVR5g'} 2020-07-15 22:01:40,472 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:01:40,472 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:01:40,473 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-15 22:01:40,534 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:01:40,535 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:01:40,547 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:01:40,548 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIxOTk5fQ.G7uve97zGmJvAy31hIBFJugzXRnjJfifFrxHg7IWspNbNQCOJQkTDyJE4BcI4f5GOqOf3AitpF7PGoOOjCVR5g'} 2020-07-15 22:01:40,548 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:01:40,548 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:01:40,549 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-15 22:01:40,591 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:01:40,592 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:01:40,646 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:01:40,646 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIxOTk5fQ.G7uve97zGmJvAy31hIBFJugzXRnjJfifFrxHg7IWspNbNQCOJQkTDyJE4BcI4f5GOqOf3AitpF7PGoOOjCVR5g'} 2020-07-15 22:01:40,647 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:01:40,647 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:01:40,647 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-15 22:01:40,714 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:01:40,716 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:46,592 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:46,592 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:02:46,592 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:02:46,592 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-15 22:02:46,592 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:02:46,699 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:46,705 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:46,706 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:46,707 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:02:46,707 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:02:46,708 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-15 22:02:46,708 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:02:46,826 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:46,828 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10502401.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-15 22:07:46', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,095 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,097 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,097 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,098 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,098 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-15 22:02:47,171 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,172 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,178 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,179 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,179 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,179 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,179 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-15 22:02:47,223 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,223 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,235 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,235 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,236 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,236 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,236 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-15 22:02:47,292 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,292 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503001.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,292 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:02:47,328 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,329 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,329 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,329 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,329 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-15 22:02:47,398 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,398 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,413 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,414 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,414 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,414 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,414 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-15 22:02:47,475 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,475 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503001.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,475 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:02:47,514 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,515 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,515 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,515 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,515 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-15 22:02:47,579 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,581 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,582 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:02:47,610 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,610 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,610 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,610 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,610 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-15 22:02:47,652 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,653 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,653 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 2 != 1 2020-07-15 22:02:47,687 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,687 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,687 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,688 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,688 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-15 22:02:47,732 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,732 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,733 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额小数超过两位 != 金额小数超过两位 2020-07-15 22:02:47,769 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,770 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,770 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,770 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,770 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-15 22:02:47,812 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,812 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:02:47,813 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:02:47,845 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:02:47,845 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMDY2fQ.XE_NbSW9QmzNJFxFv1DvhYYRP5HtO4g3iS8CiaA5_iaWqNXoz1iNEBIvWp6R8a8mWbwyhh2gJXxghlfeV1ZaxA'} 2020-07-15 22:02:47,845 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:02:47,845 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:02:47,845 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-15 22:02:47,903 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:02:47,904 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:58,732 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:58,732 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:03:58,733 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:03:58,733 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-15 22:03:58,734 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:03:58,849 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:58,855 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:58,858 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:58,858 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:03:58,859 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:03:58,859 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-15 22:03:58,860 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:03:58,987 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:58,987 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503001.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-15 22:08:58', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,235 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,237 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,238 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,239 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,239 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-15 22:03:59,289 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,289 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,296 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,297 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,298 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,298 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,299 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-15 22:03:59,346 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,347 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,357 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,357 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,358 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,358 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,358 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-15 22:03:59,421 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,422 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503601.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,423 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:03:59,467 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,467 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,468 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,468 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,468 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-15 22:03:59,514 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,515 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,539 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,541 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,542 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,542 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,542 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-15 22:03:59,608 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,608 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503601.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,609 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:03:59,650 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,651 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,651 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,651 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,651 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-15 22:03:59,711 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,711 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,712 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:03:59,733 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,734 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,734 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,734 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,735 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-15 22:03:59,795 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,796 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,797 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 2 != 1 2020-07-15 22:03:59,827 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,828 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,828 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,828 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,828 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-15 22:03:59,873 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,874 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,875 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额小数超过两位 != 金额小数超过两位 2020-07-15 22:03:59,905 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,906 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,906 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,907 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,907 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-15 22:03:59,970 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:03:59,971 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:03:59,972 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:03:59,994 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:03:59,994 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyMTM4fQ.WqZwW__EvS3Oam1vVsA-Wmt-MwlibcOrQf1B5KGeeyZbjHpn0WcMWThsu9PzRRq_MTH7gZ8npC9aXOGk0NN3Mw'} 2020-07-15 22:03:59,994 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:03:59,994 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:03:59,995 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-15 22:04:00,062 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:04:00,062 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:32,946 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:32,948 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:08:32,949 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:08:32,950 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-15 22:08:32,950 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:08:33,076 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,082 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,083 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,083 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:08:33,084 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:08:33,084 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-15 22:08:33,085 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:08:33,202 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,203 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10503601.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-15 22:13:32', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,244 py30 INFO test_recharge.py-71 line:充值前的用户余额:10503601.28 2020-07-15 22:08:33,246 py30 INFO test_recharge.py-74 line:充值的金额为:600 2020-07-15 22:08:33,247 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:10504201.28 2020-07-15 22:08:33,248 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,248 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:33,248 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:33,249 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:33,249 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-15 22:08:33,306 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,308 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10504201.28, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,346 py30 INFO test_recharge.py-96 line:充值后的用户余额:10504201.28 2020-07-15 22:08:33,411 py30 INFO test_recharge.py-71 line:充值前的用户余额:10504201.28 2020-07-15 22:08:33,412 py30 INFO test_recharge.py-74 line:充值的金额为:600.1 2020-07-15 22:08:33,413 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:10504801.38 2020-07-15 22:08:33,414 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,414 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:33,414 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:33,415 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:33,415 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-15 22:08:33,488 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,489 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10504801.38, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,490 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 10504801.38 != 10504201.28 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 10504801.38 != 10504201.28 2020-07-15 22:08:33,712 py30 INFO test_recharge.py-71 line:充值前的用户余额:10504801.38 2020-07-15 22:08:33,712 py30 INFO test_recharge.py-74 line:充值的金额为:600.22 2020-07-15 22:08:33,712 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:10505401.6 2020-07-15 22:08:33,713 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,713 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:33,713 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:33,713 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:33,713 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-15 22:08:33,778 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,778 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 10505401.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,778 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 10505401.6 != 10504801.38 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 10505401.6 != 10504801.38 2020-07-15 22:08:33,836 py30 INFO test_recharge.py-71 line:充值前的用户余额:10505401.60 2020-07-15 22:08:33,838 py30 INFO test_recharge.py-74 line:充值的金额为:500000 2020-07-15 22:08:33,839 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:11005401.6 2020-07-15 22:08:33,840 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,841 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:33,841 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:33,841 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:33,841 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-15 22:08:33,912 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:33,912 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11005401.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:33,913 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 11005401.6 != 10505401.6 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 11005401.6 != 10505401.6 2020-07-15 22:08:33,960 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:33,960 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:33,960 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:33,960 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:33,961 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-15 22:08:34,000 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,001 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,022 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,023 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,023 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,023 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,023 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-15 22:08:34,080 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,080 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,095 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,096 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,096 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,096 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,096 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-15 22:08:34,147 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,148 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11006001.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,148 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:08:34,172 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,173 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,173 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,173 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,173 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-15 22:08:34,239 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,239 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,248 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,248 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,248 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,248 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,248 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-15 22:08:34,295 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,296 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11006001.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,296 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:08:34,331 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,331 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,331 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,331 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,331 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-15 22:08:34,390 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,391 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,393 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:08:34,427 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,428 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,428 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,428 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,429 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-15 22:08:34,488 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,488 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,488 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 2 != 1 2020-07-15 22:08:34,513 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,513 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,513 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,513 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,513 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-15 22:08:34,565 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,566 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,566 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额小数超过两位 != 金额小数超过两位 2020-07-15 22:08:34,620 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,620 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,620 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,620 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,621 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-15 22:08:34,671 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,671 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:08:34,671 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:08:34,700 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:08:34,701 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNDEyfQ.XVGkWMpG7BstFl7--mE71YQ5azo0U0iLqyJFQcDdtwYR0oaGSCBqGQ0qfGS6kp18hSSjUkk1MKQwFavvc1AaUQ'} 2020-07-15 22:08:34,701 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:08:34,701 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:08:34,701 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-15 22:08:34,757 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:08:34,758 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:46,320 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:46,320 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:14:46,321 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:14:46,321 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-15 22:14:46,321 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:14:46,426 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:46,430 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:46,431 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:46,431 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-15 22:14:46,432 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-15 22:14:46,432 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-15 22:14:46,433 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-15 22:14:46,547 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:46,548 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11006001.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-15 22:19:46', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:46,600 py30 INFO test_recharge.py-71 line:充值前的用户余额:11006001.60 2020-07-15 22:14:46,600 py30 INFO test_recharge.py-74 line:充值的金额为:600 2020-07-15 22:14:46,600 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:11006601.6 2020-07-15 22:14:46,601 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:46,601 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:46,601 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:46,601 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:46,601 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600} 2020-07-15 22:14:46,665 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:46,665 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11006601.6, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:46,713 py30 INFO test_recharge.py-96 line:充值后的用户余额:11006601.60 2020-07-15 22:14:46,783 py30 INFO test_recharge.py-71 line:充值前的用户余额:11006601.60 2020-07-15 22:14:46,783 py30 INFO test_recharge.py-74 line:充值的金额为:600.1 2020-07-15 22:14:46,784 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:11007201.7 2020-07-15 22:14:46,784 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:46,784 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:46,785 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:46,785 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:46,785 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.1} 2020-07-15 22:14:46,840 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:46,840 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11007201.7, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:46,841 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 11007201.7 != 11006601.6 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 11007201.7 != 11006601.6 2020-07-15 22:14:47,051 py30 INFO test_recharge.py-71 line:充值前的用户余额:11007201.70 2020-07-15 22:14:47,053 py30 INFO test_recharge.py-74 line:充值的金额为:600.22 2020-07-15 22:14:47,054 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:11007801.92 2020-07-15 22:14:47,054 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,054 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,054 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,055 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,055 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.22} 2020-07-15 22:14:47,118 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,119 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11007801.92, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,119 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 11007801.92 != 11007201.7 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 11007801.92 != 11007201.7 2020-07-15 22:14:47,193 py30 INFO test_recharge.py-71 line:充值前的用户余额:11007801.92 2020-07-15 22:14:47,194 py30 INFO test_recharge.py-74 line:充值的金额为:500000 2020-07-15 22:14:47,195 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:11507801.92 2020-07-15 22:14:47,195 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,195 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,196 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,196 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,196 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500000} 2020-07-15 22:14:47,261 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,261 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11507801.92, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,262 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 11507801.92 != 11007801.92 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 93, in test_recharge self.assertEqual(response.json()["data"]["leave_amount"], expected["data"]["leave_amount"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 11507801.92 != 11007801.92 2020-07-15 22:14:47,313 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,313 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,314 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,314 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,314 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-15 22:14:47,370 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,371 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,378 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,378 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,378 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,379 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,379 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-15 22:14:47,438 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,439 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,470 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,471 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,471 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,471 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,471 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '200713', 'amount': 600} 2020-07-15 22:14:47,542 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,544 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11508401.92, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,546 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:14:47,573 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,575 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,578 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,580 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,580 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-15 22:14:47,631 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,632 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,647 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,647 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,648 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,648 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,648 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 0} 2020-07-15 22:14:47,700 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,700 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 200713, 'leave_amount': 11508401.92, 'mobile_phone': '18605671115', 'reg_name': '新昵称', 'reg_time': '2020-06-29 11:52:20.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,700 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 0 != 2 2020-07-15 22:14:47,755 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,756 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,756 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,756 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,756 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': -600} 2020-07-15 22:14:47,805 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,806 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,807 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:14:47,869 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,870 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,870 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,870 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,870 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713} 2020-07-15 22:14:47,911 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,911 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,912 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 89, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 2 != 1 2020-07-15 22:14:47,935 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:47,936 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:47,937 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:47,938 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:47,938 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 600.222} 2020-07-15 22:14:47,986 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:47,986 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:47,987 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额小数超过两位 != 金额小数超过两位 2020-07-15 22:14:48,017 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:48,017 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:48,017 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:48,017 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:48,017 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': 500001} 2020-07-15 22:14:48,058 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:48,058 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-15 22:14:48,059 py30 ERROR test_recharge.py-99 line:断言失败! Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 32, in _patched_equals old(self, first, second, msg) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day8\TestCases\test_recharge.py", line 90, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.1\plugins\python-ce\helpers\pycharm\teamcity\diff_tools.py", line 38, in _patched_equals raise error teamcity.diff_tools.EqualsAssertionError: :: 余额必须大于0并且小于或者等于500000 != 金额必须大于0并且小于或者等于500000 2020-07-15 22:14:48,111 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-15 22:14:48,111 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjIwMDcxMywiZXhwIjoxNTk0ODIyNzg2fQ.i7S7YvJQaxqwyXqhep78vjG-eWfXWA8Jgo8QdoeM6Jia5s0HPraSOrMB02Xwfwd72VZ72anWYpIf3UGx3A5BMQ'} 2020-07-15 22:14:48,111 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-15 22:14:48,112 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-15 22:14:48,112 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 200713, 'amount': '5万'} 2020-07-15 22:14:48,172 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-15 22:14:48,176 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:06:49,920 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:06:49,921 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 20:06:49,922 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 20:06:49,922 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 20:06:49,922 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 20:06:50,001 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:06:50,002 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:06:50,003 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:06:50,005 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 20:06:50,006 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 20:06:50,006 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 20:06:50,007 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 20:06:50,071 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:06:50,071 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3029972.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 20:11:48', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg3OTA4fQ.MzUWv2cvfYht7Nm_ibNkqTvqIFzSWtL98R5QAVGDu_peG6rZvEDn0fJZOPQ9SLw3VYou0C5QM-bCI6mtDURprw'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:07:23,387 py30 INFO test_recharge.py-71 line:充值前的用户余额:3029972.72 2020-07-17 20:07:24,061 py30 INFO test_recharge.py-74 line:充值的金额为:600 2020-07-17 20:07:24,878 py30 INFO test_recharge.py-76 line:期望的充值之后的金额为:3030572.72 2020-07-17 20:09:13,633 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:09:13,633 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg3OTA4fQ.MzUWv2cvfYht7Nm_ibNkqTvqIFzSWtL98R5QAVGDu_peG6rZvEDn0fJZOPQ9SLw3VYou0C5QM-bCI6mtDURprw'} 2020-07-17 20:09:13,634 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 20:09:13,634 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 20:09:13,634 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600} 2020-07-17 20:09:13,730 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:09:13,731 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3030572.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:09:13,786 py30 INFO test_recharge.py-96 line:充值后的用户余额:3030572.72 2020-07-17 20:15:33,359 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:15:33,359 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 20:15:33,359 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 20:15:33,360 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 20:15:33,360 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 20:15:33,432 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:15:33,433 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:15:33,434 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:15:33,435 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 20:15:33,435 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 20:15:33,436 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 20:15:33,436 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 20:15:33,502 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:15:33,503 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3030572.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 20:20:32', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:15:38,885 py30 INFO test_recharge.py-76 line:充值前的用户余额:3030572.72 2020-07-17 20:15:38,885 py30 INFO test_recharge.py-79 line:充值的金额为:600 2020-07-17 20:15:38,886 py30 INFO test_recharge.py-81 line:期望的充值之后的金额为:3031172.72 2020-07-17 20:15:38,887 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 20:15:38,887 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 20:15:38,887 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 20:15:38,888 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 20:15:38,888 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600} 2020-07-17 20:15:38,979 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 20:15:38,980 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3031172.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 20:15:39,029 py30 INFO test_recharge.py-101 line:充值后的用户余额:3031172.72 2020-07-17 20:16:29,754 py30 INFO test_recharge.py-76 line:充值前的用户余额:3031172.72 2020-07-17 20:16:32,189 py30 INFO test_recharge.py-79 line:充值的金额为:600.1 2020-07-17 20:16:32,701 py30 INFO test_recharge.py-81 line:期望的充值之后的金额为:3031772.82 2020-07-17 21:03:08,215 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,221 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,222 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,222 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,223 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.1} 2020-07-17 21:03:08,518 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:08,519 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:08,520 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 0 2020-07-17 21:03:08,591 py30 INFO test_recharge.py-76 line:充值前的用户余额:3031172.72 2020-07-17 21:03:08,592 py30 INFO test_recharge.py-79 line:充值的金额为:600.22 2020-07-17 21:03:08,594 py30 INFO test_recharge.py-81 line:期望的充值之后的金额为:3031772.94 2020-07-17 21:03:08,595 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,595 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,595 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,595 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,596 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.22} 2020-07-17 21:03:08,658 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:08,658 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:08,659 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 0 2020-07-17 21:03:08,706 py30 INFO test_recharge.py-76 line:充值前的用户余额:3031172.72 2020-07-17 21:03:08,706 py30 INFO test_recharge.py-79 line:充值的金额为:500000 2020-07-17 21:03:08,706 py30 INFO test_recharge.py-81 line:期望的充值之后的金额为:3531172.72 2020-07-17 21:03:08,707 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,707 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,707 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,708 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,708 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500000} 2020-07-17 21:03:08,783 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:08,785 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:08,786 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 0 2020-07-17 21:03:08,788 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,789 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,789 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,789 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,789 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-17 21:03:08,861 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:08,862 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:08,862 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 1 2020-07-17 21:03:08,868 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,871 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,872 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,873 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,873 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-17 21:03:08,945 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:08,945 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:08,945 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 1007 2020-07-17 21:03:08,947 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:08,948 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:08,948 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:08,948 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:08,948 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '101', 'amount': 600} 2020-07-17 21:03:09,015 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,015 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,016 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,017 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,017 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,017 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,017 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,017 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-17 21:03:09,071 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,072 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,073 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,076 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,077 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,078 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,078 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,078 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 0} 2020-07-17 21:03:09,130 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,131 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,131 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,133 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,134 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,134 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,134 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,135 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': -600} 2020-07-17 21:03:09,198 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,198 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,199 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,201 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,202 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,202 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,202 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,202 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101} 2020-07-17 21:03:09,270 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,270 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,271 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 1 2020-07-17 21:03:09,279 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,280 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,281 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,282 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,283 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.222} 2020-07-17 21:03:09,354 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,355 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,356 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,365 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,368 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,371 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,372 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,372 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500001} 2020-07-17 21:03:09,453 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,454 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,455 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,464 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,465 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTg4NDMyfQ.iiSLoM45bzm1HkkIiX2Uq1EdWKqxP2bvU6_2l9tgkO9oSO6rMFuzJfRKp_2dKRPwJ249Wqb9WiFKTBTmnPy_kA'} 2020-07-17 21:03:09,467 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,468 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:03:09,468 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': '5万'} 2020-07-17 21:03:09,541 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,543 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1003, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved', 'msg': 'token已过期'} 2020-07-17 21:03:09,545 py30 ERROR test_recharge.py-104 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 94, in test_recharge File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 1003 != 2 2020-07-17 21:03:09,553 py30 INFO test_register.py-34 line:====== 注册模块用例 开始执行 ======== 2020-07-17 21:03:09,556 py30 INFO test_register.py-44 line:********* 执行用例1:注册成功-带注册名 ********* 2020-07-17 21:03:09,750 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:09,751 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:09,751 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:09,752 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:09,752 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '19899893513', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:03:09,823 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:09,825 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:09,826 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:03:09,831 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 0 2020-07-17 21:03:09,835 py30 INFO test_register.py-44 line:********* 执行用例2:成功-不带用户名 ********* 2020-07-17 21:03:10,001 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,002 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,002 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,002 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,003 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '17198881590', 'pwd': '123456789', 'type': 1} 2020-07-17 21:03:10,074 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,075 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,075 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:03:10,076 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-17 21:03:10,079 py30 INFO test_register.py-44 line:********* 执行用例3:不输入手机号 ********* 2020-07-17 21:03:10,080 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,080 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,080 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,080 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,080 py30 INFO handle_requests.py-44 line:请求数据为:{'pwd': '12345678', 'type': 1} 2020-07-17 21:03:10,142 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,142 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '手机号为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,143 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:03:10,144 py30 INFO test_register.py-44 line:********* 执行用例4:手机号长度10位 ********* 2020-07-17 21:03:10,144 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,144 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,144 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,144 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,145 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:03:10,212 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,213 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,213 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:03:10,214 py30 INFO test_register.py-44 line:********* 执行用例5:手机号长度12位 ********* 2020-07-17 21:03:10,214 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,214 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,215 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,215 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,215 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '155000000001', 'pwd': '12345678', 'type': 1} 2020-07-17 21:03:10,268 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,268 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,268 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:03:10,269 py30 INFO test_register.py-44 line:********* 执行用例6:手机号含有非法字符 ********* 2020-07-17 21:03:10,269 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,270 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,270 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,270 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,270 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000q', 'pwd': '12345678', 'type': 1} 2020-07-17 21:03:10,324 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,325 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,325 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:03:10,326 py30 INFO test_register.py-44 line:********* 执行用例7:已注册过的手机号 ********* 2020-07-17 21:03:10,327 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,327 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,327 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,328 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,328 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:03:10,399 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,400 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,400 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"账号已存在"} 2020-07-17 21:03:10,400 py30 INFO test_register.py-44 line:********* 执行用例8:密码7位 ********* 2020-07-17 21:03:10,401 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,401 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,401 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,401 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,401 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500056781', 'pwd': '1234567', 'type': 1} 2020-07-17 21:03:10,461 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,462 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,462 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:03:10,462 py30 INFO test_register.py-44 line:********* 执行用例9:密码17位 ********* 2020-07-17 21:03:10,463 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,463 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,463 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,464 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,464 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000001', 'pwd': '12345678901234567', 'type': 1} 2020-07-17 21:03:10,526 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,526 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,527 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:03:10,528 py30 INFO test_register.py-44 line:********* 执行用例10:不输入密码 ********* 2020-07-17 21:03:10,529 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,529 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,530 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,530 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,530 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300000001', 'type': 1} 2020-07-17 21:03:10,599 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,600 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '密码为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,601 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"密码为空"} 2020-07-17 21:03:10,601 py30 INFO test_register.py-44 line:********* 执行用例11:注册名11位 ********* 2020-07-17 21:03:10,601 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,602 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,602 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,602 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,602 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13303007856', 'pwd': '12345678', 'type': 1, 'reg_name': '12345678909991'} 2020-07-17 21:03:10,655 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,655 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '用户昵称长度超过10位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,655 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"用户昵称长度超过10位"} 2020-07-17 21:03:10,656 py30 INFO test_register.py-44 line:********* 执行用例12:类型输入非0,1内容 ********* 2020-07-17 21:03:10,656 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,656 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,656 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,656 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,656 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300003456', 'pwd': '12345678', 'type': 2} 2020-07-17 21:03:10,720 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,720 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '不支持的用户类型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,721 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"不支持的用户类型"} 2020-07-17 21:03:10,721 py30 INFO test_register.py-44 line:********* 执行用例13:不输入类型 ********* 2020-07-17 21:03:10,848 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:03:10,849 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:03:10,849 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:03:10,849 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:03:10,849 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13497253319', 'pwd': '12345678'} 2020-07-17 21:03:10,910 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:03:10,911 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 969, 'reg_name': '小柠檬', 'mobile_phone': '13497253319'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:03:10,911 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:03:10,969 py30 INFO test_register.py-38 line:====== 注册模块用例 执行结束 ======== 2020-07-17 21:10:34,219 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:10:34,220 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:10:34,220 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:10:34,220 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:10:34,220 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15744786175', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:10:34,287 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:10:34,287 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 970, 'reg_name': '美丽可爱的小简', 'mobile_phone': '15744786175'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:10:34,288 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:10:34,288 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:10:34,288 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:10:34,288 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:10:34,288 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15744786175', 'pwd': '123456789'} 2020-07-17 21:10:34,338 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:10:34,338 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 970, 'leave_amount': 0.0, 'mobile_phone': '15744786175', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:10:33.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:15:33', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk3MCwiZXhwIjoxNTk0OTkxNzMzfQ.LM01yMFIPMdxta82zMLEOgavHZhwJ4giSgfc4lvYeEUiTHyDyCYA49shpJ2rqU4QuLzDD2_TpTSSRmepMkyZ-g'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:10:34,340 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:10:34,341 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk3MCwiZXhwIjoxNTk0OTkxNzMzfQ.LM01yMFIPMdxta82zMLEOgavHZhwJ4giSgfc4lvYeEUiTHyDyCYA49shpJ2rqU4QuLzDD2_TpTSSRmepMkyZ-g'} 2020-07-17 21:10:34,341 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:10:34,341 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:10:34,341 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 970, 'amount': 600} 2020-07-17 21:10:34,409 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:10:34,409 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 970, 'leave_amount': 600.0, 'mobile_phone': '15744786175', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:10:33.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:31,580 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:31,581 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:31,582 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:12:31,582 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:31,582 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:12:31,649 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:31,649 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:31,649 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:31,649 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:31,650 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:12:31,650 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:12:31,650 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:12:31,710 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:31,710 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3031172.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:17:30', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:31,769 py30 INFO test_recharge.py-79 line:充值前的用户余额:3031172.72 2020-07-17 21:12:31,769 py30 INFO test_recharge.py-82 line:充值的金额为:600 2020-07-17 21:12:31,769 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3031772.72 2020-07-17 21:12:31,769 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:31,769 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:31,769 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:31,769 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:31,769 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600} 2020-07-17 21:12:31,844 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:31,844 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3031772.72, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:31,894 py30 INFO test_recharge.py-104 line:充值后的用户余额:3031772.72 2020-07-17 21:12:31,947 py30 INFO test_recharge.py-79 line:充值前的用户余额:3031772.72 2020-07-17 21:12:31,947 py30 INFO test_recharge.py-82 line:充值的金额为:600.1 2020-07-17 21:12:31,948 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3032372.82 2020-07-17 21:12:31,948 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:31,949 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:31,949 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:31,949 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:31,949 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.1} 2020-07-17 21:12:32,024 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,025 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3032372.82, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,076 py30 INFO test_recharge.py-104 line:充值后的用户余额:3032372.82 2020-07-17 21:12:32,129 py30 INFO test_recharge.py-79 line:充值前的用户余额:3032372.82 2020-07-17 21:12:32,132 py30 INFO test_recharge.py-82 line:充值的金额为:600.22 2020-07-17 21:12:32,132 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3032973.04 2020-07-17 21:12:32,133 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,133 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,133 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,133 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,133 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.22} 2020-07-17 21:12:32,204 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,204 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3032973.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,254 py30 INFO test_recharge.py-104 line:充值后的用户余额:3032973.04 2020-07-17 21:12:32,309 py30 INFO test_recharge.py-79 line:充值前的用户余额:3032973.04 2020-07-17 21:12:32,310 py30 INFO test_recharge.py-82 line:充值的金额为:500000 2020-07-17 21:12:32,310 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3532973.04 2020-07-17 21:12:32,310 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,311 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,311 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,311 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,311 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500000} 2020-07-17 21:12:32,384 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,386 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3532973.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,439 py30 INFO test_recharge.py-104 line:充值后的用户余额:3532973.04 2020-07-17 21:12:32,439 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,440 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,440 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,440 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,440 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-17 21:12:32,500 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,500 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,501 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,501 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,501 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,501 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,501 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-17 21:12:32,553 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,554 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,555 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,555 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,555 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,555 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,555 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '101', 'amount': 600} 2020-07-17 21:12:32,621 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,621 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3533573.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,621 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:12:32,623 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,623 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,623 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,623 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,623 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-17 21:12:32,678 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,678 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,679 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,679 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,679 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,679 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,679 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 0} 2020-07-17 21:12:32,750 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,751 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3533573.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,751 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:12:32,753 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,754 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,754 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,754 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,754 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': -600} 2020-07-17 21:12:32,806 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,810 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,811 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:12:32,813 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,813 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,814 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,814 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,814 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101} 2020-07-17 21:12:32,871 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,871 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,871 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-17 21:12:32,872 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,872 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,872 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,872 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,873 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.222} 2020-07-17 21:12:32,929 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,930 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,930 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-17 21:12:32,932 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,932 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,932 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,932 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,932 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500001} 2020-07-17 21:12:32,988 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:32,988 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:32,989 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:12:32,989 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:32,990 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkxODUwfQ.5elHKfm_UYsfwqsDJkL9UvTIyhfUkX4AONJndT3eJ8m3N5wqV_UVQt74qqWCw6TCWNGYxbNubphIvSB_8NHm-A'} 2020-07-17 21:12:32,990 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:32,990 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:12:32,990 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': '5万'} 2020-07-17 21:12:33,048 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,048 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,049 py30 INFO test_register.py-34 line:====== 注册模块用例 开始执行 ======== 2020-07-17 21:12:33,049 py30 INFO test_register.py-44 line:********* 执行用例1:注册成功-带注册名 ********* 2020-07-17 21:12:33,186 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,187 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,188 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,188 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,188 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '17778256557', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:12:33,244 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,245 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 971, 'reg_name': '美丽可爱的小简', 'mobile_phone': '17778256557'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,245 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:12:33,294 py30 INFO test_register.py-44 line:********* 执行用例2:成功-不带用户名 ********* 2020-07-17 21:12:33,485 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,486 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,486 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,486 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,486 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '17724003041', 'pwd': '123456789', 'type': 1} 2020-07-17 21:12:33,545 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,546 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 972, 'reg_name': '小柠檬', 'mobile_phone': '17724003041'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,546 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:12:33,546 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 1 2020-07-17 21:12:33,547 py30 INFO test_register.py-44 line:********* 执行用例3:不输入手机号 ********* 2020-07-17 21:12:33,547 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,547 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,547 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,547 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,548 py30 INFO handle_requests.py-44 line:请求数据为:{'pwd': '12345678', 'type': 1} 2020-07-17 21:12:33,604 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,604 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '手机号为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,604 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:12:33,604 py30 INFO test_register.py-44 line:********* 执行用例4:手机号长度10位 ********* 2020-07-17 21:12:33,604 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,604 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,604 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,605 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,605 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:12:33,650 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,650 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,650 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:12:33,650 py30 INFO test_register.py-44 line:********* 执行用例5:手机号长度12位 ********* 2020-07-17 21:12:33,650 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,651 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,651 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,651 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,651 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '155000000001', 'pwd': '12345678', 'type': 1} 2020-07-17 21:12:33,713 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,714 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,714 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:12:33,715 py30 INFO test_register.py-44 line:********* 执行用例6:手机号含有非法字符 ********* 2020-07-17 21:12:33,715 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,715 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,715 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,715 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,715 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000q', 'pwd': '12345678', 'type': 1} 2020-07-17 21:12:33,792 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,793 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,794 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:12:33,795 py30 INFO test_register.py-44 line:********* 执行用例7:已注册过的手机号 ********* 2020-07-17 21:12:33,796 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,797 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,797 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,797 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,798 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:12:33,860 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,861 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,862 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"账号已存在"} 2020-07-17 21:12:33,863 py30 INFO test_register.py-44 line:********* 执行用例8:密码7位 ********* 2020-07-17 21:12:33,863 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,863 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,863 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,863 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,863 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500056781', 'pwd': '1234567', 'type': 1} 2020-07-17 21:12:33,915 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,916 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,916 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:12:33,916 py30 INFO test_register.py-44 line:********* 执行用例9:密码17位 ********* 2020-07-17 21:12:33,917 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,917 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,917 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,917 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,917 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000001', 'pwd': '12345678901234567', 'type': 1} 2020-07-17 21:12:33,974 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:33,976 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:33,976 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:12:33,977 py30 INFO test_register.py-44 line:********* 执行用例10:不输入密码 ********* 2020-07-17 21:12:33,977 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:33,977 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:33,978 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:33,978 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:33,978 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300000001', 'type': 1} 2020-07-17 21:12:34,037 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:34,039 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '密码为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:34,040 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"密码为空"} 2020-07-17 21:12:34,042 py30 INFO test_register.py-44 line:********* 执行用例11:注册名11位 ********* 2020-07-17 21:12:34,043 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:34,045 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:34,046 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:34,047 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:34,047 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13303007856', 'pwd': '12345678', 'type': 1, 'reg_name': '12345678909991'} 2020-07-17 21:12:34,107 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:34,107 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '用户昵称长度超过10位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:34,108 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"用户昵称长度超过10位"} 2020-07-17 21:12:34,108 py30 INFO test_register.py-44 line:********* 执行用例12:类型输入非0,1内容 ********* 2020-07-17 21:12:34,109 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:34,109 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:34,109 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:34,109 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:34,109 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300003456', 'pwd': '12345678', 'type': 2} 2020-07-17 21:12:34,174 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:34,175 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '不支持的用户类型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:34,175 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"不支持的用户类型"} 2020-07-17 21:12:34,176 py30 INFO test_register.py-44 line:********* 执行用例13:不输入类型 ********* 2020-07-17 21:12:34,323 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:12:34,324 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:12:34,324 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:12:34,325 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:12:34,325 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '17704994373', 'pwd': '12345678'} 2020-07-17 21:12:34,383 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:12:34,384 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 973, 'reg_name': '小柠檬', 'mobile_phone': '17704994373'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:12:34,385 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:12:34,439 py30 INFO test_register.py-38 line:====== 注册模块用例 执行结束 ======== 2020-07-17 21:16:54,144 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,145 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:54,145 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,145 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:54,145 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '16664897853', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:16:54,217 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,217 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,218 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,218 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:54,218 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,218 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:16:54,218 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '16664897853', 'pwd': '123456789'} 2020-07-17 21:16:54,277 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,278 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,283 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,291 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,292 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:54,292 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:16:54,292 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:54,292 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:16:54,363 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,364 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,365 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,366 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:54,366 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:16:54,367 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:16:54,367 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:16:54,427 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,428 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3533573.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:21:53', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,483 py30 INFO test_recharge.py-79 line:充值前的用户余额:3533573.04 2020-07-17 21:16:54,484 py30 INFO test_recharge.py-82 line:充值的金额为:600 2020-07-17 21:16:54,485 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3534173.04 2020-07-17 21:16:54,485 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,486 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:54,486 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,486 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:54,486 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600} 2020-07-17 21:16:54,558 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,558 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3534173.04, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,602 py30 INFO test_recharge.py-104 line:充值后的用户余额:3534173.04 2020-07-17 21:16:54,648 py30 INFO test_recharge.py-79 line:充值前的用户余额:3534173.04 2020-07-17 21:16:54,649 py30 INFO test_recharge.py-82 line:充值的金额为:600.1 2020-07-17 21:16:54,649 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3534773.14 2020-07-17 21:16:54,649 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,650 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:54,650 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,650 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:54,650 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.1} 2020-07-17 21:16:54,720 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,721 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3534773.14, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,769 py30 INFO test_recharge.py-104 line:充值后的用户余额:3534773.14 2020-07-17 21:16:54,816 py30 INFO test_recharge.py-79 line:充值前的用户余额:3534773.14 2020-07-17 21:16:54,817 py30 INFO test_recharge.py-82 line:充值的金额为:600.22 2020-07-17 21:16:54,817 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:3535373.36 2020-07-17 21:16:54,817 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,817 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:54,817 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,817 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:54,817 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.22} 2020-07-17 21:16:54,883 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:54,885 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 3535373.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:54,935 py30 INFO test_recharge.py-104 line:充值后的用户余额:3535373.36 2020-07-17 21:16:54,980 py30 INFO test_recharge.py-79 line:充值前的用户余额:3535373.36 2020-07-17 21:16:54,980 py30 INFO test_recharge.py-82 line:充值的金额为:500000 2020-07-17 21:16:54,981 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:4035373.36 2020-07-17 21:16:54,981 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:54,981 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:54,981 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:54,982 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:54,982 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500000} 2020-07-17 21:16:55,047 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,048 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4035373.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,091 py30 INFO test_recharge.py-104 line:充值后的用户余额:4035373.36 2020-07-17 21:16:55,092 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,093 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,094 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,094 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,094 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-17 21:16:55,158 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,158 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,159 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,160 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,160 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,160 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,160 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-17 21:16:55,222 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,223 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,224 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,224 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,225 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,225 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,225 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '101', 'amount': 600} 2020-07-17 21:16:55,289 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,290 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4035973.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,293 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:16:55,299 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,301 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,301 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,301 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,301 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-17 21:16:55,378 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,380 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,390 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,392 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,393 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,394 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,394 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 0} 2020-07-17 21:16:55,488 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,488 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4035973.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,489 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:16:55,491 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,491 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,491 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,491 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,492 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': -600} 2020-07-17 21:16:55,570 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,570 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,571 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:16:55,573 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,574 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,577 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,578 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,578 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101} 2020-07-17 21:16:55,642 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,642 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,642 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-17 21:16:55,645 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,646 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,646 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,647 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,647 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.222} 2020-07-17 21:16:55,722 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,723 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,724 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-17 21:16:55,727 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,727 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,727 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,727 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,727 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500001} 2020-07-17 21:16:55,781 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,781 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,782 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:16:55,783 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:55,784 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMTEzfQ.Du2nOp12_PyJO0ST49_NtIG_N9xKyK3tqLa1x6S-_UwqY7_xUDySf2g6smYcv7Nlq5SPPvcLy6HWQ33lJ1S7bQ'} 2020-07-17 21:16:55,784 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:55,784 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:16:55,784 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': '5万'} 2020-07-17 21:16:55,854 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:55,855 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:55,855 py30 INFO test_register.py-34 line:====== 注册模块用例 开始执行 ======== 2020-07-17 21:16:55,855 py30 INFO test_register.py-44 line:********* 执行用例1:注册成功-带注册名 ********* 2020-07-17 21:16:56,045 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,046 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,047 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,047 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,048 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15371196718', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:16:56,108 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,108 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 974, 'reg_name': '美丽可爱的小简', 'mobile_phone': '15371196718'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,108 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:16:56,149 py30 INFO test_register.py-44 line:********* 执行用例2:成功-不带用户名 ********* 2020-07-17 21:16:56,317 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,318 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,319 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,319 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,319 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '19868417833', 'pwd': '123456789', 'type': 1} 2020-07-17 21:16:56,380 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,381 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,382 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:16:56,383 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-17 21:16:56,385 py30 INFO test_register.py-44 line:********* 执行用例3:不输入手机号 ********* 2020-07-17 21:16:56,385 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,385 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,385 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,385 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,386 py30 INFO handle_requests.py-44 line:请求数据为:{'pwd': '12345678', 'type': 1} 2020-07-17 21:16:56,436 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,436 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '手机号为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,436 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:16:56,437 py30 INFO test_register.py-44 line:********* 执行用例4:手机号长度10位 ********* 2020-07-17 21:16:56,437 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,437 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,438 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,438 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,438 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:16:56,495 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,496 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,496 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:16:56,496 py30 INFO test_register.py-44 line:********* 执行用例5:手机号长度12位 ********* 2020-07-17 21:16:56,496 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,496 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,496 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,497 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,497 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '155000000001', 'pwd': '12345678', 'type': 1} 2020-07-17 21:16:56,555 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,557 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,557 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:16:56,558 py30 INFO test_register.py-44 line:********* 执行用例6:手机号含有非法字符 ********* 2020-07-17 21:16:56,559 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,560 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,560 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,560 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,561 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000q', 'pwd': '12345678', 'type': 1} 2020-07-17 21:16:56,628 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,629 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,629 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:16:56,630 py30 INFO test_register.py-44 line:********* 执行用例7:已注册过的手机号 ********* 2020-07-17 21:16:56,630 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,630 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,631 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,631 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,631 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:16:56,697 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,698 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,698 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"账号已存在"} 2020-07-17 21:16:56,699 py30 INFO test_register.py-44 line:********* 执行用例8:密码7位 ********* 2020-07-17 21:16:56,699 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,699 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,700 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,700 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,700 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500056781', 'pwd': '1234567', 'type': 1} 2020-07-17 21:16:56,771 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,772 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,772 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:16:56,773 py30 INFO test_register.py-44 line:********* 执行用例9:密码17位 ********* 2020-07-17 21:16:56,773 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,773 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,774 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,774 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,774 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000001', 'pwd': '12345678901234567', 'type': 1} 2020-07-17 21:16:56,839 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,840 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,840 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:16:56,841 py30 INFO test_register.py-44 line:********* 执行用例10:不输入密码 ********* 2020-07-17 21:16:56,841 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,841 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,841 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,842 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,842 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300000001', 'type': 1} 2020-07-17 21:16:56,898 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,898 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '密码为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,899 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"密码为空"} 2020-07-17 21:16:56,899 py30 INFO test_register.py-44 line:********* 执行用例11:注册名11位 ********* 2020-07-17 21:16:56,900 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,901 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,901 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,901 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,901 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13303007856', 'pwd': '12345678', 'type': 1, 'reg_name': '12345678909991'} 2020-07-17 21:16:56,966 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:56,967 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '用户昵称长度超过10位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:56,967 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"用户昵称长度超过10位"} 2020-07-17 21:16:56,968 py30 INFO test_register.py-44 line:********* 执行用例12:类型输入非0,1内容 ********* 2020-07-17 21:16:56,968 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:56,968 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:56,969 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:56,969 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:56,969 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300003456', 'pwd': '12345678', 'type': 2} 2020-07-17 21:16:57,035 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:57,035 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '不支持的用户类型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:57,035 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"不支持的用户类型"} 2020-07-17 21:16:57,036 py30 INFO test_register.py-44 line:********* 执行用例13:不输入类型 ********* 2020-07-17 21:16:57,207 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:16:57,208 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:16:57,208 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:16:57,208 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:16:57,208 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18847450443', 'pwd': '12345678'} 2020-07-17 21:16:57,290 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:16:57,290 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 975, 'reg_name': '小柠檬', 'mobile_phone': '18847450443'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:16:57,290 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:16:57,335 py30 INFO test_register.py-38 line:====== 注册模块用例 执行结束 ======== 2020-07-17 21:18:49,338 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,340 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:49,341 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:49,341 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:49,341 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18771905237', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:18:49,402 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,403 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 976, 'reg_name': '美丽可爱的小简', 'mobile_phone': '18771905237'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,404 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,404 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:49,404 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:49,404 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:18:49,404 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18771905237', 'pwd': '123456789'} 2020-07-17 21:18:49,458 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,459 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 976, 'leave_amount': 0.0, 'mobile_phone': '18771905237', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:18:48.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:23:48', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk3NiwiZXhwIjoxNTk0OTkyMjI4fQ.nGw3QRlEBUlAtRKA8a4P97bHte9P2zem3Ng3aoH_9X28RVsRvCBCsbW6ThRx0tW7nWYqrhqZ8AgdFfCCVWvpMQ'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,464 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,466 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk3NiwiZXhwIjoxNTk0OTkyMjI4fQ.nGw3QRlEBUlAtRKA8a4P97bHte9P2zem3Ng3aoH_9X28RVsRvCBCsbW6ThRx0tW7nWYqrhqZ8AgdFfCCVWvpMQ'} 2020-07-17 21:18:49,466 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:49,467 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:49,467 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 976, 'amount': 600} 2020-07-17 21:18:49,548 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,550 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 976, 'leave_amount': 600.0, 'mobile_phone': '18771905237', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:18:48.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,550 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,551 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:49,551 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:18:49,551 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:49,551 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:18:49,627 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,627 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,628 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,628 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:49,628 py30 INFO handle_requests.py-42 line:请求方法为:POST 2020-07-17 21:18:49,628 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:18:49,628 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18605671115', 'pwd': '123456789'} 2020-07-17 21:18:49,699 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,700 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4035973.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:23:48', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,744 py30 INFO test_recharge.py-79 line:充值前的用户余额:4035973.36 2020-07-17 21:18:49,744 py30 INFO test_recharge.py-82 line:充值的金额为:600 2020-07-17 21:18:49,744 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:4036573.36 2020-07-17 21:18:49,745 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,745 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:49,745 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:49,745 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:49,745 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600} 2020-07-17 21:18:49,827 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:49,828 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4036573.36, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:49,881 py30 INFO test_recharge.py-104 line:充值后的用户余额:4036573.36 2020-07-17 21:18:49,942 py30 INFO test_recharge.py-79 line:充值前的用户余额:4036573.36 2020-07-17 21:18:49,943 py30 INFO test_recharge.py-82 line:充值的金额为:600.1 2020-07-17 21:18:49,943 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:4037173.46 2020-07-17 21:18:49,943 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:49,943 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:49,944 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:49,944 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:49,944 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.1} 2020-07-17 21:18:50,008 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,008 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4037173.46, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,056 py30 INFO test_recharge.py-104 line:充值后的用户余额:4037173.46 2020-07-17 21:18:50,109 py30 INFO test_recharge.py-79 line:充值前的用户余额:4037173.46 2020-07-17 21:18:50,110 py30 INFO test_recharge.py-82 line:充值的金额为:600.22 2020-07-17 21:18:50,111 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:4037773.68 2020-07-17 21:18:50,111 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,111 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,112 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,112 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,112 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.22} 2020-07-17 21:18:50,188 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,189 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4037773.68, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,233 py30 INFO test_recharge.py-104 line:充值后的用户余额:4037773.68 2020-07-17 21:18:50,286 py30 INFO test_recharge.py-79 line:充值前的用户余额:4037773.68 2020-07-17 21:18:50,287 py30 INFO test_recharge.py-82 line:充值的金额为:500000 2020-07-17 21:18:50,287 py30 INFO test_recharge.py-84 line:期望的充值之后的金额为:4537773.68 2020-07-17 21:18:50,288 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,288 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,288 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,288 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,288 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500000} 2020-07-17 21:18:50,372 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,374 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4537773.68, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,420 py30 INFO test_recharge.py-104 line:充值后的用户余额:4537773.68 2020-07-17 21:18:50,421 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,421 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,421 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,421 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,421 py30 INFO handle_requests.py-44 line:请求数据为:{'amount': 600} 2020-07-17 21:18:50,485 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,486 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '用户id为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,487 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,489 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,491 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,494 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,496 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 98989898, 'amount': 600} 2020-07-17 21:18:50,563 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,565 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1007, 'msg': '无权限访问,请检查参数', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,566 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,567 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,567 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,567 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,567 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': '101', 'amount': 600} 2020-07-17 21:18:50,641 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,641 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4538373.68, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,642 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:18:50,646 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,647 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,647 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,647 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,647 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 15.0, 'amount': 600} 2020-07-17 21:18:50,702 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,703 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,707 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,709 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,710 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,715 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,715 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 0} 2020-07-17 21:18:50,790 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,792 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 101, 'leave_amount': 4538373.68, 'mobile_phone': '18605671115', 'reg_name': '小柠檬', 'reg_time': '2020-07-16 14:26:40.0', 'type': 1}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,797 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 2 2020-07-17 21:18:50,800 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,801 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,802 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,803 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,803 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': -600} 2020-07-17 21:18:50,883 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,883 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,883 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:18:50,884 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,884 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,885 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,885 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,885 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101} 2020-07-17 21:18:50,940 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:50,941 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须为数值型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:50,941 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 97, in test_recharge self.assertEqual(response.json()["code"], expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 2 != 1 2020-07-17 21:18:50,942 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:50,943 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:50,943 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:50,943 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:50,943 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 600.222} 2020-07-17 21:18:51,015 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,015 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额小数超过两位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,016 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额小数超过两位' != '金额小数超过两位' - 余额小数超过两位 ? ^ + 金额小数超过两位 ? ^ 2020-07-17 21:18:51,018 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,018 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:51,018 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,019 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:51,019 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': 500001} 2020-07-17 21:18:51,082 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,083 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '余额必须大于0并且小于或者等于500000', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,083 py30 ERROR test_recharge.py-107 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_recharge.py", line 98, in test_recharge self.assertEqual(response.json()["msg"], expected["msg"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "D:\python37\lib\unittest\case.py", line 680, in fail raise self.failureException(msg) AssertionError: '余额必须大于0并且小于或者等于500000' != '金额必须大于0并且小于或者等于500000' - 余额必须大于0并且小于或者等于500000 ? ^ + 金额必须大于0并且小于或者等于500000 ? ^ 2020-07-17 21:18:51,085 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,086 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjEwMSwiZXhwIjoxNTk0OTkyMjI4fQ.AdSsuk8cvlcoq5a7vGmxiGOk6dxV0WblaK9gVZRCPVN7aWfepFEZCsA7avSIu8Ipi3ZmlMBvfLYVoMtwZ5idGA'} 2020-07-17 21:18:51,086 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,086 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:18:51,094 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 101, 'amount': '5万'} 2020-07-17 21:18:51,165 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,165 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '数字格式化异常', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,165 py30 INFO test_register.py-34 line:====== 注册模块用例 开始执行 ======== 2020-07-17 21:18:51,166 py30 INFO test_register.py-44 line:********* 执行用例1:注册成功-带注册名 ********* 2020-07-17 21:18:51,336 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,336 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,336 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,337 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,337 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15849658296', 'pwd': '123456789', 'type': 1, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:18:51,404 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,404 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 977, 'reg_name': '美丽可爱的小简', 'mobile_phone': '15849658296'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,405 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:18:51,471 py30 INFO test_register.py-44 line:********* 执行用例2:成功-不带用户名 ********* 2020-07-17 21:18:51,620 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,621 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,621 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,621 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,622 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '18324430917', 'pwd': '123456789', 'type': 1} 2020-07-17 21:18:51,686 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,686 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 978, 'reg_name': '小柠檬', 'mobile_phone': '18324430917'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,687 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:18:51,687 py30 ERROR test_register.py-70 line:断言失败! Traceback (most recent call last): File "D:\Pychram-Workspace\py30-接口自动化\day9\TestCases\test_register.py", line 62, in test_register_ok self.assertEqual(response.json()["code"],expected["code"]) File "D:\python37\lib\unittest\case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "D:\python37\lib\unittest\case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 0 != 1 2020-07-17 21:18:51,689 py30 INFO test_register.py-44 line:********* 执行用例3:不输入手机号 ********* 2020-07-17 21:18:51,689 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,690 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,690 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,690 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,690 py30 INFO handle_requests.py-44 line:请求数据为:{'pwd': '12345678', 'type': 1} 2020-07-17 21:18:51,747 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,748 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '手机号为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,748 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"手机号为空"} 2020-07-17 21:18:51,748 py30 INFO test_register.py-44 line:********* 执行用例4:手机号长度10位 ********* 2020-07-17 21:18:51,749 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,749 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,749 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,749 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,750 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:18:51,804 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,805 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,806 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:18:51,808 py30 INFO test_register.py-44 line:********* 执行用例5:手机号长度12位 ********* 2020-07-17 21:18:51,809 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,810 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,810 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,810 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,810 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '155000000001', 'pwd': '12345678', 'type': 1} 2020-07-17 21:18:51,884 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,884 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,884 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:18:51,884 py30 INFO test_register.py-44 line:********* 执行用例6:手机号含有非法字符 ********* 2020-07-17 21:18:51,885 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,885 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,885 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,885 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,886 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '1550000000q', 'pwd': '12345678', 'type': 1} 2020-07-17 21:18:51,953 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:51,954 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '无效的手机格式', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:51,954 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"无效的手机格式"} 2020-07-17 21:18:51,956 py30 INFO test_register.py-44 line:********* 执行用例7:已注册过的手机号 ********* 2020-07-17 21:18:51,958 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:51,959 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:51,959 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:51,960 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:51,960 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000000', 'pwd': '12345678', 'type': 1} 2020-07-17 21:18:52,024 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,024 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '账号已存在', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,024 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"账号已存在"} 2020-07-17 21:18:52,024 py30 INFO test_register.py-44 line:********* 执行用例8:密码7位 ********* 2020-07-17 21:18:52,025 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,025 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,025 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,025 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,025 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500056781', 'pwd': '1234567', 'type': 1} 2020-07-17 21:18:52,092 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,092 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,093 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:18:52,093 py30 INFO test_register.py-44 line:********* 执行用例9:密码17位 ********* 2020-07-17 21:18:52,093 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,094 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,094 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,094 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,094 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '15500000001', 'pwd': '12345678901234567', 'type': 1} 2020-07-17 21:18:52,145 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,145 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '密码格式为8到16位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,145 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"密码格式为8到16位"} 2020-07-17 21:18:52,146 py30 INFO test_register.py-44 line:********* 执行用例10:不输入密码 ********* 2020-07-17 21:18:52,146 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,146 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,147 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,147 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,147 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300000001', 'type': 1} 2020-07-17 21:18:52,207 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,208 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 1, 'msg': '密码为空', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,208 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":1,"msg":"密码为空"} 2020-07-17 21:18:52,209 py30 INFO test_register.py-44 line:********* 执行用例11:注册名11位 ********* 2020-07-17 21:18:52,209 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,209 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,209 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,209 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,210 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13303007856', 'pwd': '12345678', 'type': 1, 'reg_name': '12345678909991'} 2020-07-17 21:18:52,282 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,283 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '用户昵称长度超过10位', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,283 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"用户昵称长度超过10位"} 2020-07-17 21:18:52,285 py30 INFO test_register.py-44 line:********* 执行用例12:类型输入非0,1内容 ********* 2020-07-17 21:18:52,285 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,286 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,286 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,286 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,287 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13300003456', 'pwd': '12345678', 'type': 2} 2020-07-17 21:18:52,342 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,343 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 2, 'msg': '不支持的用户类型', 'data': None, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,344 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":2,"msg":"不支持的用户类型"} 2020-07-17 21:18:52,346 py30 INFO test_register.py-44 line:********* 执行用例13:不输入类型 ********* 2020-07-17 21:18:52,515 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:18:52,515 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:18:52,515 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:18:52,515 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:18:52,515 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13086940009', 'pwd': '12345678'} 2020-07-17 21:18:52,584 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:18:52,584 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 979, 'reg_name': '小柠檬', 'mobile_phone': '13086940009'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:18:52,584 py30 INFO test_register.py-60 line:用例的期望结果为:{"code":0,"msg":"OK"} 2020-07-17 21:18:52,633 py30 INFO test_register.py-38 line:====== 注册模块用例 执行结束 ======== 2020-07-17 21:43:21,889 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:43:21,889 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:43:21,889 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:43:21,889 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/register 2020-07-17 21:43:21,889 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13234825738', 'pwd': '123456789', 'type': 0, 'reg_name': '美丽可爱的小简'} 2020-07-17 21:43:21,956 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:43:21,956 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 983, 'reg_name': '美丽可爱的小简', 'mobile_phone': '13234825738'}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:43:21,957 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:43:21,957 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json'} 2020-07-17 21:43:21,957 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:43:21,957 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/login 2020-07-17 21:43:21,957 py30 INFO handle_requests.py-44 line:请求数据为:{'mobile_phone': '13234825738', 'pwd': '123456789'} 2020-07-17 21:43:22,020 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:43:22,020 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 983, 'leave_amount': 0.0, 'mobile_phone': '13234825738', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:43:20.0', 'type': 0, 'token_info': {'token_type': 'Bearer', 'expires_in': '2020-07-17 21:48:20', 'token': 'eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk4MywiZXhwIjoxNTk0OTkzNzAwfQ.ttQBZpj6ei6bIsqkuf8spIJd7X89pV-jucMKhyIK8b0_OtjD0g0-xvOYEIAD7MCt1nOFxYEvLdgNYQeM7dtQZA'}}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'} 2020-07-17 21:43:22,023 py30 INFO handle_requests.py-33 line:发起一次HTTP请求 2020-07-17 21:43:22,023 py30 INFO handle_requests.py-41 line:请求头为:{'X-Lemonban-Media-Type': 'lemonban.v2', 'Content-Type': 'application/json', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJtZW1iZXJfaWQiOjk4MywiZXhwIjoxNTk0OTkzNzAwfQ.ttQBZpj6ei6bIsqkuf8spIJd7X89pV-jucMKhyIK8b0_OtjD0g0-xvOYEIAD7MCt1nOFxYEvLdgNYQeM7dtQZA'} 2020-07-17 21:43:22,023 py30 INFO handle_requests.py-42 line:请求方法为:post 2020-07-17 21:43:22,023 py30 INFO handle_requests.py-43 line:请求url为:http://api.lemonban.com/futureloan/member/recharge 2020-07-17 21:43:22,023 py30 INFO handle_requests.py-44 line:请求数据为:{'member_id': 983, 'amount': 600} 2020-07-17 21:43:22,091 py30 INFO handle_requests.py-51 line:响应状态码为:200 2020-07-17 21:43:22,092 py30 INFO handle_requests.py-52 line:响应数据为:{'code': 0, 'msg': 'OK', 'data': {'id': 983, 'leave_amount': 600.0, 'mobile_phone': '13234825738', 'reg_name': '美丽可爱的小简', 'reg_time': '2020-07-17 21:43:20.0', 'type': 0}, 'copyright': 'Copyright 柠檬班 © 2017-2020 湖南省零檬信息技术有限公司 All Rights Reserved'}