测试结果汇总
图表展示
详细信息
编号 | 测试类 | 测试方法 | 用例描述 | 执行时间 | 执行结果 | 详细信息 |
---|---|---|---|---|---|---|
1 | TestLogin | test_login_1 | 登陆成功 | 0.483s | 成功 | |
用例入参:{'way': 'name', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher', 'username': '17301249975', 'schoolId': '1519958566130257922'} 预期结果:{'msg': 'success', 'code': 200} 实际结果:{'msg': 'success', 'code': 200, 'data': {'access_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRUeXBlIjoiIiwidXNlcl9uYW1lIjoiMTczMDEyNDk5NzUiLCJ0eXBlIjoidGVhY2hlciIsImNsaWVudF9pZCI6IndvcmthaSIsInN0dWRlbnRJZCI6IiIsInRlbmFudE5hbWUiOiIiLCJzY2hvb2xTb3VyY2UiOiJ3b3JrYWkiLCJzY29wZSI6WyJhbGwiXSwic2Nob29sSWQiOiIxNTE5OTU4NTY2MTMwMjU3OTIyIiwic3R1ZGVudFN0YXR1cyI6IiIsImV4cCI6MTY4NzcwODQ1MCwic2Nob29sTmFtZSI6Iua1i-ivleWkp-Wtpl_oh6rliqjljJbkuJPnlKgiLCJqdGkiOiJGUTBMZnRrRFhXcFZlZFdVTXIwUk45Z0M1dVUiLCJicm9rZXJJZCI6IiIsImhyb1VzZXJUb2tlbiI6bnVsbCwib3BlblVzZXJUb2tlbiI6bnVsbCwiYXV0aFN0YXR1cyI6IiIsImF1dGhlbnRpY2F0aW9uSWRlbnRpdHkiOiJsb2dpbiIsInVzZXJJZCI6IjE1MTk5NTkyMDg1Mjk4NjY3NTMiLCJzY2hvb2xSb2xsU3RhdHVzIjoiIiwidGVhY2hlcklkIjoiMTUxOTk1OTIwOTI3NjQ1Mjg2NSIsInBob25lIjoiMTczMDEyNDk5NzUiLCJ0ZW5hbnRJZCI6IiIsIm5hbWUiOiLmoKHplb8iLCJzdGF0dXMiOiJhY3RpdmUifQ.BDtpwM4PdzwLbxya9BhNpzMiQdpU4dSzf1eIV-Go8vc5Kcd95uejGB0CAQ476JsW1h4ymmiP2FbwnAbVA8-ZCkHTB0P0__btYq5pCGMtVUUeqykK5FrA9jsUK2cGiONKsjy2kQY5agxXMIApClCVnQ93LLCf3lcEmpVrIHcM5y0me8Zsm5-juk7OIJLPSSpCR6nvlCx-HoPg__CepsSwVaVp8HqEnPdsKRe16WKWreiZQL-cODB21M7URQTj5urmYNrghowYvz1isH5jJXZ13qF9w9nYJ-PKSUQVWHAmIvFlVxtjxIvYM9Jzpcccey7vwS8pc__n6bqz7QQAqcZqWg', 'token_type': 'bearer', 'refresh_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRUeXBlIjoiIiwidXNlcl9uYW1lIjoiMTczMDEyNDk5NzUiLCJ0eXBlIjoidGVhY2hlciIsImNsaWVudF9pZCI6IndvcmthaSIsInN0dWRlbnRJZCI6IiIsInRlbmFudE5hbWUiOiIiLCJzY2hvb2xTb3VyY2UiOiJ3b3JrYWkiLCJzY29wZSI6WyJhbGwiXSwic2Nob29sSWQiOiIxNTE5OTU4NTY2MTMwMjU3OTIyIiwiYXRpIjoiRlEwTGZ0a0RYV3BWZWRXVU1yMFJOOWdDNXVVIiwic3R1ZGVudFN0YXR1cyI6IiIsImV4cCI6MTY4Nzc0NDQ1MCwic2Nob29sTmFtZSI6Iua1i-ivleWkp-Wtpl_oh6rliqjljJbkuJPnlKgiLCJqdGkiOiJrYjA0WW5rV1hlWTBkOXJCdXNaY0N1ajQ0R28iLCJicm9rZXJJZCI6IiIsImhyb1VzZXJUb2tlbiI6bnVsbCwib3BlblVzZXJUb2tlbiI6bnVsbCwiYXV0aFN0YXR1cyI6IiIsImF1dGhlbnRpY2F0aW9uSWRlbnRpdHkiOiJsb2dpbiIsInVzZXJJZCI6IjE1MTk5NTkyMDg1Mjk4NjY3NTMiLCJzY2hvb2xSb2xsU3RhdHVzIjoiIiwidGVhY2hlcklkIjoiMTUxOTk1OTIwOTI3NjQ1Mjg2NSIsInBob25lIjoiMTczMDEyNDk5NzUiLCJ0ZW5hbnRJZCI6IiIsIm5hbWUiOiLmoKHplb8iLCJzdGF0dXMiOiJhY3RpdmUifQ.FhzMBsxCXe8V2MICXREUqpmYSBwLmS6y170nqEmYcLw-9aDSEls_FtPPDVKSkbitl3uDwaFF706-Noscy3r_0vHpX9roHq-_vh3fEFY5pjk8WLFxplwZ2PP-cBRrDv19p4FZCqpFcgq5Xq1rQ5W9eDEamHY-G8dKh99Xqho4fWJ7LotSuxZCX4QQ-ye2gXMvTaBniJdOx9wc0xvWlzLK4MiWhaDwC4l6b4c4VNJxURAR43cvnn9US8DnZQtyf9OTJgDB4a_hIHyQowlk_tkwb0GbXUJm3PwNjjhv3hvKRjRlaAeX_JYYZhRvcg4987OUoD-ja9gE6RlkcjWMn1921A', 'expires_in': 35999, 'scope': 'all', 'tenantType': '', 'brokerId': '', 'hroUserToken': None, 'openUserToken': None, 'authStatus': '', 'authenticationIdentity': 'login', 'type': 'teacher', 'userId': '1519959208529866753', 'studentId': '', 'schoolRollStatus': '', 'teacherId': '1519959209276452865', 'tenantName': '', 'phone': '17301249975', 'schoolSource': 'workai', 'schoolId': '1519958566130257922', 'tenantId': '', 'name': '校长', 'studentStatus': '', 'schoolName': '测试大学_自动化专用', 'status': 'active', 'jti': 'FQ0LftkDXWpVedWUMr0RN9gC5uU'}} test_login_1 (test_01_login.TestLogin)执行——>【通过】 |
||||||
2 | TestLogin | test_login_2 | 手机号填写错误的 | 0.277s | 成功 | |
用例入参:{'way': 'name', 'username': '17301149975', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher'} 预期结果:{'code': 500, 'data': None, 'msg': '用户不存在'} 实际结果:{'msg': '用户不存在', 'code': 500, 'data': None} test_login_2 (test_01_login.TestLogin)执行——>【通过】 |
||||||
3 | TestLogin | test_login_3 | 手机号不进行填写 | 0.221s | 成功 | |
用例入参:{'way': 'name', 'username': '', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher'} 预期结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'} 实际结果:{'msg': '用户名和密码不能为空', 'code': 500, 'data': None} test_login_3 (test_01_login.TestLogin)执行——>【通过】 |
||||||
4 | TestLogin | test_login_4 | 密码填写错误 | 0.378s | 成功 | |
用例入参:{'way': 'name', 'username': '17301249975', 'password': 'f85eea0e115e424aba8675f8848e2cb83', 'type': 'teacher'} 预期结果:{'code': 500, 'data': None, 'msg': '密码不正确'} 实际结果:{'msg': '密码不正确', 'code': 500, 'data': None} test_login_4 (test_01_login.TestLogin)执行——>【通过】 |
||||||
5 | TestLogin | test_login_5 | 密码不进行填写 | 0.214s | 成功 | |
用例入参:{'way': 'name', 'username': '17301249975', 'password': '', 'type': 'teacher'} 预期结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'} 实际结果:{'msg': '用户名和密码不能为空', 'code': 500, 'data': None} test_login_5 (test_01_login.TestLogin)执行——>【通过】 |
||||||
6 | Test01Department | test_add_department_1 | 新增院系成功 | 0.412s | 成功 | |
用例入参:{'name': 'py自动化院系20230625_13:54:12_1', 'code': 'py_code20230625_13:54:12_1'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_department_1 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
7 | Test01Department | test_add_department_2 | 院系名称未填写 | 0.292s | 成功 | |
用例入参:{'name': '', 'code': 'py_code20230625_13:54:12_2'} 预期结果: {'msg': '院系名称不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系名称不能为空', 'code': 500, 'data': None} test_add_department_2 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
8 | Test01Department | test_add_department_3 | 院系名称重复 | 0.267s | 成功 | |
用例入参:{'name': '院系1', 'code': 'py_code20230625_13:54:12_3'} 预期结果: {'msg': '院系名称已存在,请确认', 'code': 500, 'data': None} 实际结果: {'msg': '院系名称已存在,请确认', 'code': 500, 'data': None} test_add_department_3 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
9 | Test01Department | test_add_department_4 | 院系名称长度不可大于30位 | 0.259s | 成功 | |
用例入参:{'name': '院系名称长度大于30的测试院系名称长度大于30的测试院系名称长度大于30的测试院系名称长度大于30的测试', 'code': 'py_code20230625_13:54:13_4'} 预期结果: {'msg': '院系名称长度不可大于30位', 'code': 500, 'data': None} 实际结果: {'msg': '院系名称长度不可大于30位', 'code': 500, 'data': None} test_add_department_4 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
10 | Test01Department | test_add_department_5 | 院系代码重复 | 0.275s | 成功 | |
用例入参:{'name': 'py自动化院系20230625_13:54:13_5', 'code': '批量导入院系'} 预期结果: {'msg': '院系代码已存在,请确认', 'code': 500, 'data': None} 实际结果: {'msg': '院系代码已存在,请确认', 'code': 500, 'data': None} test_add_department_5 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
11 | Test01Department | test_add_department_6 | 院系代码不能为空 | 0.279s | 成功 | |
用例入参:{'name': 'py自动化院系20230625_13:54:13_6', 'code': ''} 预期结果: {'msg': '院系代码不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系代码不能为空', 'code': 500, 'data': None} test_add_department_6 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
12 | Test01Department | test_add_department_7 | 院系代码长度不可大于30 | 0.678s | 成功 | |
用例入参:{'name': 'py自动化院系20230625_13:54:14_7', 'code': '院系代码长度大于30的测试院系代码长度大于30的测试院系代码长度大于30的测试'} 预期结果: {'msg': '院系代码长度不可大于30', 'code': 500, 'data': None} 实际结果: {'msg': '院系代码长度不可大于30', 'code': 500, 'data': None} test_add_department_7 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
13 | Test01Department | test_add_department_8 | 新增院系成功 | 0.276s | 成功 | |
用例入参:{'name': 'py自动化院系20230625_13:54:14_8', 'code': 'py_code20230625_13:54:14_8'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_department_8 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
14 | Test01Department | test_select_department_1 | 查看院系列表 | 0.333s | 成功 | |
用例入参:{'pageNumber': '0', 'pageSize': '3'} 预期结果: {'msg': 'success', 'code': 200} 实际结果: {'msg': 'success', 'code': 200, 'data': {'records': [{'id': '1519960493236785154', 'schoolId': '1519958566130257922', 'name': '第一院系-1-修改1', 'code': '第一院系-1', 'createdBy': '1519959209276452865', 'createdTime': 1651221796000, 'updatedBy': '1519959209276452865', 'updatedTime': 1653018193000}, {'id': '1519960538489131009', 'schoolId': '1519958566130257922', 'name': '第二院系-22', 'code': '第二院系-22', 'createdBy': '1519959209276452865', 'createdTime': 1651221807000, 'updatedBy': '1519959209276452865', 'updatedTime': 1652281988000}, {'id': '1519960582474797058', 'schoolId': '1519958566130257922', 'name': '第三院系-3', 'code': '第三院系-3', 'createdBy': '1519959209276452865', 'createdTime': 1651221817000, 'updatedBy': None, 'updatedTime': None}, {'id': '1522126666221019137', 'schoolId': '1519958566130257922', 'name': '大_批量导入院系', 'code': '大_批量导入院系', 'createdBy': '1519959209276452865', 'createdTime': 1651738252000, 'updatedBy': None, 'updatedTime': None}, {'id': '1522150977187188738', 'schoolId': '1519958566130257922', 'name': '批量导入院系', 'code': '批量导入院系', 'createdBy': '1519959209276452865', 'createdTime': 1651744048000, 'updatedBy': None, 'updatedTime': None}, {'id': '1524276366210510849', 'schoolId': '1519958566130257922', 'name': '流程sss', 'code': '流程sss', 'createdBy': '1519959209276452865', 'createdTime': 1652250780000, 'updatedBy': None, 'updatedTime': None}, {'id': '1527478217726754818', 'schoolId': '1519958566130257922', 'name': '添加缓存后', 'code': '添加缓存后', 'createdBy': '1519959209276452865', 'createdTime': 1653014161000, 'updatedBy': None, 'updatedTime': None}, {'id': '1527479106566881282', 'schoolId': '1519958566130257922', 'name': 'ssss添加缓存后-院系-1-修改1', 'code': 'ssss添加缓存后-院系-1-修改1', 'createdBy': '1519959209276452865', 'createdTime': 1653014373000, 'updatedBy': '1519959209276452865', 'updatedTime': 1653015920000}, {'id': '1537365491176304642', 'schoolId': '1519958566130257922', 'name': '院系1', 'code': '院系1', 'createdBy': '1519959209276452865', 'createdTime': 1655371471000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365542577500162', 'schoolId': '1519958566130257922', 'name': '院系2', 'code': '院系2', 'createdBy': '1519959209276452865', 'createdTime': 1655371483000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365589180411906', 'schoolId': '1519958566130257922', 'name': '院系3', 'code': '院系3', 'createdBy': '1519959209276452865', 'createdTime': 1655371494000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365618314047490', 'schoolId': '1519958566130257922', 'name': '院系4', 'code': '院系4', 'createdBy': '1519959209276452865', 'createdTime': 1655371501000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365645191147521', 'schoolId': '1519958566130257922', 'name': '院系5', 'code': '院系5', 'createdBy': '1519959209276452865', 'createdTime': 1655371507000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365671829172225', 'schoolId': '1519958566130257922', 'name': '院系6', 'code': '院系6', 'createdBy': '1519959209276452865', 'createdTime': 1655371514000, 'updatedBy': None, 'updatedTime': None}, {'id': '1537365714241974274', 'schoolId': '1519958566130257922', 'name': '院系7', 'code': '院系7', 'createdBy': '1519959209276452865', 'createdTime': 1655371524000, 'updatedBy': None, 'updatedTime': None}], 'total': 851, 'size': 15, 'current': 1, 'orders': [], 'optimizeCountSql': True, 'searchCount': True, 'countId': '', 'maxLimit': None, 'pages': 57}} test_select_department_1 (test_02_system_management.Test01Department)执行——>【通过】 |
||||||
15 | Test02Specialty | test_add_specialty_01 | 新增专业成功 | 1.33s | 成功 | |
用例入参:{'name': 'py专业13:54:15_1', 'code': 'py_code13:54:15_1', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_specialty_01 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
16 | Test02Specialty | test_add_specialty_02 | 新增专业失败,院系未填写 | 1.24s | 成功 | |
用例入参:{'name': 'py专业13:54:17_2', 'code': 'py_code13:54:17_2', 'departmentId': '', 'category': 'science'} 预期结果: {'msg': '院系不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系不能为空', 'code': 500, 'data': None} test_add_specialty_02 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
17 | Test02Specialty | test_add_specialty_03 | 新增专业失败,院系不存在 | 1.25s | 成功 | |
用例入参:{'name': 'py专业13:54:18_3', 'code': 'py_code13:54:18_3', 'departmentId': '23232333333', 'category': 'science'} 预期结果: {'msg': '院系不存在', 'code': 500, 'data': None} 实际结果: {'msg': '院系不存在', 'code': 500, 'data': None} test_add_specialty_03 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
18 | Test02Specialty | test_add_specialty_04 | 新增专业失败,专业名称未填写 | 1.21s | 成功 | |
用例入参:{'name': '', 'code': 'py_code13:54:19_4', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业名称不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '专业名称不能为空', 'code': 500, 'data': None} test_add_specialty_04 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
19 | Test02Specialty | test_add_specialty_05 | 专业名称长度不能大于30 | 1.2s | 成功 | |
用例入参:{'name': '专业大于301234567890专业大于301234567890', 'code': 'py_code13:54:20_5', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业名称长度不能大于30', 'code': 500, 'data': None} 实际结果: {'msg': '专业名称长度不能大于30', 'code': 500, 'data': None} test_add_specialty_05 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
20 | Test02Specialty | test_add_specialty_06 | 新增专业失败,专业名称重复 | 1.19s | 成功 | |
用例入参:{'name': '第二个专业-2-1', 'code': 'py_code13:54:21_6', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业名称已存在,请确认', 'code': 500, 'data': None} 实际结果: {'msg': '专业名称已存在,请确认', 'code': 500, 'data': None} test_add_specialty_06 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
21 | Test02Specialty | test_add_specialty_07 | 新增专业失败,专业代码重复 | 1.16s | 成功 | |
用例入参:{'name': 'py专业13:54:23_7', 'code': '12', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业代码已存在,请确认', 'code': 500, 'data': None} 实际结果: {'msg': '专业代码已存在,请确认', 'code': 500, 'data': None} test_add_specialty_07 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
22 | Test02Specialty | test_add_specialty_08 | 新增专业失败,专业代码未填写 | 1.15s | 成功 | |
用例入参:{'name': 'py专业13:54:24_8', 'code': '', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业代码不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '专业代码不能为空', 'code': 500, 'data': None} test_add_specialty_08 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
23 | Test02Specialty | test_add_specialty_09 | 新增专业失败,专业代码长度不能大于30 | 1.29s | 成功 | |
用例入参:{'name': 'py专业13:54:25_9', 'code': '专业代码大于301234567890专业大于301234567890', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': '专业代码长度不能大于30', 'code': 500, 'data': None} 实际结果: {'msg': '专业代码长度不能大于30', 'code': 500, 'data': None} test_add_specialty_09 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
24 | Test02Specialty | test_add_specialty_10 | 新增专业失败,学科门类未填写 | 1.12s | 成功 | |
用例入参:{'name': 'py专业13:54:26_10', 'code': 'py_code13:54:26_10', 'departmentId': '1672845638989377538', 'category': ''} 预期结果: {'msg': '学科门类不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学科门类不能为空', 'code': 500, 'data': None} test_add_specialty_10 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
25 | Test02Specialty | test_add_specialty_11 | 新增专业失败,学科门类填写错误 | 1.19s | 成功 | |
用例入参:{'name': 'py专业13:54:27_11', 'code': 'py_code13:54:27_11', 'departmentId': '1672845638989377538', 'category': 'scienwce'} 预期结果: {'msg': '学科门类不存在', 'code': 500, 'data': None} 实际结果: {'msg': '学科门类不存在', 'code': 500, 'data': None} test_add_specialty_11 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
26 | Test02Specialty | test_add_specialty_12 | 新增专业成功 | 1.23s | 成功 | |
用例入参:{'name': 'py专业13:54:29_12', 'code': 'py_code13:54:29_12', 'departmentId': '1672845638989377538', 'category': 'science'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_specialty_12 (test_02_system_management.Test02Specialty)执行——>【通过】 |
||||||
27 | Test03Year | test_add_year_1 | 新增学年学期成功 | 1.68s | 失败 | |
用例入参:{'year': 'py学年13:54:30_1', 'remark': 'py_comment备注13:54:30_1', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': '该学年已存在,请确认', 'code': 500, 'data': None} test_add_year_1 (test_02_system_management.Test03Year)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 269, in test_add_year raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 263, in test_add_year self.assertEqual(expected["msg"], res["msg"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: 'success' != '该学年已存在,请确认' - success + 该学年已存在,请确认 ================test_add_year_1 (test_02_system_management.Test03Year)重运行第1次================ 用例入参:{'year': 'py学年13:54:30_1', 'remark': 'py_comment备注13:54:30_1', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': '该学年已存在,请确认', 'code': 500, 'data': None} test_add_year_1 (test_02_system_management.Test03Year)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 269, in test_add_year raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 263, in test_add_year self.assertEqual(expected["msg"], res["msg"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: 'success' != '该学年已存在,请确认' - success + 该学年已存在,请确认 ================test_add_year_1 (test_02_system_management.Test03Year)重运行第2次================ 用例入参:{'year': 'py学年13:54:30_1', 'remark': 'py_comment备注13:54:30_1', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': '该学年已存在,请确认', 'code': 500, 'data': None} test_add_year_1 (test_02_system_management.Test03Year)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 269, in test_add_year raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 263, in test_add_year self.assertEqual(expected["msg"], res["msg"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: 'success' != '该学年已存在,请确认' - success + 该学年已存在,请确认 ================test_add_year_1 (test_02_system_management.Test03Year)重运行第3次================ 用例入参:{'year': 'py学年13:54:30_1', 'remark': 'py_comment备注13:54:30_1', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': '该学年已存在,请确认', 'code': 500, 'data': None} test_add_year_1 (test_02_system_management.Test03Year)执行——>【失败】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 269, in test_add_year raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_02_system_management.py", line 263, in test_add_year self.assertEqual(expected["msg"], res["msg"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: 'success' != '该学年已存在,请确认' - success + 该学年已存在,请确认 |
||||||
28 | Test03Year | test_add_year_2 | 学年名称不可超过30字 | 0.29s | 成功 | |
用例入参:{'year': '1234567890123456789012345678901', 'remark': 'py_comment备注13:54:32_2', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': '学年长度不可大于30位', 'code': 500, 'data': None} 实际结果: {'msg': '学年长度不可大于30位', 'code': 500, 'data': None} test_add_year_2 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
29 | Test03Year | test_add_year_3 | 学年学期开始时间和结束时间不可交叉 | 0.272s | 成功 | |
用例入参:{'year': 'py学年13:54:32_3', 'remark': 'py_comment备注13:54:32_3', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}, {'sort': 2, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': '学期起止时间不能交叉', 'code': 500, 'data': None} 实际结果: {'msg': '学期起止时间不能交叉', 'code': 500, 'data': None} test_add_year_3 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
30 | Test03Year | test_add_year_4 | 学年未填写 | 0.263s | 成功 | |
用例入参:{'year': '', 'remark': 'py_comment备注13:54:32_4', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': '学年不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学年不能为空', 'code': 500, 'data': None} test_add_year_4 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
31 | Test03Year | test_add_year_5 | 学期未填写 | 0.277s | 成功 | |
用例入参:{'year': 'py学年13:54:33_5', 'remark': 'py_comment备注13:54:33_5', 'terms': [{'sort': '', 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': '学期排序不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学期排序不能为空', 'code': 500, 'data': None} test_add_year_5 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
32 | Test03Year | test_add_year_6 | 学期开始时间未填写 | 0.284s | 成功 | |
用例入参:{'year': 'py学年13:54:33_6', 'remark': 'py_comment备注13:54:33_6', 'terms': [{'sort': 1, 'startTime': '', 'endTime': 1704115459000}]} 预期结果: {'msg': '学期开始时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学期开始时间不能为空', 'code': 500, 'data': None} test_add_year_6 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
33 | Test03Year | test_add_year_7 | 学期结束时间未填写 | 0.286s | 成功 | |
用例入参:{'year': 'py学年13:54:33_7', 'remark': 'py_comment备注13:54:33_7', 'terms': [{'sort': 1, 'startTime': 1704115459000, 'endTime': ''}]} 预期结果: {'msg': '学期结束时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学期结束时间不能为空', 'code': 500, 'data': None} test_add_year_7 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
34 | Test03Year | test_add_year_8 | 学期不可超过5个学期 | 0.302s | 成功 | |
用例入参:{'year': 'py学年13:54:33_8', 'remark': 'py_comment备注13:54:33_8', 'terms': [{'sort': 1, 'startTime': 154632003000, 'endTime': 154882563000}, {'sort': 2, 'startTime': 154899843000, 'endTime': 155150403000}, {'sort': 3, 'startTime': 155141763000, 'endTime': 155392323000}, {'sort': 4, 'startTime': 155668803000, 'endTime': 155936643000}, {'sort': 5, 'startTime': 156195843000, 'endTime': 156463683000}]} 预期结果: {'msg': '学期应填写1-4个', 'code': 500, 'data': None} 实际结果: {'msg': '学期应填写1-4个', 'code': 500, 'data': None} test_add_year_8 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
35 | Test03Year | test_add_year_9 | 新增学年学期成功 | 0.316s | 成功 | |
用例入参:{'year': 'py学年13:54:34_9', 'remark': 'py_comment备注13:54:34_9', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_year_9 (test_02_system_management.Test03Year)执行——>【通过】 |
||||||
36 | Test01Teacher | test_add_teacher_info_01 | 新增教师 | 0.566s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:35_1', 'number': '13665938443', 'departmentIds': ['1672845638989377538'], 'phone': '13665938443', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '440101201611030925', 'gender': 0, 'entryTime': 1663084800000, 'email': '86788091536@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_01 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
37 | Test01Teacher | test_add_teacher_info_02 | 教师姓名不能为空 | 0.29s | 成功 | |
用例入参:{'name': '', 'number': '17378544472', 'departmentIds': ['1672845638989377538'], 'phone': '17378544472', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '21010120180421105X', 'gender': 0, 'entryTime': 1663084800000, 'email': '63711962114@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': '教师姓名不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '教师姓名不能为空', 'code': 500, 'data': None} test_add_teacher_info_02 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
38 | Test01Teacher | test_add_teacher_info_03 | 教师手机号不能为空 | 0.278s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:36_3', 'number': '15542734835', 'departmentIds': ['1672845638989377538'], 'phone': '', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '220101201610030199', 'gender': 0, 'entryTime': 1663084800000, 'email': '6053851100@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': '教师手机号不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '教师手机号不能为空', 'code': 500, 'data': None} test_add_teacher_info_03 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
39 | Test01Teacher | test_add_teacher_info_04 | 教师证件类型不能为空 | 0.282s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:37_4', 'number': '15559187573', 'departmentIds': ['1672845638989377538'], 'phone': '15559187573', 'classInfoId': '', 'idType': '', 'idNumber': '110101201801140109', 'gender': 0, 'entryTime': 1663084800000, 'email': '17011595820@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': '教师证件类别不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '教师证件类别不能为空', 'code': 500, 'data': None} test_add_teacher_info_04 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
40 | Test01Teacher | test_add_teacher_info_05 | 教师证件号码不能为空 | 0.3s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:37_5', 'number': '17375855567', 'departmentIds': ['1672845638989377538'], 'phone': '17375855567', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '', 'gender': 0, 'entryTime': 1663084800000, 'email': '8758351347@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': '教师证件号码不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '教师证件号码不能为空', 'code': 500, 'data': None} test_add_teacher_info_05 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
41 | Test01Teacher | test_add_teacher_info_06 | 教师角色不能为空 | 0.293s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:37_6', 'number': '13638607038', 'departmentIds': ['1672845638989377538'], 'phone': '13638607038', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '460101201107080716', 'gender': 0, 'entryTime': 1663084800000, 'email': '69716048227@163.com', 'professionalIds': [], 'roleIds': [''], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': '教师角色不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '教师角色不能为空', 'code': 500, 'data': None} test_add_teacher_info_06 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
42 | Test01Teacher | test_add_teacher_info_07 | 教师性别为空,添加成功 | 0.425s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:37_7', 'number': '17328036195', 'departmentIds': ['1672845638989377538'], 'phone': '17328036195', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '120101200202100129', 'gender': '', 'entryTime': 1663084800000, 'email': '31787611636@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_07 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
43 | Test01Teacher | test_add_teacher_info_08 | 教师入职时间为空,添加成功 | 0.491s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:38_8', 'number': '17321109063', 'departmentIds': ['1672845638989377538'], 'phone': '17321109063', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '610101200303050833', 'gender': 0, 'entryTime': '', 'email': '21056091036@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_08 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
44 | Test01Teacher | test_add_teacher_info_09 | 教师邮箱为空,添加成功 | 0.511s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:38_9', 'number': '15597096911', 'departmentIds': ['1672845638989377538'], 'phone': '15597096911', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '330101201010031118', 'gender': 0, 'entryTime': 1663084800000, 'email': '', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_09 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
45 | Test01Teacher | test_add_teacher_info_10 | 教师工号为空,添加成功 | 0.514s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:39_10', 'number': '', 'departmentIds': ['1672845638989377538'], 'phone': '13322643260', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '220101199504230752', 'gender': 0, 'entryTime': 1663084800000, 'email': '43014617172@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_10 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
46 | Test01Teacher | test_add_teacher_info_11 | 新增教师 | 0.511s | 成功 | |
用例入参:{'name': 'py自动化教师20230625_13:54:39_11', 'number': '17305287325', 'departmentIds': ['1672845638989377538'], 'phone': '17305287325', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '360101199305171586', 'gender': 0, 'entryTime': 1663084800000, 'email': '12028392535@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1672845638989377538'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_teacher_info_11 (test_03_teaching_affairs.Test01Teacher)执行——>【通过】 |
||||||
47 | Test02Class | test_add_class_info_01 | 新增班级 | 0.521s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:43_1', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_class_info_01 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
48 | Test02Class | test_add_class_info_02 | 班级名称未填写 | 0.618s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 43 (char 204) test_add_class_info_02 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 43 (char 204) ================test_add_class_info_02 (test_03_teaching_affairs.Test02Class)重运行第1次================ test_add_class_info_02 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 43 (char 204) ================test_add_class_info_02 (test_03_teaching_affairs.Test02Class)重运行第2次================ test_add_class_info_02 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 43 (char 204) ================test_add_class_info_02 (test_03_teaching_affairs.Test02Class)重运行第3次================ test_add_class_info_02 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 |
||||||
49 | Test02Class | test_add_class_info_03 | 班级名称已存在 | 0.308s | 成功 | |
用例入参:{'name': '权限测试第一个班级-1-修改1', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1607634271332593665', 'teacherId': '1607634326517051394', 'departmentId': '1607634257592053761', 'education': 'secondary'} 预期结果: {'msg': '该班级已存在,请确认', 'code': 500, 'data': None} 实际结果: {'msg': '该班级已存在,请确认', 'code': 500, 'data': None} test_add_class_info_03 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
50 | Test02Class | test_add_class_info_04 | 学制未填写 | 0.615s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 7 column 42 (char 228) test_add_class_info_04 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 7 column 42 (char 228) ================test_add_class_info_04 (test_03_teaching_affairs.Test02Class)重运行第1次================ test_add_class_info_04 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 7 column 42 (char 228) ================test_add_class_info_04 (test_03_teaching_affairs.Test02Class)重运行第2次================ test_add_class_info_04 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 171, in test_add_class_info data = json.loads(case["data"]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 7 column 42 (char 228) ================test_add_class_info_04 (test_03_teaching_affairs.Test02Class)重运行第3次================ test_add_class_info_04 (test_03_teaching_affairs.Test02Class)执行——>【错误Error】 |
||||||
51 | Test02Class | test_add_class_info_05 | 学制填写错误,最多为10年 | 0.314s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:45_5', 'educationalSystem': '11', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': '学制最多为10年', 'code': 500, 'data': None} 实际结果: {'msg': '学制最多为10年', 'code': 500, 'data': None} test_add_class_info_05 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
52 | Test02Class | test_add_class_info_06 | 学制填写错误,最多为10年 | 0.282s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:45_6', 'educationalSystem': '100', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': '学制最多为10年', 'code': 500, 'data': None} 实际结果: {'msg': '学制最多为10年', 'code': 500, 'data': None} test_add_class_info_06 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
53 | Test02Class | test_add_class_info_07 | 入学年份未填写 | 0.727s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:45_7', 'educationalSystem': '3', 'startSchoolYear': '', 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538'} 预期结果: {'msg': '入学年份不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学历不能为空', 'code': 500, 'data': None} test_add_class_info_07 (test_03_teaching_affairs.Test02Class)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 190, in test_add_class_info raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 183, in test_add_class_info self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '入学年份不能为空' != '学历不能为空' - 入学年份不能为空 ? - ^^ + 学历不能为空 ? ^ ================test_add_class_info_07 (test_03_teaching_affairs.Test02Class)重运行第1次================ 用例入参:{'name': 'py自动化班级20230625_13:54:45_7', 'educationalSystem': '3', 'startSchoolYear': '', 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538'} 预期结果: {'msg': '入学年份不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '入学年份不能为空', 'code': 500, 'data': None} test_add_class_info_07 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
54 | Test02Class | test_add_class_info_08 | 专业未填写 | 0.279s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:46_8', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': '所属专业不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '所属专业不能为空', 'code': 500, 'data': None} test_add_class_info_08 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
55 | Test02Class | test_add_class_info_09 | 专业填写错误 | 0.282s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:46_9', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1607127381431545857', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': '专业不存在', 'code': 500, 'data': None} 实际结果: {'msg': '专业不存在', 'code': 500, 'data': None} test_add_class_info_09 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
56 | Test02Class | test_add_class_info_10 | 院系可以为空 | 0.307s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:47_10', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '', 'education': 'secondary'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_class_info_10 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
57 | Test02Class | test_add_class_info_11 | 院系下没有该专业 | 0.293s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:47_11', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1526888155148289', 'teacherId': '1672845745143017473', 'departmentId': '1519960538489131009', 'education': 'secondary'} 预期结果: {'msg': '专业不存在', 'code': 500, 'data': None} 实际结果: {'msg': '专业不存在', 'code': 500, 'data': None} test_add_class_info_11 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
58 | Test02Class | test_add_class_info_12 | 教师未填写,添加成功 | 0.311s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:47_12', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_class_info_12 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
59 | Test02Class | test_add_class_info_13 | 教师填写错误 | 0.296s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:48_13', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1607612806826909697', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': '教师不存在', 'code': 500, 'data': None} 实际结果: {'msg': '教师不存在', 'code': 500, 'data': None} test_add_class_info_13 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
60 | Test02Class | test_add_class_info_14 | 新增班级 | 0.3s | 成功 | |
用例入参:{'name': 'py自动化班级20230625_13:54:48_14', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1672845702986067970', 'teacherId': '1672845745143017473', 'departmentId': '1672845638989377538', 'education': 'secondary'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_class_info_14 (test_03_teaching_affairs.Test02Class)执行——>【通过】 |
||||||
61 | Test03Course | test_add_course_info_01 | 新增课程 | 0.334s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:51_1', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '49', 'code': '20230625_13:54:51'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_course_info_01 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
62 | Test03Course | test_add_course_info_02 | 课程名称不能为空 | 0.288s | 成功 | |
用例入参:{'name': '', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '50', 'code': '20230625_13:54:51'} 预期结果: {'msg': '课程名称不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '课程名称不能为空', 'code': 500, 'data': None} test_add_course_info_02 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
63 | Test03Course | test_add_course_info_03 | 课程名称不能超过30字 | 0.266s | 成功 | |
用例入参:{'name': '1234567890123456789012345678901', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '51', 'code': '20230625_13:54:51'} 预期结果: {'msg': '课程名称不能超过30字', 'code': 500, 'data': None} 实际结果: {'msg': '课程名称不能超过30字', 'code': 500, 'data': None} test_add_course_info_03 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
64 | Test03Course | test_add_course_info_04 | 实践类型不能为空 | 0.265s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:52_4', 'practiceTypeId': '', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '52', 'code': '20230625_13:54:52'} 预期结果: {'msg': '实践类型不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '实践类型不能为空', 'code': 500, 'data': None} test_add_course_info_04 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
65 | Test03Course | test_add_course_info_05 | 院系不能为空 | 0.283s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:52_5', 'practiceTypeId': '1670630546881245185', 'departmentId': '', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '53', 'code': '20230625_13:54:52'} 预期结果: {'msg': '院系不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系不能为空', 'code': 500, 'data': None} test_add_course_info_05 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
66 | Test03Course | test_add_course_info_06 | 院系不能为空 | 0.287s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:52_6', 'practiceTypeId': '1670630546881245185', 'departmentId': '1519960228489131009', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '53', 'code': '20230625_13:54:52'} 预期结果: {'msg': '院系不存在', 'code': 500, 'data': None} 实际结果: {'msg': '院系不存在', 'code': 500, 'data': None} test_add_course_info_06 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
67 | Test03Course | test_add_course_info_07 | 学分不能为空 | 0.282s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:53_7', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': '', 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '54', 'code': '20230625_13:54:53'} 预期结果: {'msg': '学分不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学分不能为空', 'code': 500, 'data': None} test_add_course_info_07 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
68 | Test03Course | test_add_course_info_08 | 修读性质不能为空 | 0.277s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:53_8', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': '', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '55', 'code': '20230625_13:54:53'} 预期结果: {'msg': '修读性质不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '修读性质不能为空', 'code': 500, 'data': None} test_add_course_info_08 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
69 | Test03Course | test_add_course_info_09 | 修读性质填写错误 | 0.284s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:53_9', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'iiielectiveiiiii', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '56', 'code': '20230625_13:54:53'} 预期结果: {'msg': '修读性质填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '修读性质填写错误', 'code': 500, 'data': None} test_add_course_info_09 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
70 | Test03Course | test_add_course_info_10 | 学时(周数)不能为空 | 0.281s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:53_10', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '57', 'code': '20230625_13:54:53'} 预期结果: {'msg': '学时不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学时不能为空', 'code': 500, 'data': None} test_add_course_info_10 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
71 | Test03Course | test_add_course_info_11 | 学期不能为空 | 0.298s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:54_11', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': [''], 'professionalIds': ['1672845702986067970'], 'yearId': '58', 'code': '20230625_13:54:54'} 预期结果: {'msg': '学期不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学期不能为空', 'code': 500, 'data': None} test_add_course_info_11 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
72 | Test03Course | test_add_course_info_12 | 专业不能为空 | 0.29s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:54_12', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': [''], 'yearId': '59', 'code': '20230625_13:54:54'} 预期结果: {'msg': '部分专业信息不存在', 'code': 500, 'data': None} 实际结果: {'msg': '部分专业信息不存在', 'code': 500, 'data': None} test_add_course_info_12 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
73 | Test03Course | test_add_course_info_13 | 专业填写错误 | 0.285s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:54_13', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1522136228155148289'], 'yearId': '60', 'code': '20230625_13:54:54'} 预期结果: {'msg': '部分专业信息不存在', 'code': 500, 'data': None} 实际结果: {'msg': '部分专业信息不存在', 'code': 500, 'data': None} test_add_course_info_13 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
74 | Test03Course | test_add_course_info_14 | 新增课程 | 0.282s | 成功 | |
用例入参:{'name': 'py自动化课程20230625_13:54:55_14', 'practiceTypeId': '1670630546881245185', 'departmentId': '1672845638989377538', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1672845721008992257'], 'professionalIds': ['1672845702986067970'], 'yearId': '49', 'code': '20230625_13:54:55'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_course_info_14 (test_03_teaching_affairs.Test03Course)执行——>【通过】 |
||||||
75 | Test04Student | test_add_student_info_01 | 新增学生成功 | 0.512s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:54:58_1', 'number': '20230625_13:54:58_1', 'phone': '13347290075', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '350101202108220177', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '17332210381', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_01 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
76 | Test04Student | test_add_student_info_02 | 学生姓名未填写失败 | 0.296s | 成功 | |
用例入参:{'name': '', 'number': '20230625_13:54:59_2', 'phone': '17340075355', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '460101200903160253', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '17310156076', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '姓名不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '姓名不能为空', 'code': 500, 'data': None} test_add_student_info_02 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
77 | Test04Student | test_add_student_info_03 | 学生学号未填写失败 | 0.537s | 成功 | |
test_add_student_info_03 (test_03_teaching_affairs.Test04Student)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_03_teaching_affairs.py", line 361, in test_add_student_info case["data"] = case["data"].replace("#idNumber#", RandomIdentification().ran_end()) # 学生身份证号 File "/Users/shitou/工作/code/work/workAi/yxly/tools/fixture.py", line 109, in ran_end ran = self.ran_area() + self.ran() + self.ran_value() File "/Users/shitou/工作/code/work/workAi/yxly/tools/fixture.py", line 105, in ran_area return str(province[random.randint(0, len(province))] + '0101') IndexError: tuple index out of range ================test_add_student_info_03 (test_03_teaching_affairs.Test04Student)重运行第1次================ 用例入参:{'name': 'py自动化学生20230625_13:54:59_3', 'number': '', 'phone': '15554590483', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '340101201703260329', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '17346981787', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '学生学号不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学生学号不能为空', 'code': 500, 'data': None} test_add_student_info_03 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
78 | Test04Student | test_add_student_info_04 | 手机号未填写,添加成功 | 0.356s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:00_4', 'number': '20230625_13:55:00_4', 'phone': '', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '650101200001070916', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '15507390161', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_04 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
79 | Test04Student | test_add_student_info_05 | 入学年份未填写,添加失败 | 0.283s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:00_5', 'number': '20230625_13:55:00_5', 'phone': '15526428626', 'startSchoolYear': '', 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '210101200105081853', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '13354281981', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '入学年份不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '入学年份不能为空', 'code': 500, 'data': None} test_add_student_info_05 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
80 | Test04Student | test_add_student_info_06 | 班级未填写,添加失败 | 0.307s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:00_6', 'number': '20230625_13:55:00_6', 'phone': '15534501934', 'startSchoolYear': 2022, 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '350101201004120601', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '13383863287', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '班级不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '班级不能为空', 'code': 500, 'data': None} test_add_student_info_06 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
81 | Test04Student | test_add_student_info_07 | 证件类型和证件号码都没填写,添加成功 | 0.332s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:01_7', 'number': '20230625_13:55:01_7', 'phone': '15590940120', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': '', 'idNumber': '', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '15573649444', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_07 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
82 | Test04Student | test_add_student_info_08 | 证件类型未填,证件号码填写,添加失败 | 0.309s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:01_8', 'number': '20230625_13:55:01_8', 'phone': '13602671584', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': '', 'idNumber': '630101202101150513', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '17354671418', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '证件类型未填,证件号码填写', 'code': 500, 'data': None} 实际结果: {'msg': '证件类型未填,证件号码填写', 'code': 500, 'data': None} test_add_student_info_08 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
83 | Test04Student | test_add_student_info_09 | 证件类型填写,证件号码未填写,添加失败 | 0.288s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:01_9', 'number': '20230625_13:55:01_9', 'phone': '13697754468', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '15564430313', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '证件类型填写,证件号码未填写', 'code': 500, 'data': None} 实际结果: {'msg': '证件类型填写,证件号码未填写', 'code': 500, 'data': None} test_add_student_info_09 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
84 | Test04Student | test_add_student_info_10 | 性别未填写,添加成功 | 0.352s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:01_10', 'number': '20230625_13:55:01_10', 'phone': '15506944407', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '520101199511141505', 'gender': '', 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '15532026675', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_10 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
85 | Test04Student | test_add_student_info_11 | 学籍状态未填写,添加成功 | 0.347s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:02_11', 'number': '20230625_13:55:02_11', 'phone': '15537540755', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '120101201602160475', 'gender': 0, 'schoolCensusStatus': '', 'trainingOrientation': 'secondary', 'other': '15528693474', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_11 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
86 | Test04Student | test_add_student_info_12 | 培养方向未填写,添加成功 | 0.367s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:02_12', 'number': '20230625_13:55:02_12', 'phone': '17336054486', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '510101201212180369', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': '', 'other': '13654029337', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_12 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
87 | Test04Student | test_add_student_info_13 | 其他-备注未填写,添加成功 | 0.369s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:03_13', 'number': '20230625_13:55:03_13', 'phone': '13651199318', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '130101202102251166', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_13 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
88 | Test04Student | test_add_student_info_14 | 院系ID未填写,添加失败 | 0.293s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:03_14', 'number': '20230625_13:55:03_14', 'phone': '13355264822', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '410101201511070959', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '13698395220', 'departmentId': '', 'professionalId': '1672845702986067970'} 预期结果: {'msg': '院系不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系不能为空', 'code': 500, 'data': None} test_add_student_info_14 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
89 | Test04Student | test_add_student_info_15 | 专业ID未填写添加失败 | 0.289s | 成功 | |
用例入参:{'name': 'py自动化学生20230625_13:55:03_15', 'number': '20230625_13:55:03_15', 'phone': '15543014676', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '450101198302221071', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '13377851247', 'departmentId': '1672845638989377538', 'professionalId': ''} 预期结果: {'msg': '专业不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '专业不能为空', 'code': 500, 'data': None} test_add_student_info_15 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
90 | Test04Student | test_add_student_info_16 | 新增学生成功 | 0.347s | 成功 | |
用例入参:{'name': '认证py自动化学生20230625_13:55:03_16', 'number': '20230625_13:55:03_16', 'phone': '13646181380', 'startSchoolYear': 2022, 'classInfoId': '1672845780438085633', 'idType': 'identity_card', 'idNumber': '650101199007231690', 'gender': 0, 'schoolCensusStatus': 'not_duty', 'trainingOrientation': 'secondary', 'other': '15571630420', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_student_info_16 (test_03_teaching_affairs.Test04Student)执行——>【通过】 |
||||||
91 | Test01addInternshipPlan | test_add_plan_01 | 新增计划成功 | 0.786s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:09_1', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_01 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
92 | Test01addInternshipPlan | test_add_plan_02 | 计划名称不能为空 | 0.358s | 成功 | |
用例入参:{'name': '', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '#purpose#', 'other': '#other#', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'markWay': 'hierarchy', 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '名称不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '名称不能为空', 'code': 500, 'data': None} test_add_plan_02 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
93 | Test01addInternshipPlan | test_add_plan_03 | 计划名称不能大于30位 | 0.343s | 成功 | |
用例入参:{'name': '123456789012345678901234567890111', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '名称不能超过30', 'code': 500, 'data': None} 实际结果: {'msg': '名称不能超过30', 'code': 500, 'data': None} test_add_plan_03 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
94 | Test01addInternshipPlan | test_add_plan_04 | 课程不能为空 | 0.311s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:11_4', 'courseId': '', 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '课程不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '课程不能为空', 'code': 500, 'data': None} test_add_plan_04 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
95 | Test01addInternshipPlan | test_add_plan_05 | 课程不存在 | 0.412s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:11_5', 'courseId': '1604221420761000', 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '课程不存在', 'code': 500, 'data': None} 实际结果: {'msg': '课程不存在', 'code': 500, 'data': None} test_add_plan_05 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
96 | Test01addInternshipPlan | test_add_plan_06 | 班级不能为空 | 0.32s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:12_6', 'courseId': 1672845808296652802, 'classInfoIds': [''], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '班级不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '班级不匹配', 'code': 500, 'data': None} test_add_plan_06 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
97 | Test01addInternshipPlan | test_add_plan_07 | 班级不存在 | 0.339s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:12_7', 'courseId': 1672845808296652802, 'classInfoIds': ['1608192098381826'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '班级不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '班级不匹配', 'code': 500, 'data': None} test_add_plan_07 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
98 | Test01addInternshipPlan | test_add_plan_08 | 计划开始时间不能为空 | 0.29s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:12_8', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': '', 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '开始时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '开始时间不能为空', 'code': 500, 'data': None} test_add_plan_08 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
99 | Test01addInternshipPlan | test_add_plan_09 | 计划结束时间不能为空 | 0.306s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:13_9', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': '', 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '结束时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '结束时间不能为空', 'code': 500, 'data': None} test_add_plan_09 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
100 | Test01addInternshipPlan | test_add_plan_10 | 负责老师为空,添加成功 | 0.33s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:13_10', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': [], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_10 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
101 | Test01addInternshipPlan | test_add_plan_11 | 教师不存在,添加失败 | 0.34s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:13_11', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['16084041590535938'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '教师不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '教师不匹配', 'code': 500, 'data': None} test_add_plan_11 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
102 | Test01addInternshipPlan | test_add_plan_12 | 实习目的为空,添加成功 | 0.339s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:14_12', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_12 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
103 | Test01addInternshipPlan | test_add_plan_13 | 实习目的不能超过100位 | 0.608s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:14_13', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '实习目的不能超过100', 'code': 500, 'data': None} 实际结果: {'msg': '实习目的不能超过100', 'code': 500, 'data': None} test_add_plan_13 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
104 | Test01addInternshipPlan | test_add_plan_14 | 其他(备注)未填写,添加成功 | 0.351s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:15_14', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_14 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
105 | Test01addInternshipPlan | test_add_plan_15 | 其他(备注)长度不能超过200位 | 0.294s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:15_15', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789011', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '其他(备注)长度不能超过200位', 'code': 500, 'data': None} 实际结果: {'msg': '其他(备注)长度不能超过200位', 'code': 500, 'data': None} test_add_plan_15 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
106 | Test01addInternshipPlan | test_add_plan_16 | 实习形式不能为空 | 0.303s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:15_16', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': [''], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '实习形式不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '实习形式不能为空', 'code': 500, 'data': None} test_add_plan_16 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
107 | Test01addInternshipPlan | test_add_plan_17 | 实习形式为集中,添加成功--集中 | 0.344s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:15_17', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_17 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
108 | Test01addInternshipPlan | test_add_plan_18 | 实习形式为自主,添加成功--自主 | 0.352s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:16_18', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_18 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
109 | Test01addInternshipPlan | test_add_plan_19 | 实习报告提交开始时间不能为空 | 0.308s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:16_19', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': '', 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '报告提交开始日期不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '报告提交开始日期不能为空', 'code': 500, 'data': None} test_add_plan_19 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
110 | Test01addInternshipPlan | test_add_plan_20 | 实习报告提交结束时间不能为空 | 0.304s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:16_20', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': '', 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '报告提交结束日期不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '报告提交结束日期不能为空', 'code': 500, 'data': None} test_add_plan_20 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
111 | Test01addInternshipPlan | test_add_plan_21 | 报告模块路径为空,添加成功 | 0.374s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:17_21', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_21 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
112 | Test01addInternshipPlan | test_add_plan_22 | 实习内容为空,添加成功 | 0.347s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:17_22', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_22 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
113 | Test01addInternshipPlan | test_add_plan_23 | 实习内容长度不能大于500位 | 0.296s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:17_23', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '2345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890112345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901111', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '实习内容长度不能超过500位', 'code': 500, 'data': None} 实际结果: {'msg': '实习内容长度不能超过500位', 'code': 500, 'data': None} test_add_plan_23 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
114 | Test01addInternshipPlan | test_add_plan_24 | 院系不能为空 | 0.316s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:18_24', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '院系不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '院系不能为空', 'code': 500, 'data': None} test_add_plan_24 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
115 | Test01addInternshipPlan | test_add_plan_25 | 院系填写错误 | 0.323s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:18_25', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1608511347396610', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': '院系班级不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '院系班级不匹配', 'code': 500, 'data': None} test_add_plan_25 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
116 | Test01addInternshipPlan | test_add_plan_26 | 专业填写为空,添加成功 | 0.339s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:18_26', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_26 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
117 | Test01addInternshipPlan | test_add_plan_27 | 专业填写错误 | 0.318s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:19_27', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1608402858811393', 'termId': 1672845721008992257} 预期结果: {'msg': '专业班级不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '专业班级不匹配', 'code': 500, 'data': None} test_add_plan_27 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
118 | Test01addInternshipPlan | test_add_plan_28 | 学期不能为空 | 0.3s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:19_28', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': ''} 预期结果: {'msg': '学期不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '学期不能为空', 'code': 500, 'data': None} test_add_plan_28 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
119 | Test01addInternshipPlan | test_add_plan_29 | 学期填写错误 | 0.321s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:19_29', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': '16404135152316418'} 预期结果: {'msg': '学期填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '学期填写错误', 'code': 500, 'data': None} test_add_plan_29 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
120 | Test01addInternshipPlan | test_add_plan_30 | 新增计划成功 | 0.342s | 成功 | |
用例入参:{'name': 'py自动化计划20230625_13:55:20_30', 'courseId': 1672845808296652802, 'classInfoIds': ['1672845780438085633'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '其他(备注)', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1630512000000, 'reportSubmitEndTime': 1727884800000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1672845638989377538', 'professionalId': '1672845702986067970', 'termId': 1672845721008992257} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_30 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
121 | Test01addInternshipPlan | test_add_plan_31 | 创建计划,方便使用的数据,自主 | 0.326s | 成功 | |
用例入参:{'name': '石头py自动化计划20230625_13:55:20_31', 'courseId': 1519962553072062465, 'classInfoIds': ['1529753099302903809'], 'startTime': 1627747200000, 'endTime': 1735453543000, 'teacherIds': ['1672845745143017473'], 'purpose': '实习目的py自动化', 'other': '石头使用数据', 'practiceFormList': ['centralize', 'oneself'], 'reportSubmitStartTime': 1672675200000, 'reportSubmitEndTime': 1706630400000, 'reportTemplate': '', 'content': '实习内容#content#', 'departmentId': '1519960493236785154', 'professionalId': '1519960725961936898', 'termId': 1519962046194618369} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_plan_31 (test_04_Internship_preparation.Test01addInternshipPlan)执行——>【通过】 |
||||||
122 | Test04publishInternshipPlan | test_publish_plan_1 | 发布计划 | 1.09s | 成功 | |
用例入参:{'publishStatus': 'published', 'ids': [1672845913925898241]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_publish_plan_1 (test_04_Internship_preparation.Test04publishInternshipPlan)执行——>【通过】 |
||||||
123 | Test03addInternshipProject | test_add_project_01 | 新增项目成功--自主-(需要报名审核-允许自行填报企业信息) | 0.482s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:24_1', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_01 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
124 | Test03addInternshipProject | test_add_project_02 | 新增项目成功--自主-(需要报名审核-不允许自行填报企业信息) | 0.383s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:25_2', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'no', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_02 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
125 | Test03addInternshipProject | test_add_project_03 | 新增项目成功--自主-(不需要报名审核-允许自行填报企业信息) | 0.43s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:25_3', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'no', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_03 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
126 | Test03addInternshipProject | test_add_project_04 | 新增项目成功--自主-(不需要报名审核-不允许自行填报企业信息) | 0.402s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:26_4', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'no', 'oneselfFillCompanyInfo': 'no', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_04 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
127 | Test03addInternshipProject | test_add_project_05 | 项目名称不能为空 | 0.301s | 成功 | |
用例入参:{'name': '', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '项目名称不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称不能为空', 'code': 500, 'data': None} test_add_project_05 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
128 | Test03addInternshipProject | test_add_project_06 | 项目名称不能大于30位 | 0.312s | 成功 | |
用例入参:{'name': '1234567890123456789012345678901', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'jobIds': ['1635095176676659202']} 预期结果: {'msg': '名称不能超过30', 'code': 500, 'data': None} 实际结果: {'msg': '名称不能超过30', 'code': 500, 'data': None} test_add_project_06 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
129 | Test03addInternshipProject | test_add_project_07 | 实习计划不能为空 | 0.306s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:27_7', 'planId': '', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '计划不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '计划不能为空', 'code': 500, 'data': None} test_add_project_07 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
130 | Test03addInternshipProject | test_add_project_08 | 实习计划不匹配 | 0.306s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:27_8', 'planId': '1610468261604655106', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '计划信息不存在', 'code': 500, 'data': None} 实际结果: {'msg': '计划信息不存在', 'code': 500, 'data': None} test_add_project_08 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
131 | Test03addInternshipProject | test_add_project_09 | 实习形式不能为空 | 0.296s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:27_9', 'planId': '1672845913925898241', 'practiceForm': '', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习形式不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '实习形式不能为空', 'code': 500, 'data': None} test_add_project_09 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
132 | Test03addInternshipProject | test_add_project_10 | 实习形式填写错误 | 0.3s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:28_10', 'planId': '1672845913925898241', 'practiceForm': 'onelf', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习形式填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '实习形式填写错误', 'code': 500, 'data': None} test_add_project_10 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
133 | Test03addInternshipProject | test_add_project_11 | 实习要求不填写,添加成功 | 0.385s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:28_11', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': '', 'requirement': '', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_11 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
134 | Test03addInternshipProject | test_add_project_12 | 实习要求不能大于500 | 0.297s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:28_12', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习要求不能超过500', 'code': 500, 'data': None} 实际结果: {'msg': '实习要求不能超过500', 'code': 500, 'data': None} test_add_project_12 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
135 | Test03addInternshipProject | test_add_project_13 | 实习开始时间不能为空 | 0.312s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:29_13', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': '', 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习开始时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '实习开始时间不能为空', 'code': 500, 'data': None} test_add_project_13 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
136 | Test03addInternshipProject | test_add_project_14 | 实习结束时间不能为空 | 0.311s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:29_14', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': '', 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习结束时间不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '实习结束时间不能为空', 'code': 500, 'data': None} test_add_project_14 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
137 | Test03addInternshipProject | test_add_project_15 | 项目开始日期需早于项目结束日期 | 0.303s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:29_15', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1693557598000, 'endTime': 1662021598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '项目开始日期需早于项目结束日期', 'code': 500, 'data': None} 实际结果: {'msg': '项目开始日期需早于项目结束日期', 'code': 500, 'data': None} test_add_project_15 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
138 | Test03addInternshipProject | test_add_project_16 | 报名审核填写错误(后期在做修改,目前不做改动-0104) | 1.71s | 失败 | |
用例入参:{'name': 'py自动化项目20230625_13:55:30_16', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'nd', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核填写错误', 'code': 500, 'data': None} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核填写错误' != 'success' - 报名审核填写错误 + success ================test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)重运行第1次================ 用例入参:{'name': 'py自动化项目20230625_13:55:30_16', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'nd', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核填写错误' != '项目名称已存在' - 报名审核填写错误 + 项目名称已存在 ================test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)重运行第2次================ 用例入参:{'name': 'py自动化项目20230625_13:55:30_16', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'nd', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核填写错误' != '项目名称已存在' - 报名审核填写错误 + 项目名称已存在 ================test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)重运行第3次================ 用例入参:{'name': 'py自动化项目20230625_13:55:30_16', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'nd', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_16 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核填写错误' != '项目名称已存在' - 报名审核填写错误 + 项目名称已存在 |
||||||
139 | Test03addInternshipProject | test_add_project_17 | 报名审核不能为空(后期在做修改,目前不做改动-0104) | 1.73s | 失败 | |
用例入参:{'name': 'py自动化项目20230625_13:55:31_17', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': '', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核不能为空', 'code': 500, 'data': None} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核不能为空' != 'success' - 报名审核不能为空 + success ================test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)重运行第1次================ 用例入参:{'name': 'py自动化项目20230625_13:55:31_17', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': '', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核不能为空' != '项目名称已存在' - 报名审核不能为空 + 项目名称已存在 ================test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)重运行第2次================ 用例入参:{'name': 'py自动化项目20230625_13:55:31_17', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': '', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核不能为空' != '项目名称已存在' - 报名审核不能为空 + 项目名称已存在 ================test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)重运行第3次================ 用例入参:{'name': 'py自动化项目20230625_13:55:31_17', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': '', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '报名审核不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_17 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '报名审核不能为空' != '项目名称已存在' - 报名审核不能为空 + 项目名称已存在 |
||||||
140 | Test03addInternshipProject | test_add_project_18 | 自行填报企业信息填写错误(后期在做修改,目前不做改动-0104) | 1.74s | 失败 | |
用例入参:{'name': 'py自动化项目20230625_13:55:33_18', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'aow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习计划不匹配', 'code': 500, 'data': None} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '实习计划不匹配' != 'success' - 实习计划不匹配 + success ================test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)重运行第1次================ 用例入参:{'name': 'py自动化项目20230625_13:55:33_18', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'aow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习计划不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '实习计划不匹配' != '项目名称已存在' - 实习计划不匹配 + 项目名称已存在 ================test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)重运行第2次================ 用例入参:{'name': 'py自动化项目20230625_13:55:33_18', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'aow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习计划不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '实习计划不匹配' != '项目名称已存在' - 实习计划不匹配 + 项目名称已存在 ================test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)重运行第3次================ 用例入参:{'name': 'py自动化项目20230625_13:55:33_18', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'aow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '实习计划不匹配', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_18 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '实习计划不匹配' != '项目名称已存在' - 实习计划不匹配 + 项目名称已存在 |
||||||
141 | Test03addInternshipProject | test_add_project_19 | 自行填报企业信息不能为空(后期在做修改,目前不做改动-0104) | 1.73s | 失败 | |
用例入参:{'name': 'py自动化项目20230625_13:55:35_19', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': '', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '自行填报企业信息不能为空', 'code': 500, 'data': None} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '自行填报企业信息不能为空' != 'success' - 自行填报企业信息不能为空 + success ================test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)重运行第1次================ 用例入参:{'name': 'py自动化项目20230625_13:55:35_19', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': '', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '自行填报企业信息不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '自行填报企业信息不能为空' != '项目名称已存在' - 自行填报企业信息不能为空 + 项目名称已存在 ================test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)重运行第2次================ 用例入参:{'name': 'py自动化项目20230625_13:55:35_19', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': '', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '自行填报企业信息不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败Failure】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '自行填报企业信息不能为空' != '项目名称已存在' - 自行填报企业信息不能为空 + 项目名称已存在 ================test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)重运行第3次================ 用例入参:{'name': 'py自动化项目20230625_13:55:35_19', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': '', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '自行填报企业信息不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '项目名称已存在', 'code': 500, 'data': None} test_add_project_19 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【失败】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run testMethod() File "/Users/shitou/工作/code/work/workAi/yxly/common/myddt.py", line 145, in wrapper return func(self, *args, **kwargs) File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 294, in test_add_project raise e File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_04_Internship_preparation.py", line 287, in test_add_project self.assertEqual(expected['msg'], res['msg']) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1220, in assertMultiLineEqual self.fail(self._formatMessage(msg, standardMsg)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail raise self.failureException(msg) AssertionError: '自行填报企业信息不能为空' != '项目名称已存在' - 自行填报企业信息不能为空 + 项目名称已存在 |
||||||
142 | Test03addInternshipProject | test_add_project_20 | 参与学生不能为空 | 0.321s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:37_20', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': [], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '参与学生不能为空', 'code': 500, 'data': None} 实际结果: {'msg': '参与学生不能为空', 'code': 500, 'data': None} test_add_project_20 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
143 | Test03addInternshipProject | test_add_project_21 | 参与学生填写错误 | 0.353s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:37_21', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['160468861604655106'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '学生信息不正确', 'code': 500, 'data': None} 实际结果: {'msg': '学生信息不正确', 'code': 500, 'data': None} test_add_project_21 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
144 | Test03addInternshipProject | test_add_project_22 | 关联指定老师不填写,添加成功 | 0.355s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:37_22', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': ''}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_22 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
145 | Test03addInternshipProject | test_add_project_23 | 关联指定老师填写错误 | 0.323s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:38_23', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 16104688616046551}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': '关联指定老师填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '关联指定老师填写错误', 'code': 500, 'data': None} test_add_project_23 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
146 | Test03addInternshipProject | test_add_project_24 | 推荐岗位不能为空 | 0.37s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:38_24', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '', 'type': 'base'}]} 预期结果: {'msg': '推荐岗位填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '推荐岗位填写错误', 'code': 500, 'data': None} test_add_project_24 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
147 | Test03addInternshipProject | test_add_project_25 | 推荐岗位填写错误 | 0.377s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:38_25', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1610460061604655106', 'type': 'base'}]} 预期结果: {'msg': '推荐岗位填写错误', 'code': 500, 'data': None} 实际结果: {'msg': '推荐岗位填写错误', 'code': 500, 'data': None} test_add_project_25 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
148 | Test03addInternshipProject | test_add_project_26 | 新增项目成功--自主-(需要报名审核-允许自行填报企业信息) | 0.392s | 成功 | |
用例入参:{'name': 'py自动化项目20230625_13:55:39_26', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1662021598000, 'endTime': 1693557598000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1672845845823090690'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_26 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
149 | Test03addInternshipProject | test_add_project_27 | 创建项目,方便使用的数据 | 0.373s | 成功 | |
用例入参:{'name': '石头1py自动化项目20230625_13:55:39_27', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1672588800000, 'endTime': 1704038399000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1519965286978138113'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_27 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
150 | Test03addInternshipProject | test_add_project_28 | 创建项目,方便使用的数据 | 0.36s | 成功 | |
用例入参:{'name': '石头2py自动化项目20230625_13:55:39_28', 'planId': '1672845913925898241', 'practiceForm': 'oneself', 'joinWay': 'need', 'requirement': '实习要求', 'startTime': 1672588800000, 'endTime': 1704038399000, 'applyStartTime': '', 'applyEndTime': '', 'applyAudit': 'need', 'oneselfFillCompanyInfo': 'allow', 'participantList': [{'studentIds': ['1519965286978138113'], 'teacherId': 1672845745143017473}], 'projectJobList': [{'jobId': '1635095176676659202', 'type': 'base'}]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_add_project_28 (test_04_Internship_preparation.Test03addInternshipProject)执行——>【通过】 |
||||||
151 | Test04publishInternshipProject | test_publish_plan_1 | 发布项目 | 1.43s | 成功 | |
用例入参:{'publishStatus': 'published', 'ids': [1672845996549492738]} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test_publish_plan_1 (test_04_Internship_preparation.Test04publishInternshipProject)执行——>【通过】 |
||||||
152 | Test01SelectAllPractice | test01select_allpatice_1 | 查看全部实习 | 0.276s | 成功 | |
用例入参:{'pageNumber': '1', 'pageSize': '3', 'publishStatus': 'published'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': {'records': [], 'total': 0, 'size': 10, 'current': 1, 'orders': [], 'optimizeCountSql': True, 'searchCount': True, 'countId': '', 'maxLimit': None, 'pages': 0}} test01select_allpatice_1 (test_05_student_practice.Test01SelectAllPractice)执行——>【通过】 |
||||||
153 | Test01SelectApplyAuditList | test01select_wait_list_1 | 查看学校报名审核-待审核 | 0.336s | 成功 | |
用例入参:{'pageNumber': '1', 'pageSize': '5', 'status': 'wait'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': {'records': [], 'total': 0, 'size': 5, 'current': 1, 'orders': [], 'optimizeCountSql': True, 'searchCount': True, 'countId': '', 'maxLimit': None, 'pages': 0}} test01select_wait_list_1 (test_06_internship_manage.Test01SelectApplyAuditList)执行——>【通过】 |
||||||
154 | Test02SchoolAudit | test01audit_1 | 审核成功(学校) | 3.16s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 95, in setUp self.applyId = jsonpath(apply_json, "$..id")[0] # 获取待审核id TypeError: 'bool' object is not subscriptable test01audit_1 (test_06_internship_manage.Test02SchoolAudit)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 95, in setUp self.applyId = jsonpath(apply_json, "$..id")[0] # 获取待审核id TypeError: 'bool' object is not subscriptable ================test01audit_1 (test_06_internship_manage.Test02SchoolAudit)重运行第1次================ test01audit_1 (test_06_internship_manage.Test02SchoolAudit)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 95, in setUp self.applyId = jsonpath(apply_json, "$..id")[0] # 获取待审核id TypeError: 'bool' object is not subscriptable ================test01audit_1 (test_06_internship_manage.Test02SchoolAudit)重运行第2次================ test01audit_1 (test_06_internship_manage.Test02SchoolAudit)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 95, in setUp self.applyId = jsonpath(apply_json, "$..id")[0] # 获取待审核id TypeError: 'bool' object is not subscriptable ================test01audit_1 (test_06_internship_manage.Test02SchoolAudit)重运行第3次================ test01audit_1 (test_06_internship_manage.Test02SchoolAudit)执行——>【错误Error】 |
||||||
155 | Test05StudentIntenship | test01student_start_intenship_time_1 | 学生填写开始实习时间成功 | 4.36s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 258, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单待实习id TypeError: 'bool' object is not subscriptable test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 258, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单待实习id TypeError: 'bool' object is not subscriptable ================test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)重运行第1次================ test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 258, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单待实习id TypeError: 'bool' object is not subscriptable ================test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)重运行第2次================ test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 258, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单待实习id TypeError: 'bool' object is not subscriptable ================test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)重运行第3次================ test01student_start_intenship_time_1 (test_06_internship_manage.Test05StudentIntenship)执行——>【错误Error】 |
||||||
156 | Test06SchoolSelectApply | test01audit_1 | 实习申请审核成功(学校) | 0.99s | 成功 | |
用例入参:{'status': 'passed'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test01audit_1 (test_06_internship_manage.Test06SchoolSelectApply)执行——>【通过】 |
||||||
157 | Test07StudentWriteLog | test01student_write_log_01 | 学生填写-(日志)-日志标题不能为空 | 4.31s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_01 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
158 | Test07StudentWriteLog | test01student_write_log_02 | 学生填写-(日志)-日志标题不能超过30位 | 4.35s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_02 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
159 | Test07StudentWriteLog | test01student_write_log_03 | 学生填写-(日志)-实习单不存在 | 3.94s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_03 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
160 | Test07StudentWriteLog | test01student_write_log_04 | 学生填写-(日志)-实习单不能为空 | 4.09s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_04 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
161 | Test07StudentWriteLog | test01student_write_log_05 | 学生填写-(日志)-周日志种类不能为空 | 3.97s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_05 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
162 | Test07StudentWriteLog | test01student_write_log_06 | 学生填写-(日志)-周日志时间不能为空 | 4.1s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_06 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
163 | Test07StudentWriteLog | test01student_write_log_07 | 学生填写-(周志)-周志标题不能为空 | 4.02s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_07 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
164 | Test07StudentWriteLog | test01student_write_log_08 | 学生填写-(周志)-周志标题不能超过30位 | 3.76s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_08 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
165 | Test07StudentWriteLog | test01student_write_log_09 | 学生填写-周志)-实习单不存在 | 4.02s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_09 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
166 | Test07StudentWriteLog | test01student_write_log_10 | 学生填写-(周志)-实习单不能为空 | 3.99s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_10 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
167 | Test07StudentWriteLog | test01student_write_log_11 | 学生填写-(周志)-周日志种类不能为空 | 3.88s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_11 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
168 | Test07StudentWriteLog | test01student_write_log_12 | 学生填写-(周志)-周日志时间不能为空 | 4.05s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_12 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
169 | Test07StudentWriteLog | test01student_write_log_13 | 学生填写-(月志)-月志标题不能为空 | 3.99s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_13 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
170 | Test07StudentWriteLog | test01student_write_log_14 | 学生填写-(月志)-月志标题不能超过30位 | 4.21s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_14 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
171 | Test07StudentWriteLog | test01student_write_log_15 | 学生填写-(月志)-实习单不存在 | 3.98s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_15 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
172 | Test07StudentWriteLog | test01student_write_log_16 | 学生填写-(月志)-实习单不能为空 | 3.93s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_16 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
173 | Test07StudentWriteLog | test01student_write_log_17 | 学生填写-(月志)-周日志种类不能为空 | 3.9s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_17 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
174 | Test07StudentWriteLog | test01student_write_log_18 | 学生填写-(月志)-周日志时间不能为空 | 4.2s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_18 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
175 | Test07StudentWriteLog | test01student_write_log_19 | 学生填写-(日志)-成功 | 4.01s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_19 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
176 | Test07StudentWriteLog | test01student_write_log_20 | 学生填写-(周志)-成功 | 4.19s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_20 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
177 | Test07StudentWriteLog | test01student_write_log_21 | 学生填写-(月志)-成功 | 3.96s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)重运行第1次================ test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)重运行第2次================ test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 376, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)重运行第3次================ test01student_write_log_21 (test_06_internship_manage.Test07StudentWriteLog)执行——>【错误Error】 |
||||||
178 | Test08ApproveLog | test01approve_log_1 | 学校端批阅-(日志)-成功 | 2.49s | 成功 | |
用例入参:{'ids': ['1651424772414001154']} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test01approve_log_1 (test_06_internship_manage.Test08ApproveLog)执行——>【通过】 |
||||||
179 | Test08ApproveLog | test01approve_log_2 | 学校端批阅-(周志)-成功 | 2.21s | 成功 | |
用例入参:{'ids': ['1626492478742196226']} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test01approve_log_2 (test_06_internship_manage.Test08ApproveLog)执行——>【通过】 |
||||||
180 | Test08ApproveLog | test01approve_log_3 | 学校端批阅-(月志)-成功 | 2.25s | 成功 | |
用例入参:{'ids': ['1626487688184328194']} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test01approve_log_3 (test_06_internship_manage.Test08ApproveLog)执行——>【通过】 |
||||||
181 | Test09Attendance | test01student_attendance_1 | 学生签到打卡成功 | 3.96s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 514, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_attendance_1 (test_06_internship_manage.Test09Attendance)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 514, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_attendance_1 (test_06_internship_manage.Test09Attendance)重运行第1次================ test01student_attendance_1 (test_06_internship_manage.Test09Attendance)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 514, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_attendance_1 (test_06_internship_manage.Test09Attendance)重运行第2次================ test01student_attendance_1 (test_06_internship_manage.Test09Attendance)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 514, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_attendance_1 (test_06_internship_manage.Test09Attendance)重运行第3次================ test01student_attendance_1 (test_06_internship_manage.Test09Attendance)执行——>【错误Error】 |
||||||
182 | Test10LeaveRecord | test01student_leave_record_1 | 学生填写请假申请(调休)成功 | 3.82s | 错误 | |
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 574, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 574, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)重运行第1次================ test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 574, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)重运行第2次================ test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)执行——>【错误Error】 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor yield File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 611, in run self.setUp() File "/Users/shitou/工作/code/work/workAi/yxly/testcase/test_06_internship_manage.py", line 574, in setUp self.student_intership_id = jsonpath(student_intership_json, "$..id")[0] # 获取实习单实习中id TypeError: 'bool' object is not subscriptable ================test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)重运行第3次================ test01student_leave_record_1 (test_06_internship_manage.Test10LeaveRecord)执行——>【错误Error】 |
||||||
183 | Test11TeacherAprove | test01teacher_aprove_1 | 教师审批请假申请通过 | 0.929s | 成功 | |
用例入参:{'status': 'pass', 'reply': '自动化回复20230625_13:57:37'} 预期结果: {'msg': 'success', 'code': 200, 'data': True} 实际结果: {'msg': 'success', 'code': 200, 'data': True} test01teacher_aprove_1 (test_06_internship_manage.Test11TeacherAprove)执行——>【通过】 |