Skip to content

Commit

Permalink
add DG (#190)
Browse files Browse the repository at this point in the history
more test cases for manual testing
  • Loading branch information
bluein-green authored Nov 12, 2018
1 parent 9321ade commit 7cbf957
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion docs/DeveloperGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -948,4 +948,60 @@ _{ more test cases ... }_
.. Test case: 'sell n/NAME q/12', where NAME is the name of a drink that is in the inventory, and its quantity is less than 12. +
Expected: The message "Insufficient quantity in stock to perform operation" is displayed.

===
=== Analysing costs
. Analyse costs over a period of a day

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `costs` +
Expected: The total cost incurred *in a day* is calculated and shown. The `PURCHASE` transactions are listed in the transaction list.

. Analyse costs over a period of 7 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `costs -w` +
Expected: The total cost incurred *in 7 days* is calculated and shown. The `PURCHASE` transactions are listed in the transaction list.

. Analyse costs over a period of 30 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `costs -m` +
Expected: The total cost incurred *in 30 days* is calculated and shown. The `PURCHASE` transactions are listed in the transaction list.

=== Analysing revenue
. Analyse revenue over a period of a day

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `revenue` +
Expected: The total revenue earned *in a day* is calculated and shown. The `SALE` transactions are listed in the transaction list.

. Analyse revenue over a period of 7 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `revenue -w` +
Expected: The total revenue earned *in 7 days* is calculated and shown. The `SALE` transactions are listed in the transaction list.

. Analyse revenue over a period of 30 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `revenue -m` +
Expected: The total revenue earned *in 30 days* is calculated and shown. The `SALE` transactions are listed in the transaction list.

=== Analysing profit
. Analyse profit over a period of a day

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `profit` +
Expected: The total profit earned *in a day* is calculated and shown. The `SALE` and `PURCHASE` transactions within the time period are listed in the transaction list.

. Analyse profit over a period of 7 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `profit -w` +
Expected: The total profit earned *in 7 days* is calculated and shown. The `SALE` and `PURCHASE` transactions within the time period are listed in the transaction list.

. Analyse profit over a period of 30 days (including current day)

.. Prerequisites: There must be at least one transaction in the transaction list.
.. Test case: `profit -m` +
Expected: The total profit earned *in 30 days* is calculated and shown. The `SALE` and `PURCHASE` transactions within the time period are listed in the transaction list.

0 comments on commit 7cbf957

Please sign in to comment.