diff --git a/SampleData.xml b/SampleData.xml new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/src/test/data/ManualTesting/SampleData.xml b/src/test/data/ManualTesting/SampleData.xml new file mode 100644 index 000000000000..c88f59971511 --- /dev/null +++ b/src/test/data/ManualTesting/SampleData.xml @@ -0,0 +1,505 @@ + + + + 1 + 0 + Attend project meeting + 2016-11-16T00:10:00+08:00 + 2016-11-16T00:12:00+08:00 + High + priority + false + + + 2 + 0 + Go to the gym + Medium + priority + false + + + 3 + 0 + Swimming session + Low + priority + false + + + 4 + 0 + Project deadline + 2016-12-01T00:00:00+08:00 + High + false + + + 5 + 0 + Homework submission deadline + 2016-11-16T00:00:00+08:00 + Medium + false + + + 6 + 0 + Christmas shopping + 2016-12-05T00:13:00+08:00 + 2016-12-05T00:16:00+08:00 + Medium + false + + + 7 + 0 + Send out party invites + 2016-11-29T00:11:00+08:00 + 2016-11-29T00:13:00+08:00 + Medium + false + + + 8 + 0 + Create presentation slides + 2016-01-01T00:00:00+08:00 + Medium + true + + + 9 + 0 + Run marathon + 2016-01-01T00:00:00+08:00 + City Hall + Medium + Standard Chartered Marathon + false + + + 10 + 0 + Make demo video + 2016-11-19T00:10:00+08:00 + 2016-11-19T00:12:00+08:00 + Medium + false + + + 11 + 0 + Finish CS2010 PS6 + 2016-11-09T00:00:00+08:00 + CodeCrunch + High + Complete search problem + false + + + 12 + 0 + Swimming Lesson + 2016-11-26T12:00:00+08:00 + 2016-11-26T15:00:00+08:00 + Tampines Swimming Pool + Medium + Teach butterfly stroke to students + false + + + 13 + 0 + Study for CS2105 midterms + 2016-10-15T00:00:00+08:00 + National Library + High + Lectures 1 to 5 + true + + + 14 + 0 + Study for CS2010 midterms + 2016-10-26T15:00:00+08:00 + NUS Central Library + High + Lectures 1 to 6 + true + + + 15 + 0 + Watch YouTube videos + 2016-05-01T16:00:00+08:00 + At home + Low + true + + + 16 + 0 + Watch Dr Strange movie + 2016-11-09T16:00:00+08:00 + 2016-11-09T18:30:00+08:00 + Cathay JEM + Low + Stay back for 2 end credit scenes + true + + + 17 + 0 + Practice piano + 2016-11-14T15:00:00+08:00 + 2016-11-14T16:30:00+08:00 + Home + Medium + Chopin, Beethoven, Mozart scores + false + + + 18 + 0 + Bring brother to playground + 2016-11-24T12:00:00+08:00 + 2016-11-24T15:00:00+08:00 + Woodlands Blk 401 + Medium + Pick up his friends along the way + false + + + 19 + 0 + Study for CS2105 finals + 2016-11-26T00:00:00+08:00 + National Library + High + Lectures 1 to 11 + false + + + 20 + 0 + Study for CS2010 finals + 2016-11-28T00:00:00+08:00 + COM1 Level 2 + High + Lectures 1 to 11 + false + + + 21 + 0 + Practice for Math Olympiad + 2016-12-08T00:00:00+08:00 + S17 + High + Do past year papers + false + + + 22 + 0 + Bring grandparents out + 2016-12-14T12:00:00+08:00 + 2016-12-14T15:00:00+08:00 + Gardens by the Bay + Medium + Visit the Flower Dome + false + + + 23 + 0 + Set up dinner with OG + 2016-12-02T18:00:00+08:00 + 2016-12-02T20:00:00+08:00 + Bugis + Medium + Steamboat, get table for 9 + false + + + 24 + 0 + Play Call of Duty + 2016-12-03T12:00:00+08:00 + 2016-12-03T15:00:00+08:00 + Home + Low + on Playstation 4 + false + + + 25 + 0 + Print out lecture notes + 2016-10-28T12:00:00+08:00 + 2016-10-28T12:30:00+08:00 + COM1 Level 1 + Medium + Print for CS2106 + true + + + 26 + 0 + Do Math Homework 4 + 2016-11-07T19:00:00+08:00 + 2016-11-07T21:00:00+08:00 + PGP study room + High + Practice MATLAB + false + + + 27 + 0 + Buy chocolates for Easter + 2016-11-11T12:00:00+08:00 + 2016-11-11T13:00:00+08:00 + Takashimaya + Medium + Find Japanese chocolates + false + + + 28 + 0 + Pay hostel fees + 2016-11-07T12:00:00+08:00 + 2016-11-07T12:15:00+08:00 + Hostel Management Office + High + Bring credit card + false + + + 29 + 0 + Apply for vacation stay + 2016-11-18T00:00:00+08:00 + Medium + false + + + 30 + 0 + Make poster for Orbital + 2016-08-12T09:00:00+08:00 + 2016-08-12T13:00:00+08:00 + COM1 + High + Print out A3 size at printing area + true + + + 31 + 0 + Tea appreciation session + 2016-12-12T12:00:00+08:00 + 2016-12-12T16:00:00+08:00 + Teahouse @ Bugis + Medium + 300 different teas to try + false + + + 32 + 0 + Go prawning + 2016-12-19T17:00:00+08:00 + 2016-12-19T19:00:00+08:00 + Bugis + Medium + Get 2 rods and live bait + false + + + 33 + 0 + Buy new iPhone + 2016-12-21T12:00:00+08:00 + 2016-12-21T13:00:00+08:00 + Orchard Road + Medium + get iPhone 7 Plus 128GB + false + + + 34 + 0 + Deposit money in bank + 2016-12-04T13:00:00+08:00 + 2016-12-04T13:30:00+08:00 + DBS Bank + Medium + Deposit paycheck + false + + + 35 + 0 + Book flight tickets + 2016-11-22T15:00:00+08:00 + Online + Medium + Book 2 tickets to San Francisco + false + + + 36 + 0 + Buy new camera for trip + 2016-11-22T17:00:00+08:00 + Orchard Road + Medium + Get a GoPro Hero 5 + false + + + 37 + 0 + Go to motor exhibition + 2016-12-19T10:00:00+08:00 + 2016-12-19T15:00:00+08:00 + Suntec Convention Center + Low + Bring $50 for tickets + false + + + 38 + 0 + Go grocery shopping + 2016-11-10T13:00:00+08:00 + 2016-11-10T16:00:00+08:00 + NTUC Fairprice + Medium + Replace toiletries and food + false + + + 39 + 0 + Buy souvenirs for foreign guests + 2016-12-27T12:00:00+08:00 + 2016-12-27T15:00:00+08:00 + Marina Bay Sands + Medium + Get Singapore specific items + false + + + 40 + 0 + Watch concert + 2016-12-29T19:00:00+08:00 + Esplanade + Low + Bring jacket + false + + + 41 + 0 + Submit assignment + 2016-09-01T00:00:00+08:00 + High + true + + + 42 + 0 + Finish tutorial + 2016-09-04T00:00:00+08:00 + Medium + true + + + 43 + 0 + Buy Turkey for Thanksgiving + 2016-12-22T00:00:00+08:00 + Cold Storage + Medium + false + + + 44 + 0 + Buy new furniture + 2016-12-26T12:00:00+08:00 + 2016-12-26T15:00:00+08:00 + IKEA Tampines + Medium + Get a chair and study lamp + false + + + 45 + 0 + Play badminton + 2016-12-06T12:00:00+08:00 + 2016-12-06T14:00:00+08:00 + Kovan Sports Hub + Low + Bring own shuttlecocks + false + + + 46 + 0 + Play tennis + 2016-12-05T12:00:00+08:00 + 2016-12-05T14:00:00+08:00 + Kovan Sports Hub + Low + Bring own tennis balls + false + + + 47 + 0 + Go for fish spa + 2016-12-08T13:00:00+08:00 + 2016-12-08T15:00:00+08:00 + Bugis + Low + Bring towel + false + + + 48 + 0 + Go for massage + 2016-12-02T12:00:00+08:00 + 2016-12-02T15:00:00+08:00 + JB + Low + Get premium package + false + + + 49 + 0 + Bring dog to vet + 2016-11-09T13:00:00+08:00 + 2016-11-09T14:00:00+08:00 + Clementi Vet + High + Dog displaying allergy symptoms + false + + + 50 + 0 + Return library books + 2016-12-07T00:00:00+08:00 + High + false + + diff --git a/src/test/data/ManualTesting/TestScript.md b/src/test/data/ManualTesting/TestScript.md new file mode 100644 index 000000000000..560b8ca6691a --- /dev/null +++ b/src/test/data/ManualTesting/TestScript.md @@ -0,0 +1,122 @@ +# Manual Scripted Testing + +## How to load the sample data + +1. Download saavytasker.jar +1. Download the [SampleData.xml](/src/test/data/ManualTesting/SampleData.xml) file +2. Make a copy, and rename it is to `savvytasker.xml` +3. Copy `savvytasker.xml` and overwrite the same named file \data\savvytasker.xml +4. Launch savvytasker.jar + +## Test script + +### List tasks + +- List all tasks: `list` or Ctrl + L + +> Lists all currently unmarked/ongoing tasks, according to due date. +> All floating tasks are listed after tasks with dates, according to the order they were entered. + +- List all tasks by priority level: `list priority level` or Ctrl + P + +- List all marked tasks: `list archived` or Ctrl + A +> Lists all marked/completed tasks. + +### Adding new tasks + +- Add a task: `add Buy groceries` +> New task will be added to end of unmarked list, with a default `Medium` priority level (yellow in color). +> Task will be added as a `Floating Task`. + +- Add a task with a deadline and High priority level: `add Submit assignment e/11-11-16 8pm p/High` +> New task will be added, with a `High` priority level (red in color), and end date of 11 Nov 2016, 8pm. +> Start date will be defaulted to current date 12am. + +- Add a task with a Low priority level: `add Watch a movie p/Low` +> New task will be added, with a `Low` priority level (green in color). +> Task wil be added as a `Floating Task`. + +- Add a task with a start date, end date, location, and description: `add Attend dance class s/8-11-16 5pm e/8-11-16 7pm l/Bugis dance studio d/Salsa class` +> New task will be added, with respective start date, end date, location, and description. +> Task will be added to the respective dates on the calendar. + +- Add an overdue task: `add Study for midterms s/6-10-16` +> New task will be added, end date will be defaulted to 23:59:59 of the start date. +> Task will be added as an overdue task. + +### Deleting tasks + +- Delete a task: `delete 1` +> Removes the task listed at index 1 (Go to the gym). + +- Delete multiple tasks: `delete 1 2 3` +> Removes the tasks listed at indexes 1, 2 and 3 (Swimming session, Project deadline, Homework submission deadline). + +### Undo commands + +- Undo last command: `undo` or Ctrl + Z +> The last 'delete 1 2 3' command is undone, and all 3 deleted tasks are added back. + +### Redo commands + +- Redo the last undone command: `redo` or Ctrl + Y +> The last undone `delete 1 2 3` command is redone, so all 3 tasks are deleted again. + +### Modify tasks + +- Modify a task: `modify 1 t/Buy working supplies s/11-10-16 3pm e/11-10-16 4pm l/Popular Bookstore d/Pens p/Low` +> Changes the task listed at index 1 (Christmas shopping) to Buy working supplies, with new start date Nov 10 3pm and end date Nov 10 4pm, and priority level changed to 'Low'. +> Also adds a new location: Popular Bookstore, and new description: Pens. + +### Alias command + +- Alias a keyword: `alias k/pjm r/Project Meeting` `add pjm` +> Future instances of `pjm` will be recognized as `Project Meeting`. +> A new task 'Project Meeting' will be added to the end of the list. + +- Alias a command: `alias k/++ r/add` `++ pjm` +> Future instances of `++` will be recognized as an `add` command. +> A new task `Project Meeting` will be added to the end of the list. + +- View aliased keys: `list alias` or Ctrl + I +> Lists all aliased keys (pjm, ++). + +### Unalias command + +- Unalias an aliased keyword: `unalias pjm` `add pjm` +> Future instances of `pjm` will no longer be recognized as `Project Meeting`. +> A new task `pjm` will be added to the end of the list. + +### Mark a task + +- Mark a completed task: `mark 1` +> Marks the task listed at index 1 (Buy working supplies). +> The newly marked task is relisted on the archived list. + +### Unmark a task + +- Unmark a previously marked task: `list archived` `unmark 1` +> Shows the list of marked/archived tasks. +> Unmarks the task listed at index 1 (Buy working supplies). +> The newly unmarked task relists on the unmarked task list. + +### Find a task + +- Find tasks containing keywords: `find gro` +> Shows all unmarked/unarchived tasks containing the keyword `gro` (Bring brother to playground, Go grocery shopping, Buy groceries). + +- Find tasks containing exact match: `find t/exact buy groceries` +> Shows the task(s) containing the exact phrase: `buy groceries`, not case sensitive. + +### Clear all tasks + +- Clear all tasks: `clear` or Ctrl + D +> Deletes all data from all lists. + +### Other commands + +- View help: `help` or Ctrl + H +> Opens the help window. + +- Exit the app: `exit` or Ctrl + Q +> Exits the SaavyTasker app.