@@ -22,12 +22,238 @@ endif::[]
22
22
. Double click `AcquaiNote.jar` to start the application.
23
23
. Adjust the window to your favorite size.
24
24
25
- == Test command: `Help `
25
+ == Test command: `help `
26
26
27
- . Enter `help` to view User Guide (press F1 works also), you will see a popup help window.
27
+ . Enter `help` +
28
+ or press `F1` key +
29
+ or left click `Help` on menu bar, then left click `Help F1` +
30
+ Successful execution, a popup help window (User Guide) shown.
28
31
29
- == Test command: `Add `
32
+ == Test command: `add` or `a `
30
33
31
- . Enter `add n/Bob Ross p/91333462 e/
[email protected] a/US t/painter`
34
+ . Enter `add n/Bob Ross p/91333462 e/
[email protected] a/US t/painter` +
35
+ Successful addition, with all fields.
36
+ . Enter `add n/Bob Ross` +
37
+ Successful addition, with name only.
38
+ . Enter `add n/Bob Ross p/91333462 e/
[email protected] a/US t/painter` +
39
+ Fail addition, duplicate person.
32
40
41
+ == Test command: `list` or `l`
33
42
43
+ . Enter `list` +
44
+ Successful execution, show all persons stored.
45
+
46
+ == Test command: `edit` or `e`
47
+
48
+ . Enter `edit 19 n/Edited Name p/91333461 e/
[email protected] a/USA t/artist` +
49
+ Successful edition, any field(s).
50
+ . Enter `edit 21 n/Edited Name p/91333461 e/
[email protected] a/USA t/artist` +
51
+ Fail edition, index out of bound.
52
+ . Enter `edit 20 n/Edited Name p/91333461 e/
[email protected] a/USA t/artist` +
53
+ Fail edition, duplicate person.
54
+ . Enter `edit 19 n/Xiang Hailin p/93509250 e/
[email protected] a/PGP block5 t/classmates` +
55
+ Successful execution, revert contact list back to initial state.
56
+
57
+ == Test command: `delete` or `d`
58
+
59
+ . Enter `delete 7` +
60
+ Successful deletion.
61
+ . Enter `delete 22` +
62
+ Fail deletion, index out of bound.
63
+ . Enter `delete 0` +
64
+ Fail deletion, invalid index.
65
+ . Enter `u` +
66
+ Successful execution, undo deletion.
67
+
68
+ == Test command: `del`
69
+
70
+ . Enter `del ross` +
71
+ Successful deletion, person with index 21 deleted.
72
+ . Enter `undo` +
73
+ Enter `del rOSs` +
74
+ Successful deletion, case insensitive.
75
+ . Enter `del tom` +
76
+ Warning, multiple persons found +
77
+ Change command to `d 1` +
78
+ Successful deletion, Tom Json deleted.
79
+ . Enter `del toms` +
80
+ Fail deletion, person’s name not found.
81
+ . Enter `u` +
82
+ Enter `d 21` +
83
+ Successful execution, revert contact list back to initial state.
84
+
85
+
86
+ == Test command: `clear` or `c`
87
+
88
+ . Enter `clear` +
89
+ Successful execution, all contacts cleared.
90
+ . Enter `Undo` +
91
+ Successful execution, all contacts restored.
92
+
93
+ == Test command: `favourite` or `fav`
94
+
95
+ . Enter `favourite 7` +
96
+ Successful favourite, Darren Tan pushed to index 2 below Some Body, favourite star shown on right.
97
+ . Enter `favourite 2` +
98
+ Successful unfavourite, Darren Tan’s favourite star removed, index remain unchanged.
99
+
100
+ == Test command: `export`
101
+
102
+ . Enter `export data/exported/My AcquaiNote.xml` +
103
+ Successful exportation.
104
+ . Enter `export D:\exported\My AcquaiNote.xml` +
105
+ Successful exportation, a folder named `exported` will be created if not found.
106
+
107
+ [NOTE]
108
+ ====
109
+ This file path is only applicable for Windows users with a local D drive.
110
+ ====
111
+
112
+ . Enter `export data/exported/My AcquaiNote.xmla` +
113
+ Fail exportation, invalid command format(invalid file suffix).
114
+
115
+ == Test command: `Find`
116
+
117
+ . Enter `find some` +
118
+ Successful execution, one person “Some Body” is found.
119
+ . Enter `list` +
120
+ Successful execution, display all person.
121
+ . Enter `find -d n/a` +
122
+ Successful execution, 15 persons are found. Their names all contain letter “a”.
123
+ . Enter `find -d p/00` +
124
+ Successful execution, one person “Miss Zhang” is found.
125
+ . Enter `find -d e/@outlook.com` +
126
+ Successful execution, three persons are found.
127
+ . Enter `find -d a/pgp` +
128
+ Successful execution, two persons are found.
129
+ . Enter `find -d t/frien` +
130
+ Successful execution, 7 persons are found.
131
+ . Enter `find -d n/alex t/class` +
132
+ Successful execution, 0 person is found.
133
+ . Enter `find -d n/a t/class` +
134
+ Successful execution, 2 persons are found.
135
+ . Enter `find -d` +
136
+ Fail finding, invalid command format!
137
+ . Enter `list`
138
+ . Enter `find -u e` +
139
+ Successful execution, 20 persons are found. All of them have at least one field contain letter “e”
140
+ . Enter `find -u` +
141
+ Fail finding, invalid command format!
142
+
143
+ [NOTE]
144
+ ====
145
+ When use find command, todo list will not update. It you want to manipulate todo list, please use command `todo`.
146
+ ====
147
+
148
+ == Test command: `history` or `h`
149
+
150
+ . Enter `history` +
151
+ Successful execution, a list of history commands shown on right.
152
+
153
+ == Test command: `lock`
154
+
155
+ . Enter `lock random123` +
156
+ Successful lock.
157
+ . Enter `lock randompw123` +
158
+ Warning, need to be unlocked.
159
+ . Enter `list` +
160
+ Warning, need to be unlocked first.
161
+ . Press `UP` key +
162
+ No history will be shown.
163
+
164
+ == Test command: `unlock`
165
+
166
+ . Enter `unlock random1` +
167
+ Fail unlock, wrong password.
168
+ . Enter `unlock random123` +
169
+ Successful unlock, correct password.
170
+
171
+ [NOTE]
172
+ ====
173
+ If you forget the password, please delete the file and repeat import step.
174
+ ====
175
+
176
+ == Test command: `redo` or `r`
177
+
178
+ . Enter `d 7` +
179
+ Enter `undo` +
180
+ Undo deletion. +
181
+ Enter `redo` +
182
+ Successful redo, 7th person deleted.
183
+
184
+ == Test command: `switch` or `sw`
185
+
186
+ . Enter `switch 1` or click on `Todo` button +
187
+ Successful execution, the todo list will be shown.
188
+ . Enter `switch 2` or click on `Browser` button +
189
+ Successful execution, the browser will be shown.
190
+
191
+ == Test command: `select` or `s`
192
+
193
+ . Enter `sw 2`
194
+ . Enter `select -n 2` +
195
+ Successful selection, 2rd person’s name will be shown in browser.
196
+ . Enter `select -p 6` +
197
+ Successful selection, 6th person’s name will be shown in browser.
198
+ . Enter `select -p 13` +
199
+ Successful selection. Because the 13th person does not have phone number, alternatively, a hyphen will be searched.
200
+ . Enter `select -e 13` +
201
+ Successful selection, the email will be shown.
202
+ . Enter `select -a 11` +
203
+ Successful selection, address “Jurong” will be shown on google map.
204
+ . Enter `select -a 13` +
205
+ Successful selection. Because the 13th person does not have address, alternatively, a hyphen will be searched.
206
+ . Enter `select -d 1` +
207
+ Fail execution, invalid command format!
208
+
209
+
210
+ == Test command: `sort`
211
+
212
+ . Enter `sort -n` +
213
+ Successful sort by name, ascending order.
214
+ . Enter `sort -p` +
215
+ Successful sort by phone number, ascending order.
216
+ . Enter `sort -e` +
217
+ Successful sort by email, ascending order.
218
+ . Enter `sort -a` +
219
+ Successful sort by address, ascending order.
220
+ . Enter `sort -t` +
221
+ Successful sort by tag, ascending order.
222
+ . Enter `sort -o` +
223
+ Fail sort, invalid command.
224
+
225
+ == Test command: `todo`
226
+
227
+ . Enter `sw 1`
228
+ . Enter `todo -p` +
229
+ Fail execution, invalid command format with help message.
230
+ . Enter `todo 1 -a f/01-01-2018 20:00 t/01-01-2018 20:30 d/practice piano` +
231
+ Successful execution, a new todo item is added to first person. Notice that the end time `t/` is optional.
232
+ . Enter `undo` +
233
+ Successful undo, the new item disappear.
234
+ . Enter `redo` +
235
+ Successful redo, the item is added back.
236
+ . Enter `todo 1 -a f/01-01-2018 20:00 t/01-01-2018 20:30 d/practice piano` again +
237
+ Fail execution, this todo item already exists in the address book.
238
+ . Enter `todo 2 -a f/01-01-2019 d/a deadline` +
239
+ Fail execution, invalid command format! +
240
+ The time should in format: dd-MM-yyyy HH:mm
241
+ . Enter `todo 1 -c` +
242
+ Successful execution, todo list of 1st person will be clear.
243
+ . Enter `undo`
244
+ . Enter `todo 1 -d 2` +
245
+ Successful execution, the 2rd todo item of 1st person will be delete.
246
+ . Enter `todo 4 -l` +
247
+ Successful execution, list all todo items of 4th person.
248
+ . Enter `todo`
249
+ Successful execution, list all todo items of all person. Notice that the selection in person list will be cancelled.
250
+ . Enter `todo 21 -l` +
251
+ Fail execution, the person index provided is invalid.
252
+ . Enter `todo 20 -d 1` +
253
+ Fail execution, the todo item index provided is invalid.
254
+
255
+ == Test command: `exit`
256
+
257
+ . Enter `exit` +
258
+ or click on `File` on the menu bar, then click on `Exit` +
259
+ Successful execution, app closed.
0 commit comments