report.html
59.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试报告</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<script src=" https://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/echarts/5.1.2/echarts.min.js"></script>
<!-- 页面样式-->
<style type="text/css">
/*标题样式*/
.title {
width: auto;
height: 60px;
text-align: center;
font: bolder 38px/60px "Microsoft YaHei UI";
}
/*汇总信息样式*/
.summary {
width: 90%;
position: absolute;
top: 120px;
margin-left: 5%;
}
.text-left {
font: bolder 20px/30px "Microsoft YaHei UI";
}
.left {
width: 50%;
float: left;
}
.right {
width: 50%;
float: right;
}
.desc {
float: left;
width: 100%;
}
.list-group-item span {
font: normal 16px/38px "Microsoft YaHei UI";
padding: 30px;
}
.list-group-item {
position: relative;
display: block;
padding: .4rem 1.25rem;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, .125);
}
/* 执行信息样式 */
.test_info {
width: 90%;
position: absolute;
top: 900px;
margin-left: 5%;
color: #28a745 !important;
}
.table td, th {
border: solid 2px rgba(9, 122, 51, 0.11) !important;
padding: 0;
line-height: 40px;
text-align: center;
}
select {
border: 0;
padding: 0;
margin: 0;
height: 2em;
width: 8em;
margin-left: 2em;
}
option {
text-align: center;
height: 36px;
font: none 18px/36px "Microsoft YaHei UI";
color: #28a745 !important;
}
.test_log {
background: rgba(163, 171, 189, 0.15);
width: 100%;
height: 50px;
border-top: none;
border-bottom: none;
display: none;
text-align: left;
}
.test_log td {
text-align: left;
height: 30px;
margin: 0;
padding-left: 3em;
padding-right:3em;
font: none 18px/24px "Microsoft YaHei UI";
color: #9e141a;
}
pre {
margin: 0;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
line-height: 22px;
font-size: 14px
}
/* 测试图表显示*/
.char {
width: 90%;
position: absolute;
top: 450px;
margin-left: 5%;
color: #28a745 !important;
}
</style>
</head>
<body>
<!--报告标题-->
<div class="title text-success">
<div class="shadow-lg p-3 mb-5 bg-white rounded">优学乐业测试报告</div>
</div>
<!--汇总信息-->
<div class="summary">
<p class="text-left text-success">测试结果汇总</p>
<div class="left">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">测试人员</button>
<span class="text-dark">石头</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">开始时间</button>
<span class="text-dark">2022-12-24 20:30:36</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">执行时间</button>
<span class="text-dark">24.88 S</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">用例总数</button>
<span class="text-dark">33</span>
</li>
</ul>
</div>
<div class="right">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">成功用例</button>
<span class="text-success">33</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-warning">失败用例</button>
<span class="text-warning">0</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-danger">错误用例</button>
<span class="text-danger">0</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-secondary">跳过用例</button>
<span class="text-secondary">0</span>
</li>
</ul>
</div>
<div class="desc">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">描述信息</button>
<span class="text-secondary">优学乐业测试报告</span>
</li>
</ul>
</div>
</div>
<!--测试图表-->
<div class="char">
<p class="text-left text-success">图表展示</p>
<div id="char2" style="width: 49%;height: 400px;float: left"></div>
<div id="char" style="width: 49%;height: 400px ;float: left"></div>
</div>
<!--详细信息-->
<div class="test_info">
<p class="text-left text-success">详细信息</p>
<div class="table_data">
<table class="table">
<thead class="bg-success text-light">
<tr>
<th scope="col" style="width: 5%;padding: 0">编号</th>
<th scope="col" style="width: 20%;padding: 0">
<span>测试类</span>
<select id="testClass">
<option>所有</option>
<option>Test03Course</option>
<option>TestLogin</option>
<option>Test02Class</option>
<option>Test02Specialty</option>
<option>Test01Department</option>
<option>Test03Year</option>
<option>Test01CTeacher</option>
</select>
</th>
<th scope="col" style="width: 15%;padding: 0">测试方法</th>
<th scope="col" style="width: 20%;padding: 0">用例描述</th>
<th scope="col" style="width: 15%;padding: 0">执行时间</th>
<th scope="col" style="width: 20%;padding: 0">
<span>执行结果</span>
<select id="testResult">
<option>所有</option>
<option class="text-success">成功</option>
<option class="text-warning">失败</option>
<option class="text-danger">错误</option>
<option class="text-info">跳过</option>
</select>
</th>
<th scope="col" style="width: 10%;padding: 0">详细信息</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="TestLogin">TestLogin</td>
<td>test_login_1</td>
<td>登陆成功</td>
<td>0.411s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'way': 'name', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher', 'username': '17301249975'}
预期结果:{'msg': 'success', 'code': 200}
实际结果:{'msg': 'success', 'code': 200, 'data': {'access_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRUeXBlIjoiIiwiYnJva2VySWQiOiIiLCJocm9Vc2VyVG9rZW4iOm51bGwsInVzZXJfbmFtZSI6IjE3MzAxMjQ5OTc1IiwiYXV0aFN0YXR1cyI6IiIsImF1dGhlbnRpY2F0aW9uSWRlbnRpdHkiOiJsb2dpbiIsInR5cGUiOiJ0ZWFjaGVyIiwidXNlcklkIjoiMTUxOTk1OTIwODUyOTg2Njc1MyIsImNsaWVudF9pZCI6IndvcmthaSIsInN0dWRlbnRJZCI6IiIsInRlYWNoZXJJZCI6IjE1MTk5NTkyMDkyNzY0NTI4NjUiLCJ0ZW5hbnROYW1lIjoiIiwicGhvbmUiOiIxNzMwMTI0OTk3NSIsInNjb3BlIjpbImFsbCJdLCJzY2hvb2xJZCI6IjE1MTk5NTg1NjYxMzAyNTc5MjIiLCJ0ZW5hbnRJZCI6IiIsIm5hbWUiOiLmoKHplb8iLCJzdHVkZW50U3RhdHVzIjoiIiwiZXhwIjoxNjcxOTIxMDM3LCJzY2hvb2xOYW1lIjoi5rWL6K-V5aSn5a2mIiwianRpIjoiYmIxMjY3NWUtMWQ5NS00MzNjLThiY2UtNzI3Y2NiMjRiZGU5Iiwic3RhdHVzIjoiYWN0aXZlIn0.J68PkXm2fCncaIUm6bHn8vy5KS2F4NZVpqa3CV4enlJk_S7fcxlVykSDmWytmed_wO48cIPh25BCsRz3ZxrGebyYCUtTSQlywoMsOSJuu60MH0SKShu2FYxPHqfltGd09SRhQ53iXs7dS4FBB-eBqtvEatxUk3oCLTVmxvjGkvuf8mmdLodBarvi__5nGvZY10HV1AB5X30mZGQKKm2jSYdPVSrKzTXkq7dHqcnq9G3hT5t2JYpPxz9WRTuki47CL8mp8rT9cO8x1rNmn6ujRArUWJy9VevIzBrZx_ntz2alhWTHRUvKhVmTQ8PxxH-ci7bUe0qj46uI-GzeOsro2w', 'token_type': 'bearer', 'refresh_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRUeXBlIjoiIiwiYnJva2VySWQiOiIiLCJocm9Vc2VyVG9rZW4iOm51bGwsInVzZXJfbmFtZSI6IjE3MzAxMjQ5OTc1IiwiYXV0aFN0YXR1cyI6IiIsImF1dGhlbnRpY2F0aW9uSWRlbnRpdHkiOiJsb2dpbiIsInR5cGUiOiJ0ZWFjaGVyIiwidXNlcklkIjoiMTUxOTk1OTIwODUyOTg2Njc1MyIsImNsaWVudF9pZCI6IndvcmthaSIsInN0dWRlbnRJZCI6IiIsInRlYWNoZXJJZCI6IjE1MTk5NTkyMDkyNzY0NTI4NjUiLCJ0ZW5hbnROYW1lIjoiIiwicGhvbmUiOiIxNzMwMTI0OTk3NSIsInNjb3BlIjpbImFsbCJdLCJzY2hvb2xJZCI6IjE1MTk5NTg1NjYxMzAyNTc5MjIiLCJhdGkiOiJiYjEyNjc1ZS0xZDk1LTQzM2MtOGJjZS03MjdjY2IyNGJkZTkiLCJ0ZW5hbnRJZCI6IiIsIm5hbWUiOiLmoKHplb8iLCJzdHVkZW50U3RhdHVzIjoiIiwiZXhwIjoxNjcxOTU3MDM3LCJzY2hvb2xOYW1lIjoi5rWL6K-V5aSn5a2mIiwianRpIjoiYjZiYTlhN2ItZDA3NS00Njk1LTllMTItOWVhMWJjMTQwNTJhIiwic3RhdHVzIjoiYWN0aXZlIn0.UAdfMPkTUyNtAtPtPftd2Cyt27K0zdouMIq_OS84o4hsxPtlRRigakiSUcLqbzau6O70K4qaGdT5OlRlw1LtHsU_xlLMmz8rFDxE3BxElh89o5gAFZRsPTR4hmpLnjupuOZNTpcUaH51b2yEH9w9-yJZcJjy1lE9Sc8r0qIge1Dgw6J41pfqAmCiegeDgE2fgiqC1aWtjXpuHlHkIg2Wfvz30iGC7LZgivxhuOvWkK4dnSHxnzcO6gm3K1QGlMhB-8F4S92ZzF8Ngj294sKOohW133uV43m6x2LKI-n0ds9YknBxC-gLV0-oxZtRmSKK_yWbOFwKc24wnPltIwEi5w', 'expires_in': 35999, 'scope': 'all', 'tenantType': '', 'brokerId': '', 'hroUserToken': None, 'authStatus': '', 'authenticationIdentity': 'login', 'type': 'teacher', 'userId': '1519959208529866753', 'studentId': '', 'teacherId': '1519959209276452865', 'tenantName': '', 'phone': '17301249975', 'schoolId': '1519958566130257922', 'tenantId': '', 'name': '校长', 'studentStatus': '', 'schoolName': '测试大学', 'status': 'active', 'jti': 'bb12675e-1d95-433c-8bce-727ccb24bde9'}}
test_login_1 (test_01_login.TestLogin)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>2</td>
<td class="TestLogin">TestLogin</td>
<td>test_login_2</td>
<td>手机号填写错误的</td>
<td>0.267s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'way': 'name', 'username': '17301149975', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher'}
预期结果:{'code': 500, 'data': None, 'msg': '用户不存在'}
实际结果:{'code': 500, 'data': None, 'msg': '用户不存在'}
test_login_2 (test_01_login.TestLogin)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>3</td>
<td class="TestLogin">TestLogin</td>
<td>test_login_3</td>
<td>手机号不进行填写</td>
<td>0.239s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'way': 'name', 'username': '', 'password': 'f85eea0e15e424aba8675f8848e2cb83', 'type': 'teacher'}
预期结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'}
实际结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'}
test_login_3 (test_01_login.TestLogin)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>4</td>
<td class="TestLogin">TestLogin</td>
<td>test_login_4</td>
<td>密码填写错误</td>
<td>0.355s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'way': 'name', 'username': '17301249975', 'password': 'f85eea0e115e424aba8675f8848e2cb83', 'type': 'teacher'}
预期结果:{'code': 500, 'data': None, 'msg': '密码不正确'}
实际结果:{'code': 500, 'data': None, 'msg': '密码不正确'}
test_login_4 (test_01_login.TestLogin)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>5</td>
<td class="TestLogin">TestLogin</td>
<td>test_login_5</td>
<td>密码不进行填写</td>
<td>0.243s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'way': 'name', 'username': '17301249975', 'password': '', 'type': 'teacher'}
预期结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'}
实际结果:{'code': 500, 'data': None, 'msg': '用户名和密码不能为空'}
test_login_5 (test_01_login.TestLogin)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>6</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_1</td>
<td>新增院系成功</td>
<td>0.306s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化院系20221224_20:30:38_1', 'code': 'py_code20221224_20:30:38_1'}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_department_1 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>7</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_2</td>
<td>院系名称未填写</td>
<td>0.306s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '', 'code': 'py_code20221224_20:30:39_2'}
预期结果: {'msg': '院系名称不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '院系名称不能为空', 'code': 500, 'data': None}
test_add_department_2 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>8</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_3</td>
<td>院系名称重复</td>
<td>0.275s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '院系1', 'code': 'py_code20221224_20:30:39_3'}
预期结果: {'msg': '院系名称已存在,请确认', 'code': 500, 'data': None}
实际结果: {'msg': '院系名称已存在,请确认', 'code': 500, 'data': None}
test_add_department_3 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>9</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_4</td>
<td>院系名称长度不可大于30位</td>
<td>0.297s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '院系名称长度大于30的测试院系名称长度大于30的测试院系名称长度大于30的测试院系名称长度大于30的测试', 'code': 'py_code20221224_20:30:39_4'}
预期结果: {'msg': '院系名称长度不可大于30位', 'code': 500, 'data': None}
实际结果: {'msg': '院系名称长度不可大于30位', 'code': 500, 'data': None}
test_add_department_4 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>10</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_5</td>
<td>院系代码不能为空</td>
<td>0.296s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化院系20221224_20:30:39_5', 'code': ''}
预期结果: {'msg': '院系代码不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '院系代码不能为空', 'code': 500, 'data': None}
test_add_department_5 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>11</td>
<td class="Test01Department">Test01Department</td>
<td>test_add_department_6</td>
<td>院系代码长度不可大于30</td>
<td>0.293s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化院系20221224_20:30:40_6', 'code': '院系代码长度大于30的测试院系代码长度大于30的测试院系代码长度大于30的测试'}
预期结果: {'msg': '院系代码长度不可大于30', 'code': 500, 'data': None}
实际结果: {'msg': '院系代码长度不可大于30', 'code': 500, 'data': None}
test_add_department_6 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>12</td>
<td class="Test01Department">Test01Department</td>
<td>test_select_department_1</td>
<td>查看院系列表</td>
<td>0.333s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'pageNumber': '0', 'pageSize': '3'}
预期结果: {'msg': 'success', 'code': 200}
实际结果: {'msg': 'success', 'code': 200, 'data': {'records': [{'id': '1606628416684421122', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221224_20:30:38_1', 'code': 'py_code20221224_20:30:38_1', 'createdBy': '1519959209276452865', 'createdTime': 1671885039000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606628162723508226', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221224_20:29:38_1', 'code': 'py_code20221224_20:29:38_1', 'createdBy': '1519959209276452865', 'createdTime': 1671884978000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606245531808821249', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_19:09:11_1', 'code': 'py_code20221223_19:09:11_1', 'createdBy': '1519959209276452865', 'createdTime': 1671793752000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606208847079665666', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_16:43:25_1', 'code': 'py_code20221223_16:43:25_1', 'createdBy': '1519959209276452865', 'createdTime': 1671785006000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606204552531800066', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_16:26:21_1', 'code': 'py_code20221223_16:26:21_1', 'createdBy': '1519959209276452865', 'createdTime': 1671783982000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606204305550209026', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_16:25:22_1', 'code': 'py_code20221223_16:25:22_1', 'createdBy': '1519959209276452865', 'createdTime': 1671783923000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606203250993131521', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_16:21:11_1', 'code': 'py_code20221223_16:21:11_1', 'createdBy': '1519959209276452865', 'createdTime': 1671783672000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606203118486679554', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_16:20:39_1', 'code': 'py_code20221223_16:20:39_1', 'createdBy': '1519959209276452865', 'createdTime': 1671783640000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606192084417900546', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:36:49_1', 'code': 'py_code20221223_15:36:49_1', 'createdBy': '1519959209276452865', 'createdTime': 1671781009000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606190781226676225', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:31:38_1', 'code': 'py_code20221223_15:31:38_1', 'createdBy': '1519959209276452865', 'createdTime': 1671780698000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606185455395926018', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:10:28_1', 'code': 'py_code20221223_15:10:28_1', 'createdBy': '1519959209276452865', 'createdTime': 1671779429000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606184834047537153', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:08:00_1', 'code': 'py_code20221223_15:08:00_1', 'createdBy': '1519959209276452865', 'createdTime': 1671779281000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606184430383525890', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:06:24_1', 'code': 'py_code20221223_15:06:24_1', 'createdBy': '1519959209276452865', 'createdTime': 1671779184000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606183724666712065', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:03:35_1', 'code': 'py_code20221223_15:03:35_1', 'createdBy': '1519959209276452865', 'createdTime': 1671779016000, 'updatedBy': None, 'updatedTime': None}, {'id': '1606183161950498817', 'schoolId': '1519958566130257922', 'name': 'py自动化院系20221223_15:01:21_1', 'code': 'py_code20221223_15:01:21_1', 'createdBy': '1519959209276452865', 'createdTime': 1671778882000, 'updatedBy': None, 'updatedTime': None}], 'total': 417, 'size': 15, 'current': 1, 'orders': [], 'optimizeCountSql': True, 'searchCount': True, 'countId': '', 'maxLimit': None, 'pages': 28}}
test_select_department_1 (test_02_system_management.Test01Department)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>13</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_01</td>
<td>新增专业成功</td>
<td>1.04s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:41_1', 'code': 'py_code20:30:41_1', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_specialty_01 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>14</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_02</td>
<td>新增专业失败,院系未填写</td>
<td>0.939s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:42_2', 'code': 'py_code20:30:42_2', 'departmentId': '', 'category': 'science'}
预期结果: {'msg': '院系不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '院系不能为空', 'code': 500, 'data': None}
test_add_specialty_02 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>15</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_03</td>
<td>新增专业失败,院系不存在</td>
<td>1.03s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:43_3', 'code': 'py_code20:30:43_3', 'departmentId': '23232333333', 'category': 'science'}
预期结果: {'msg': '院系不存在', 'code': 500, 'data': None}
实际结果: {'msg': '院系不存在', 'code': 500, 'data': None}
test_add_specialty_03 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>16</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_04</td>
<td>新增专业失败,专业名称未填写</td>
<td>1.02s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '', 'code': 'py_code20:30:44_4', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': '专业名称不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '专业名称不能为空', 'code': 500, 'data': None}
test_add_specialty_04 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>17</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_05</td>
<td>新增专业失败,专业名称长度不能大于30</td>
<td>1.06s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '专业大于301234567890专业大于301234567890', 'code': 'py_code20:30:45_5', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': '专业名称长度不能大于30', 'code': 500, 'data': None}
实际结果: {'msg': '专业名称长度不能大于30', 'code': 500, 'data': None}
test_add_specialty_05 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>18</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_06</td>
<td>新增专业失败,专业名称重复</td>
<td>0.959s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '第二个专业-2-1', 'code': 'py_code20:30:46_6', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': '专业名称已存在,请确认', 'code': 500, 'data': None}
实际结果: {'msg': '专业名称已存在,请确认', 'code': 500, 'data': None}
test_add_specialty_06 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>19</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_07</td>
<td>新增专业失败,专业代码未填写</td>
<td>0.959s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:47_7', 'code': '', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': '专业代码不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '专业代码不能为空', 'code': 500, 'data': None}
test_add_specialty_07 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>20</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_08</td>
<td>新增专业失败,专业代码长度不能大于30</td>
<td>0.918s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:48_8', 'code': '专业代码大于301234567890专业大于301234567890', 'departmentId': '1606628416684421122', 'category': 'science'}
预期结果: {'msg': '专业代码长度不能大于30', 'code': 500, 'data': None}
实际结果: {'msg': '专业代码长度不能大于30', 'code': 500, 'data': None}
test_add_specialty_08 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>21</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_09</td>
<td>新增专业失败,学科门类未填写</td>
<td>1.02s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:49_9', 'code': 'py_code20:30:49_9', 'departmentId': '1606628416684421122', 'category': ''}
预期结果: {'msg': '学科门类不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '学科门类不能为空', 'code': 500, 'data': None}
test_add_specialty_09 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>22</td>
<td class="Test02Specialty">Test02Specialty</td>
<td>test_add_specialty_10</td>
<td>新增专业失败,学科门类填写错误</td>
<td>0.996s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py专业20:30:50_10', 'code': 'py_code20:30:50_10', 'departmentId': '1606628416684421122', 'category': 'scienwce'}
预期结果: {'msg': '学科门类不存在', 'code': 500, 'data': None}
实际结果: {'msg': '学科门类不存在', 'code': 500, 'data': None}
test_add_specialty_10 (test_02_system_management.Test02Specialty)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>23</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_1</td>
<td>新增学年学期成功</td>
<td>0.325s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': 'py学年20:30:51_1', 'remark': 'py_comment备注20:30:51_1', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_year_1 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>24</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_2</td>
<td>学年学期开始时间和结束时间不可交叉</td>
<td>0.306s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': 'py学年20:30:51_2', 'remark': 'py_comment备注20:30:51_2', '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_2 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>25</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_3</td>
<td>学年未填写</td>
<td>0.283s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': '', 'remark': 'py_comment备注20:30:52_3', 'terms': [{'sort': 1, 'startTime': 1667376499000, 'endTime': 1704115459000}]}
预期结果: {'msg': '学年不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '学年不能为空', 'code': 500, 'data': None}
test_add_year_3 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>26</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_4</td>
<td>学期未填写</td>
<td>0.323s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': 'py学年20:30:52_4', 'remark': 'py_comment备注20:30:52_4', 'terms': [{'sort': '', 'startTime': 1667376499000, 'endTime': 1704115459000}]}
预期结果: {'msg': '学期排序不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '学期排序不能为空', 'code': 500, 'data': None}
test_add_year_4 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>27</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_5</td>
<td>学期开始时间未填写</td>
<td>0.294s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': 'py学年20:30:52_5', 'remark': 'py_comment备注20:30:52_5', 'terms': [{'sort': 1, 'startTime': '', 'endTime': 1704115459000}]}
预期结果: {'msg': '学期开始时间不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '学期开始时间不能为空', 'code': 500, 'data': None}
test_add_year_5 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>28</td>
<td class="Test03Year">Test03Year</td>
<td>test_add_year_6</td>
<td>学期结束时间未填写</td>
<td>0.289s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'year': 'py学年20:30:53_6', 'remark': 'py_comment备注20:30:53_6', 'terms': [{'sort': 1, 'startTime': 1704115459000, 'endTime': ''}]}
预期结果: {'msg': '学期结束时间不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '学期结束时间不能为空', 'code': 500, 'data': None}
test_add_year_6 (test_02_system_management.Test03Year)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>29</td>
<td class="Test01CTeacher">Test01CTeacher</td>
<td>test_add_teacher_info_1</td>
<td>新增教师</td>
<td>0.543s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化教师20221224_20:30:54_1', 'number': '13366742080', 'departmentIds': ['1606628416684421122'], 'phone': '13366742080', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '110101198208191584', 'gender': 0, 'entryTime': 1663084800000, 'email': '57370113422@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1606628416684421122'}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_teacher_info_1 (test_03_teaching_affairs.Test01CTeacher)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>30</td>
<td class="Test01CTeacher">Test01CTeacher</td>
<td>test_add_teacher_info_2</td>
<td>教师姓名不能为空</td>
<td>0.28s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': '', 'number': '17320079916', 'departmentIds': ['1606628416684421122'], 'phone': '17320079916', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '620101194711091179', 'gender': 0, 'entryTime': 1663084800000, 'email': '19769147857@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1606628416684421122'}
预期结果: {'msg': '教师姓名不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '教师姓名不能为空', 'code': 500, 'data': None}
test_add_teacher_info_2 (test_03_teaching_affairs.Test01CTeacher)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>31</td>
<td class="Test01CTeacher">Test01CTeacher</td>
<td>test_add_teacher_info_3</td>
<td>教师手机号不能为空</td>
<td>0.299s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化教师20221224_20:30:55_3', 'number': '', 'departmentIds': ['1606628416684421122'], 'phone': '', 'classInfoId': '', 'idType': 'identity_card', 'idNumber': '500101194009260414', 'gender': 0, 'entryTime': 1663084800000, 'email': '86463050788@163.com', 'professionalIds': [], 'roleIds': ['968160378070540291'], 'permissionScope': '1606628416684421122'}
预期结果: {'msg': '教师手机号不能为空', 'code': 500, 'data': None}
实际结果: {'msg': '教师手机号不能为空', 'code': 500, 'data': None}
test_add_teacher_info_3 (test_03_teaching_affairs.Test01CTeacher)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>32</td>
<td class="Test02Class">Test02Class</td>
<td>test_add_class_info_1</td>
<td>新增班级</td>
<td>0.33s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化班级20221224_20:30:58_1', 'educationalSystem': '3', 'startSchoolYear': 2022, 'professionalId': '1606628430462709762', 'teacherId': '1606628483533238273', 'departmentId': '1606628416684421122'}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_class_info_1 (test_03_teaching_affairs.Test02Class)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>33</td>
<td class="Test03Course">Test03Course</td>
<td>test_add_course_info_1</td>
<td>新增课程</td>
<td>0.352s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>用例入参:{'name': 'py自动化课程20221224_20:31:01_1', 'practiceType': 'know', 'departmentId': '1606628416684421122', 'credit': 3, 'property': 'elective', 'creditHour': '5', 'termIds': ['1606628470845468674'], 'professionalIds': ['1606628430462709762'], 'yearId': '49'}
预期结果: {'msg': 'success', 'code': 200, 'data': True}
实际结果: {'msg': 'success', 'code': 200, 'data': True}
test_add_course_info_1 (test_03_teaching_affairs.Test03Course)执行——>【通过】
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div style="height: 200px"></div>
</div>
<script>
var tbodyTr = $('tbody tr');
var testResult = $("#testResult");
var testClass = $("#testClass");
<!-- 用例执行详细信息显示切换-->
$(".btn_info").click(function () {
$(this).parent().parent().next().toggle();
});
// 当选择用例类之后触发
testClass.change(function () {
var cls = $(this).val();
var res = testResult.val();
elementDisplay(cls, res);
sort()
});
testResult.change(function () {
var res = $(this).val();
var cls = testClass.val();
elementDisplay(cls, res);
sort()
});
function elementDisplay(cls, res) {
// 用例数据的显示
if (cls === "所有") {
if (res === "所有") {
tbodyTr.has('button').show();
} else if (res === '成功') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-success').show()
} else if (res === '失败') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-warning').show()
} else if (res === '错误') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-danger').show()
} else if (res === '跳过') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-info').show()
}
} else {
if (res === "所有") {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').show()
} else if (res === '成功') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-success').show()
} else if (res === '失败') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-warning').show()
} else if (res === '错误') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-danger').show()
} else if (res === '跳过') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-info').show()
}
}
}
function sort() {
//重新排列显示序号
// 选择所有可以见的tr
var visibleTr = tbodyTr.filter(":visible");
visibleTr.each(function (index, element) {
element.firstElementChild.innerHTML = index + 1;
})
}
</script>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('char'));
var myChart2 = echarts.init(document.getElementById('char2'));
// 指定图表的配置项和数据
option = {
color: ['#00a10a', '#ddb518', 'rgba(204,46,41,0.73)', '#85898c'],
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
legend: {
orient: 'vertical',
left: 10,
data: ['通过', '失败', '错误', '跳过']
},
series: [
{
name: '测试结果',
type: 'pie',
radius: ['50%', '70%'],
avoidLabelOverlap: false,
label: {
show: false,
position: 'center'
},
emphasis: {
label: {
show: true,
fontSize: '30',
fontWeight: 'bold'
}
},
labelLine: {
show: false
},
data: [
{value: 33, name: '通过'},
{value: 0, name: '失败'},
{value: 0, name: '错误'},
{value: 0, name: '跳过'}
]
}
]
};
option2 = {
tooltip: {
formatter: '{a} <br/>{b} : {c}%'
},
toolbox: {
feature: {
restore: {},
saveAsImage: {}
}
},
series: [
{
name: '测试结果',
type: 'gauge',
detail: {formatter: '100.00%'},
data: [{value: '100.00', name: '用例通过率'}],
axisLine: {
lineStyle: {
color: [
[0.2, '#c20000'],
[0.8, '#ddb518'],
[1, '#00a10a']]
}
}
}
]
};
myChart2.setOption(option2);
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>
</body>
</html>