Rolodex - Test Script
This is a document explaining the steps to perform manual testing (i.e. manual scripted testing), starting with how to load the sample data.
Setting Up
- Follow the instructions with numbers labeled closely.
- Download the latest rolodex.jar from here.
- Download our sample database with more than 25 persons pre-loaded for this exercise here.
- Start up rolodex.jar in an empty directory and close it.
- You should see a preferences.json file in the same directory as your jar file.
- Replace the value of the key rolodexFilePath in the json file to a directory of your choosing.
- Place SampleData.rldx in that directory. We recommend creating a directory data in the same folder as your rolodex.jar file and placing SampleData.rldx in there. (i.e. data/SampleData.rldx)
- Start up rolodex.jar again. You should see the application loaded with at least 25 sample contacts.
- The status bar on the bottom right should correctly display the directory at which you placed the SampleData.rldx (the file you are going to be operating on).
Add Command
Basic Functionality
- Type
add n/Alice Ken p/91234567 e/alice@gmail.com a/900, Alice Street
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory.
Abbreviations
- Type
a n/Alice Ken p/91234567 e/alice@gmail.com a/800, Alice Street
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
- Type
+ n/Alice Ken p/91234567 e/alice@gmail.com a/700, Alice Street
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
Drop-down List
- Type
a
- Press
Enter
or click to select the add
option in the drop-down list
- Press
Space
- Type
n/Alice Ken p/91234567 e/alice@gmail.com a/900, Alice Street
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
Auto-completion
- Type
add
and press Tab
- Type
Alice Ken
and press Tab
- Type
91234567
and press Tab
- Type
alice@gmail.com
and press Tab
- Type
900, Alice Street
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
Invalid Command Suggestion
- Type
add alice@gmail.com Alice Ken 900, Alice Street 91234567
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean add n/Alice Ken p/91234567 e/alice@gmail.com a/900, Alice Street?’
- Press
Enter
Expected Behaviour
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
Keyboard Shortcut
- Press
Ctrl
+ +
- Type
Alice Ken
and press Tab
- Type
91234567
and press Tab
- Type
alice@gmail.com
and press Tab
- Type
900, Alice Street
- Press
Enter
Expected Behaviour:
- New contact with entered particulars is added to Rolodex
- Contact is automatically displayed on the bottom right panel
- Name, phone, email and address fields are compulsory
Delete Command
Basic Functionality
- Type
delete 1
- Press
Enter
Expected Behaviour
- First contact is deleted from Rolodex
Abbreviations
- Type
d 2
- Press
Enter
Expected Behaviour
- Second contact is deleted from Rolodex
- Type
- 3
- Press
Enter
Expected Behaviour
- Third contact is deleted from Rolodex
Auto-completion
- Type
delete
and press Tab
- Type
1
and press Enter
Expected Behaviour
- First contact is deleted from Rolodex
Invalid Command Suggestion
- Type
d21 durian
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean D21?’
- Press
Enter
Expected Behavior
- The 21st contact is deleted from Rolodex
Keyboard Shortcut
- Press
Ctrl
+ D
- Type
1
and press Enter
Expected Behaviour
- First contact is deleted from Rolodex
Edit Command
Basic Functionality
- Type
edit 1 n/A p/99999999 e/edit@gmail.com r/Edited contact. t/edited
- Press
Enter
Expected Behaviour
- The particulars of the first contact are edited with the new inputs.
- The tag
edited
should be added to the existing tags.
- The edited contact is automatically displayed on the bottom right panel
Tag Toggling
- Type
edit 1 t/edited
(A should be the first contact)
- Press
Enter
Expected Behaviour
- The tag
edited
should be removed from A
Abbreviations
- Type
e 1 n/B
- Press
Enter
Expected Behaviour
- First contact should be renamed to B
- Type
change 1 p/88888888
- Press
Enter
Expected Behaviour
- Phone number of first contact should now be “88888888”
- Type
modify 1 e/modified@mail.com
- Press
Enter
Expected behaviour
Drop-down List
- Type
e
- Press
↓
until the edit
option is highlighted in the drop-down list
- Press
Enter
- Press
Space
- Type
n/A p/99999999 e/edit@gmail.com r/Edited contact. t/edited
- Press
Enter
Expected Behaviour
- The particulars of the first contact are edited with the new inputs.
- The tag
edited
should be added to the existing tags.
- The edited contact is automatically displayed on the bottom right panel
Auto-completion
- Type
edit
- Press
Tab
- Type
1 n/B
- Press
Enter
Expected Behaviour
- First contact should be renamed to B
Invalid Command Suggestion
- Type
edit 1Alice
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean edit 1 n/Alice?’
- Press
Enter
Expected Behaviour
- First contact should be renamed to alice
- Type
edt 1 12345678
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean edit 1 p/12345678?’
- Press
Enter
Expected Behaviour
- Phone number of first contact should now be “12345678”
- Type
edi 1 abc@efg
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean edit 1 e/abc@efg?’
- Press
Enter
Expected Behaviour
- Email of first contact should now be “abc@efg”
- Type
dit 1 3 computing drive
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean edit 1 a/3 computing drive?’
- Press
Enter
Expected Behaviour
- Address of first contact should now be “3 computing drive”
Keyboard Shortcut
- Press
Ctrl
+ E
- Type
1 n/bob
- Press
Enter
Expected Behaviour
- First contact should be renamed to bob
Select Command
Basic Functionality
- Type
select 1
Expected Behaviour
- The first contact should be selected
Abbreviations
- Type
s 2
Expected Behaviour
- The second contact should be selected
Drop-Down List
- Type
s
- Press
Enter
or click to choose the select
option in the drop-down list
- Press
space
and type 3
- Press
Enter
Expected Behaviour
- The third contact should be selected
Auto-completion
- Type
s
- Press
Tab
- Type
1
- Press
Enter
Expected Behaviour
- The first contact should be selected
Invalid Command Suggestion
- Type
s1
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted “Did you mean s 1?”
- Press
Enter
Expected Behaviour
- The first contact should be selected
Keyboard Shortcut
- Press
Esc
- Press
↓
or ↑
several times
- Press
Enter
Expected Behaviour
- In step 1, the command box should be deselected
- In step 2, the contact list should be scrollable
- In step 3, the command box should be selected
Email Command
Basic functionality
- Type
email 1 s/hello
- Press
Enter
Expected Behaviour
- Your default email client should open a new compose email window
- Recipient’s email address should be the first contact’s email address
- Subject should be “hello”
- Type
email 1
- Press
Enter
Expected Behaviour
- Your default email client should open a new compose email window
- Recipient’s email address should be the first contact’s email address (Subject field is optional)
Auto-completion
- Type
M
- Press
Tab
- Type
1 s/hello
- Press
Tab
Expected Behaviour
- Your default email client should open a new compose email window
- Recipient’s email address should be the first contact’s email address
- Subject should be “hello”
Invalid Command Suggestion
- Type
mal1 hello
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted “Did you mean mail 1 s/hello?”
- Press
Enter
Expected Behaviour
- Your default email client should open a new compose email window
- Recipient’s email address should be the first contact’s email address
- Subject should be “hello”
Keyboard Shortcut
- Press
Ctrl
+ M
- Type
1 s/hello
- Press
Enter
Expected Behaviour
- Your default email client should open a new compose email window
- Recipient’s email address should be the first contact’s email address
- Subject should be “hello”
Find Command
Find by name
Exact matches
- Type
find bravo
- Press
Enter
Expected behavior
- The contact list is filtered with contacts with the name “Bravo”
Fuzzy Matching
- Type
find brabo
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts roughly matching the name “brabo”, “Bravo” included.
Find by tag
- Type
find friends
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”.
Sorting
- Type
find friends n/desc
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”, sorted by descending order of name.
- Type
find friends p/desc
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”, sorted by descending phone.
- Type
find friends p/desc
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”, sorted by descending phone.
- Type
find friends p/desc a/
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”, sorted by descending phone, then by ascending address.
Auto-completion
- Type
find
- Press
Tab
- Type
bravo
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts roughly matching the name “brabo”, “Bravo” included.
Keyboard Shortcut
- Press
Ctrl
+ F
- Type
school
and press Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “school”.
Invalid Command Suggestion
- Type
findmy friends
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean find friends?’
- Press
Enter
Expected Behavior
- The contact list is filtered with contacts tagged as “friends”.
Help Command
Basic Functionality
- Type
help
- Press
Enter
Expected Behavior
- The Rolodex User Guide should be opened in a new window
Help Window Searching
- Type
add
into the search bar located at the top of the window
- Press
Enter
or click the Search button
Expected Behavior
- All words “add” in the document should be highlighted in yellow
Invalid Command Suggestion
- Type
halp me
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean help?’
- Press
Enter
Expected Behavior
- The Rolodex User Guide should be opened in a new window
History Command
Basic Functionality
- Type
history
- Press
Enter
Expected Behavior
- Entered commands from most recent to earliest should be displayed on the result panel
Invalid Command Suggestion
- Type
hisdory is a dory pun
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean history?’
- Press
Enter
Expected Behavior
- Entered commands from most recent to earliest should be displayed on the result panel
Keyboard Shortcut
- Type
Ctrl
+ H
Expected Behavior
- Entered commands from most recent to earliest should be displayed on the result panel
List Command
Basic Functionality
- Type
list
- Press
Enter
Expected Behavior
- All contacts should be listed in Rolodex
Abbreviations
- Type
l
- Press
Enter
Expected Behavior
- All contacts should be listed in Rolodex
- Type
show
- Press
Enter
Expected Behavior
- All contacts should be listed in Rolodex
- Type
display
- Press
Enter
Expected Behavior
- All contacts should be listed in Rolodex
Sorting
- Type
list p/asc a/desc
- Press
Enter
Expected Behavior
- The contact list should be sorted by ascending phone, then by descending address.
Invalid Command Suggestion
- Type
lost is me, Am I lost? Yes I am. Lost little lamb
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean list?’
- Press
Enter
Expected Behavior
- All contacts should be listed in Rolodex
Keyboard Shortcut
- Press
Ctrl
+ L
Expected Behavior
- All contacts should be listed in Rolodex
New Rolodex Command
Creating New Rolodex at Relative Directory
- Type
new data/SampleData2.rldx
or n data/SampleData2.rldx
- Press
Enter
Expected Behaviour
- A new Rolodex is created under the relative directory (data folder should be in same place as .jar file).
- The status bar on the bottom right of the application updates to the new Rolodex (i.e. the data file you are currently operating on)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Creating New Rolodex at System Directory
Windows:
- Type
new C:/Users/YOUR_USERNAME/Desktop/SampleData.rldx
- Press
Enter
Mac:
- Type
new /Users/YOUR_USERNAME/Desktop/SampleData.rldx
- Press
Enter
Linux:
- Type
new /home/YOUR_USERNAME/Desktop/SampleData.rldx
- Press
Enter
Expected Behaviour
- A new test file,
SampleData.rldx
should be created on your desktop.
- The status bar on the bottom right of the application updates to the new Rolodex (i.e. the data file you are currently operating on)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Attempting to Re-Create Existing Rolodex
- Type
new data/SampleData.rldx
- Press
Enter
Expected Behaviour
- An error message should be displayed, prompting to use the
open
command instead.
- The original SampleData.rldx should not be overwritten or changed.
Auto-completion
- Type
new
- Press
Tab
- Type
data/SampleData3.rldx
- Press
Enter
Expected Behaviour
- A new Rolodex is created under the relative directory (data folder should be in same place as .jar file).
- The status bar on the bottom right of the application updates to the new Rolodex (i.e.
data/SampleData3.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Invalid Command Suggestion
- Type
new:( data/SampleData4
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean new data/SampleData3.rldx?’
- Press
Enter
Expected Behaviour
- A new Rolodex is created under the relative directory (data folder should be in same place as .jar file).
- The status bar on the bottom right of the application updates to the new Rolodex (i.e.
data/SampleData4.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Keyboard Shortcut
- Press
Ctrl
+ N
- Type
data/SampleData5.rldx
- Press
Enter
Expected Behaviour
- A new Rolodex is created under the relative directory (data folder should be in same place as .jar file).
- The status bar on the bottom right of the application updates to the new Rolodex (i.e.
data/SampleData5.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Open Rolodex Command
Requirements
- Please complete the section New Rolodex Command before proceeding with this section.
Opening Rolodex at Relative Directory
- Type
open data/SampleData2.rldx
or o data/SampleData2.rldx
- Press
Enter
Expected Behaviour
- The original Rolodex under the relative directory (data folder should be in same place as .jar file) is opened.
- The status bar on the bottom right of the application updates to the opened Rolodex (i.e.
data/SampleData2.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Opening Rolodex at System Directory
Windows:
- Type
open C:/Users/YOUR_USERNAME/Desktop/SampleData3.rldx
- Press
Enter
Mac:
- Type
open /Users/YOUR_USERNAME/Desktop/SampleData3.rldx
- Press
Enter
Linux:
- Type
open /home/YOUR_USERNAME/Desktop/SampleData3.rldx
- Press
Enter
Expected Behaviour
- The original test file,
SampleData.rldx
should be loaded onto your application.
- The status bar on the bottom right of the application updates to the new Rolodex (i.e.
data/SampleData.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Attempting to Open Non-Existent Rolodex
- Type
open data/SampleData4.rldx
- Press
Enter
Expected Behaviour
- An error message should be displayed, prompting to use the
new
command instead.
- The original SampleData.rldx should not be overwritten or changed.
Auto-completion
- Type
open
- Press
Tab
- Type
data/SampleData.rldx
Expected Behaviour
- The original Rolodex under the relative directory (data folder should be in same place as .jar file) is opened.
- The status bar on the bottom right of the application updates to the opened Rolodex (i.e.
data/SampleData.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Invalid Command Suggestion
- Type
open:) data/SampleData2
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean open data/SampleData2.rldx?’
- Press
Enter
Expected Behaviour
- The Rolodex under the relative directory (data folder should be in same place as .jar file).
- The status bar on the bottom right of the application updates to the new Rolodex (i.e.
data/SampleData2.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Keyboard Shortcut
- Press
Ctrl
+ O
- Type
data/SampleData.rldx
- Press
Enter
Expected Behaviour
- The original Rolodex under the relative directory (data folder should be in same place as .jar file) is opened.
- The status bar on the bottom right of the application updates to the opened Rolodex (i.e.
data/SampleData.rldx
)
- Undo/Redo no longer works as new data has been inserted and stack has been cleared.
Remark Command
Basic Functionality
- Type
remark 1 r/Loves to talk.
- Press
Enter
- Type
select 1
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to talk.”
Abbreviations
- Type
rmk 3 r/Loves to sing.
- Press
Enter
- Type
select 3
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to sing.”
- Type
comment 3 r/Loves to jump.
- Press
Enter
- Type
select 3
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to jump.”
- Type
note 3 r/Loves to eat.
- Press
Enter
- Type
select 3
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to eat.”
Auto-completion
- Type
remark
and press Tab
- Type
1
- Press
Tab
- Type
Loves to swim
- Press
Enter
- Type
select 1
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to swim.”
Keyboard shortcut
- Press
Ctrl
+ R
- Type
1
- Press
Tab
- Type
Loves to dance
- Press
Enter
- Type
select 1
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Loves to dance.”
Invalid Command Suggestion
- Type
rmk1 Hates dancing
- Press
Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean rmk 1 r/Hates dancing?’
- Press
Enter
- Type
select 1
- Press
Enter
Expected Behaviour
- The selected contact should have the remark “Hates dancing”
Undo Command
Basic Functionality
- Type
delete 1
and press Enter
- Type
undo
- Press
Enter
Expected Behaviour
- The first contact should remain in Rolodex
Abbreviations
- Type
d 1
and press Enter
- Type
undo
- Press
Enter
Expected Behaviour
- The first contact should remain in Rolodex
Drop-Down List
- Type
d 1
and press Enter
- Type
u
- Press
Enter
or click to select the undo
option in the drop-down list
- Press
Enter
Expected Behaviour
- The first contact should remain in Rolodex
Invalid Command Suggestion
- Type
d 1
and press Enter
- Type
udon YUMMY!!! :P
and press Enter
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean undo?’
- Press
Enter
Expected Behaviour
- The first contact should remain in Rolodex
Keyboard Shortcut
- Type
d 1
and press Enter
- Press
Ctrl
+ Z
Expected Behaviour
- The first contact should remain in Rolodex
Redo Command
Basic functionality
- Type
d 1
and press Enter
- Type
undo
and press Enter
- Type
redo
- Press
Enter
Expected Behaviour
- The first contact should be deleted from Rolodex
Abbreviations
- Type
d 1
and press Enter
- Type
undo
and press Enter
- Type
r
- Press
Enter
Expected Behaviour
- The first contact should be deleted from Rolodex
Drop-Down List
- Type
d 1
and press Enter
- Type
undo
and press Enter
- Type
r
- Press
Enter
or click to select the redo
option in the drop-down list
- Press
Enter
Expected Behaviour
- The first contact should be deleted from Rolodex
Invalid Command Suggestion
- Type
d 1
and press Enter
- Type
undo
and press Enter
- Type
redp
- Press
Enter
Expected Behaviour
- The first contact should be deleted from Rolodex
Keyboard Shortcut
- Type
d 1
and press Enter
- Type
undo
and press Enter
- Press
Ctrl
+ Y
Expected Behaviour
- The first contact should be deleted from Rolodex
Exit Command
- Type
exit
or quit
or close
or bye
or esc
- Press
Enter
Expected Behaviour
- The application should be closed.
Invalid Command Suggestion
- Reopen the application by clicking the rolodex.jar file.
- Type
exito
- Type
y
or yes
or k
or ok
or yea
or yeah
when prompted ‘Did you mean exit?’
- Press
Enter
Expected Behaviour
- The application should be closed.
End
Congratulations. You have reached the end of the tests. Found any bugs? Report it at https://github.com/CS2103AUG2017-W11-B2/main/issues. We’ll give you a cookie for finding bugs! :)
Bonus
Requirements
Make sure you are connected to the internet and are on a network that has port 25 open. Chances are many universities’s (ahem) networks block the incoming port and this won’t work. Solution? Use a tether. Trust us - it’s awesome!
Basic Functionality
- Type
starwars
or sw
- Press
Enter
.
- Enjoy!