-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjw04.yml
165 lines (154 loc) · 4.4 KB
/
jw04.yml
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
name: crclz's jw04 commandline test1
data:
- SUDO
- back
- SUDO
- back
- SUDO
- back
- SUDO # enter admin mode
-
- np -t a1 123213 123 # 现在所有信息都非法,但是首先应当判断id。以下同理。
- ID illegal.
- # 你看到的 ================== 标记,是测试数据编写者的 “书签”
- np -t lst 53010219200508011x 55864 # 新建教师记录 (合法,便于测试下一条的身份证重复)===============
- Add teacher success.
-
- np -t lst 53010219200508011x 558640 # id已存在
- ID exists.
-
# 身份证用这个生成的 http://sfz.uzuzuz.com/
- np -t lst1 110101199003076050 558640 # "lst1" 包含了数字
- Name illegal.
-
- np -t lst 110101199003076050 558640 #
- TID illegal.
-
- np -t lst 110101199003076050 55864
- TID exists.
# 接下来是添加学生的测试
-
- np -s a1 123213 123
- ID illegal.
-
- np -s lst 110101199003074311 18371234 # 新建学生记录(合法)========================
- Add student success.
-
- np -s lst 53010219200508011x 1837123 # id已存在 (被之前的教师占用了)
- ID exists.
-
- np -s lst 110101199003074311 1837123 # id已存在 (被之前的学生占用了)
- ID exists.
-
- np -s aa1 110101199003073490 123 # 姓名非法
- Name illegal.
-
- np -s aa_a 110101199003073490 123 # 姓名非法
- Name illegal.
-
- np -s aa 110101199003073490 1837123 # 学号非法
- SID illegal.
-
- np -s aa 110101199003073490 18371234 # 学号已存在
- SID exists.
- back # 退出SUDO,返回上一级
# 接下来测试登录以及登录后的功能
# 教师登录
-
- login -t id55555id a12345 # 不存在的身份证号码
- Login Error. Your ID or password maybe wrong.
-
- login -t 53010219200508011x fake_password # 错误的密码
- Login Error. Your ID or password maybe wrong.
-
- login -t 110101199003074311 a12345 # 身份证号码是学生的
- Login Error. Your ID or password maybe wrong.
-
- login -t 53010219200508011x a12345 # 成功登录,进入登陆后模式
- Login success.
# 教师登陆后模式
-
- myinfo # 显示个人信息
- |
Name:lst
IDNum:53010219200508011X
TID:55864
Sex:M
Birthday:1920/05/08
# 修改密码
-
- chgpw aaaaaaaa b # 密码不符合标准(至少两类符号)
- Password illegal.
-
- chgpw ---------- b # 密码不符合标准(至少两类符号)
- Password illegal.
-
- chgpw aaaaaaa1 aaaaaaa # 两个密码不一致
- The password you entered must be the same as the former one.
-
- chgpw aaaaaaa1 Aaaaaaa1 # 两个密码不一致
- The password you entered must be the same as the former one.
-
- chgpw Aaaaaaa1 Aaaaaaa1 # 成功修改密码
- Password changed successfully.
# 退出去,重新登录测试一下
- back
-
- login -t 53010219200508011x Aaaaaaa1
- Login success.
-
- myinfo # 显示个人信息
- |
Name:lst
IDNum:53010219200508011X
TID:55864
Sex:M
Birthday:1920/05/08
# 教师退出登录
- back
# 学生登陆
-
- login -s asdasd1 a12345 # 不存在的身份证号码
- Login Error. Your ID or password maybe wrong.
-
- login -s 110101199003074311 a12345666 # 密码错误
- Login Error. Your ID or password maybe wrong.
-
- login -s 53010219200508011x Aaaaaaa1 # 身份证不是学生的 (这个账号密码是之前的教师的)
- Login Error. Your ID or password maybe wrong.
-
- login -s 110101199003074311 a12345
- Login success.
# 现在进入了学生登陆后的模式
-
- myinfo
- |
Name:lst
IDNum:110101199003074311
SID:18371234
Sex:M
Birthday:1990/03/07
# 修改密码
-
- chgpw aaaaaaaa b # 密码不符合标准(至少两类符号)
- Password illegal.
-
- chgpw aaaaaaa1 aaaaaaa # 两个密码不一致
- The password you entered must be the same as the former one.
-
- chgpw Baaaaaa1 Baaaaaa1 # 成功修改密码
- Password changed successfully.
# 退出去,重新登录测试一下
- back
-
- login -s 110101199003074311 Baaaaaa1
- Login success.
-
- myinfo
- |
Name:lst
IDNum:110101199003074311
SID:18371234
Sex:M
Birthday:1990/03/07
- QUIT # quit