Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #37

Open
rhyzue opened this issue Aug 20, 2019 · 6 comments
Open

Testing #37

rhyzue opened this issue Aug 20, 2019 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@rhyzue
Copy link
Owner

rhyzue commented Aug 20, 2019

Preconditions: No .db files present
Steps:

  1. Add item, add log, add reorder
  2. Remove reorder, close app, open and check info
  3. Remove log, close app, open and check info
  4. Remove item, close app, open and check info
@rhyzue rhyzue added the documentation Improvements or additions to documentation label Aug 20, 2019
@rhyzue
Copy link
Owner Author

rhyzue commented Aug 20, 2019

Preconditions: Has no .db files present
Steps:

  1. Add 15+ items, check that table is able to scroll down
  2. Close app and reopen
  3. Check info in the items
  4. Star a few items and sort by starred
  5. Search for an item

@rhyzue
Copy link
Owner Author

rhyzue commented Aug 20, 2019

Preconditions: N/A
Steps:

  1. Add item with extremely long description
  2. Check that description displays
  3. Close and reopen, check that description saved correctly

@rhyzue
Copy link
Owner Author

rhyzue commented Aug 20, 2019

Preconditions: N/A
Steps:

  1. Add 15+ logs for an items
  2. Edit a log
  3. Check, close and reopen
  4. Edit another log, delete a log
  5. Check, close and reopen

@Fraisin
Copy link
Collaborator

Fraisin commented Aug 20, 2019

Algorithm Testing
0 Consumption Tests

  • Add item and do not log anything. The ADC should be 0.
  • Add item and log increase in quantity either directly or through reorder box. ADC should still be 0.
  • Add reorders before the first, ONLY non-reorder log. ADC should still be 0.
  • Add item with combination of reorders and increase logs. ADC should be 0.

Basic Calculation Tests

  • Add item, log decreases in quantity and manually check ADC is correct.
  • Add item with combination of reorders and decreases, and manually check ADC.
  • Add item with combination of increases and decreases, and manually check ADC.
  • Add item with combination of reorders, increases & decreases.

Misc

  • Ensure that numbers are accurately recalculated after either of the two:
  1. Adding/Editing/Deleting non-reorder type logs
  2. Adding/Editing/Deleting reorder-type logs

@rhyzue
Copy link
Owner Author

rhyzue commented Aug 21, 2019

Preconditions: N/A
Steps:

  1. Add an item with the characters "-1234-" in its name and description, check that it saves in database
  2. Do same with edit

@rhyzue rhyzue changed the title Tests to try Testing Aug 21, 2019
@Fraisin
Copy link
Collaborator

Fraisin commented Aug 21, 2019

Notification Testing

  • Check on an item's reorder date if a notification appears or not
  • For easier testing (so we don't have to wait for the actual day to arrive), change the string that represents today to be whatever the reorder date is.
  • Check if notification is still there the next day, and the day after that, and so on
  • If the user deletes a notification on its reorder date, it shouldn't be deleted until the next day arrives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants