Commit 2b3d8d5509886f139b1adb8eb4a785b7e95fd714

Authored by mjeng
1 parent 17a3102cde
Exists in master

First draft of TestCases, test underline

Showing 1 changed file with 47 additions and 27 deletions Side-by-side Diff

TestCases.tex View file @ 2b3d8d5
... ... @@ -1575,10 +1575,10 @@
1575 1575 \item[Description:]{This test case outlines the presentation layering step
1576 1576 process of a user viewing all the cards in their deck.}
1577 1577  
1578   -\item[Desired Outcome:]{The User views all the cards in their deck.}
  1578 +\item[Desired Outcome:]{The User shall be able to view all the cards in their deck.}
1579 1579 \\
1580 1580  
1581   -\item[User Goals:]{To see all pulled cards for easier editing purpose.}
  1581 +\item[User Goals:]{To see all pulled cards for easier editing purposes.}
1582 1582  
1583 1583 \item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login,
1584 1584 [A3] Add a Class, [F1] Push Flashcard, [F3] Pull Flashcard}
... ... @@ -1597,7 +1597,7 @@
1597 1597 \item
1598 1598 {UserX and UserY are registered for class TEST 101.}
1599 1599 \item
1600   - {UserX and UserY at the feed view for TEST 101.}
  1600 + {UserX and UserY are at the feed view for TEST 101.}
1601 1601 \end{itemize}
1602 1602  
1603 1603 \item[Postconditions:]
... ... @@ -1638,8 +1638,8 @@
1638 1638 {UserY shall go to their Deck View.}
1639 1639 \end{enumerate}
1640 1640  
1641   -\item[Expected Results]{For TEST1@flashy.cards the cards are listed in the
1642   - order ``Card B'', ``Card A'' and for testuser@flashy.cards they are in the
  1641 +\item[Expected Results]{For UserX the cards are listed in the
  1642 + order ``Card B'', ``Card A'' and for UserY they are in the
1643 1643 deck view as ``Card A'', ``Card B''.}
1644 1644  
1645 1645 \end{description}
1646 1646  
1647 1647  
1648 1648  
1649 1649  
1650 1650  
... ... @@ -1670,28 +1670,26 @@
1670 1670 \begin{itemize}
1671 1671 \itemsep1pt\parskip0pt\parsep0pt
1672 1672 \item
1673   - {The User has registered with the email testuser@flashy.cards.}
  1673 + {The User is logged in as UserX.}
1674 1674 \item
1675   - {The User has verified their email address.}
  1675 + {The User has enrolled in the class TEST 101.}
1676 1676 \item
1677   - {The User is logged in with the above email.}
  1677 + {The User has enrolled in the class TEST 102.}
1678 1678 \item
1679   - {The user has enrolled in the class TEST Study.}
  1679 + {The User has enrolled in the class TEST 103.}
1680 1680 \item
1681   - {The User has flashcards in their deck.}
  1681 + {The User has two flashcards in their TEST 101 deck, ``Hello, I am
  1682 +a \textbf{flashcard} and I was added first'', ``I am clearly
  1683 +the superior card''.}
  1684 +\item
  1685 + {The User has two flashcards in their TEST 102 deck, ``I hope you don't \textbf{see me}'' and ``\textbf{STUDY TIME}, dun dun dun''.}
  1686 +\item
  1687 + {The User has no flashcards in their TEST 103 deck.}
1682 1688 \end{itemize}
1683 1689  
1684 1690 \item[Postconditions:]
1685 1691 \begin{itemize}
1686 1692 \itemsep1pt\parskip0pt\parsep0pt
1687   -\item
1688   - {The User shall see a single card with blanks.}
1689   -\item
1690   - {The User shall be presented with a text box to fill in for the blank space.}
1691   -\item
1692   - {The User's response shall be stored on the server.}
1693   -\item
1694   - {The User can choose whether their response is correct or not.}
1695 1693 \end{itemize}
1696 1694  
1697 1695 \item[Trigger:]{UserX wishes to study flashcards compiled for a specific class.}
1698 1696  
1699 1697  
1700 1698  
1701 1699  
1702 1700  
1703 1701  
1704 1702  
1705 1703  
... ... @@ -1700,24 +1698,46 @@
1700 1698 \begin{enumerate}
1701 1699 \itemsep1pt\parskip0pt\parsep0pt
1702 1700 \item
1703   - {UserX shall click on the study button on top right corner.}
  1701 + {UserX shall click on ``Study'' (magnifying glass in a square) in
  1702 +the top navigation bar.}
1704 1703 \item
1705   - {The System shall present a modal that contains the flashcard and blanks to fill in.}
  1704 + {UserX shall choose to study for TEST 101.}
1706 1705 \item
1707   - {UserX shall fill in ``test'' in the blank.}
  1706 + {UserX shall click ``Fetch!''}
1708 1707 \item
1709   - {UserX shall click ``CHECK'' button to submit the response.}
  1708 + {The System shall present UserX with card, ``Hello, I am a \rule{1.5cm}{0.15mm} and I was added first''.}
1710 1709 \item
1711   - {The System shall display a new modal with the answer of the flashcard.}
  1710 + {UserX shall enter ``Flashcard'' in the Answer input box.}
1712 1711 \item
1713   - {UserX shall click ``Yes'' button. (Either YES or NO leads to the same behavior for the User)}
  1712 + {UserX shall click ``Check''.}
1714 1713 \item
1715   - {The Server saves the response and updates statistics about the flashcard.}
  1714 + {The System shall present UserX with the actual card and the card with UserX's response with ``flashcard'' and ``Flashcard'' bolded.}
1716 1715 \item
1717   - {Loop back to 2.}
  1716 + {UserX shall determine if they have properly filled in the blank. Since a
  1717 +little uppercase/lowercase difference is not a big deal, UserX shall click
  1718 +``Yes'' where asked if their response was correct.}
  1719 +\item
  1720 + {The System shall present UserX with card ``Clearly I am the superior card''
  1721 +and notify UserX that the card has no blanks.}
  1722 +\item
  1723 + {UserX shall click ``Next'' after reviewing the card.}
1718 1724 \end{enumerate}
1719 1725  
1720   -\item[Expected Results]{The workflow should be able to loop continuously.}
  1726 +\item[Expected Result:] {The System shall once again present UserX with
  1727 +``Hello, I am a \rule{1.5cm}{0.15mm} and I was added first''.}
  1728 +
  1729 +\item[Workflow:]
  1730 +\begin{enumerate}
  1731 +\setcounter{enumi}{2}
  1732 +\itemsep1pt\parskip0pt\parsep0pt
  1733 +\item
  1734 + {UserX shall select ``TEST 103'' to study.}
  1735 +\item
  1736 + {UserX shall click ``Fetch''.}
  1737 +\end{enumerate}
  1738 +
  1739 +\item[Expected Result:] {The System shall display a toast, ``Can't study;
  1740 +there aren't any cards in your deck for the selection actions.''}
1721 1741 \end{description}
1722 1742 \newpage
1723 1743