From 99912e8a62813a8ac62d6f9d5515fc1457227ad9 Mon Sep 17 00:00:00 2001 From: mjeng Date: Fri, 5 Jun 2015 04:06:32 -0400 Subject: [PATCH] A1, A2 --- TestCases.tex | 65 +++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/TestCases.tex b/TestCases.tex index 99b24a7..d07b224 100644 --- a/TestCases.tex +++ b/TestCases.tex @@ -108,25 +108,35 @@ website's activities.} \item[Trigger:]{UserX wants to start creating flashcards for a class.} \item[Workflow:] - \begin{enumerate} \item {UserX shall click the ``Sign Up'' button.} \item {The System shall display a registration form.} \item - {UserX shall fill in the form with email testuser@flashy.cards and password ``test''.} + {UserX shall fill in the form with email UserX@flashy.cards and password ``mynameisuserx''.} +\item + {The System shall successfully receive the correct credentials and send an +email to the User's address with a link to validate the User's email address +and displays the Add Class page to the User.} \item - {The System shall successfully receive the correct credentials and send an email to the User's address with a link to validate the User's email address and displays the Add Class page to the User.} + {The System shall display a toast ``Please verify your email address! RESEND +VERIFICATION EMAIL''.} \item {UserX receives an email with a link to verify their email. The - User clicks the link.} + User clicks the link (see Testing Notes).} +\item + {The System shall mark UserX's email as valid.} \item - {The Server marks the user's email as valid and saves the User object - again.} + {UserX shall click ``Logout'' (power button) in the top left corner.} +\item + {The System shall present UserX Login screen.} +\item + {UserX shall once again login with ``UserX@flashy.cards'' and ``mynameisuserx''.} \end{enumerate} -\item [Expected Results:]{UserX's account is now active (registered with the system).} +\item [Expected Result:]{UserX shall see Add Class page without a toast asking +UserX to verify their email.} \end{description} \newpage @@ -142,7 +152,7 @@ process of a user logging into the application.} \item[Desired Outcome:]{The User shall be able to provide their email address and password to access their courses and flash cards. The User shall gain access to the list of the courses they have added, and be able to review -the flash cards they have added to their decks.} +the flashcards they have added to their decks.} \item[User Goals:]{The User wants to resume use of the site on another device, or use the site after logging out.} @@ -157,7 +167,8 @@ device, or use the site after logging out.} \item[Preconditions:] \begin{itemize} \item - {The User has created an account before with email ``testuser@flashy.cards'' with password ``test''.} + {The User has created an account before with email ``UserX@flashy.cards'' with +password ``mynameisuserx''.} \end{itemize} \item[Postconditions:] @@ -173,7 +184,7 @@ device, or use the site after logging out.} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item - {UserX shall enter their email ``testuser@flashy.cards'' and password ``test''.} + {UserX shall enter their email ``UserX@flashy.cards'' and password ``mynameisuserx''.} \item {The System shall authenticate UserX's email and password and checks if UserX is active.} \item @@ -182,12 +193,40 @@ device, or use the site after logging out.} \item [Expected Result:] {The User is brought to the page ``Add Class''.}\\ -\item [Alternate Workflow:] +\item [Alternate Workflow A:] +\begin{enumerate} +\item + {UserX accidentally puts in the credentials ``UserX@flashy.cards'', +``hahahaha'' and clicks the ``Login'' button.} +\item + {The System shows UserX the site login page with a message reading +``Invalid username or password!!''.} +\end {enumerate} + +\item [Expected Result:] + {The User is not able to login.} \\ + +\item [Alternate Workflow B:] +\begin{enumerate} +\item + {UserX accidentally puts in the credentials ``NotUserX@flashy.cards'', +``mynameisuserx'' and clicks the ``Login'' button.} +\item + {The System shows UserX the site login page with a message reading +``Invalid username or password!!''.} +\end {enumerate} + +\item [Expected Result:] + {The User is not able to login.} \\ + +\item [Alternate Workflow C:] \begin{enumerate} \item - {UserX accidentally puts in the wrong credentials and clicks the ``Login'' button.} + {UserX accidentally puts in the credentials ``theflash@flashy.cards'', +``MyNameIsUserX'' and clicks the ``Login'' button.} \item - {The System shows UserX the site login page with a text message reading ``Invalid username or password!!'' displayed in the log in text box.} + {The System shows UserX the site login page with a message reading +``Invalid username or password!!''.} \end {enumerate} \item [Expected Result:] -- 1.9.1