Commit ede1fa6077680645e8ee27b4d676648f8a23abb9

Authored by mjeng
1 parent 600135c038
Exists in master

Did all the As, F1, F2

Showing 1 changed file with 93 additions and 61 deletions Side-by-side Diff

TestCases.tex View file @ ede1fa6
... ... @@ -114,7 +114,8 @@
114 114 \item
115 115 {The System shall display a registration form.}
116 116 \item
117   - {UserX shall fill in the form with email UserX@flashy.cards and password ``mynameisuserx''.}
  117 + {UserX shall fill in the form with email \mbox{UserX@flashy.cards} and password
  118 +\mbox{``mynameisuserx''}.}
118 119 \item
119 120 {The System shall successfully receive the correct credentials and send an
120 121 email to the User's address with a link to validate the User's email address
... ... @@ -132,7 +133,7 @@
132 133 \item
133 134 {The System shall present UserX Login screen.}
134 135 \item
135   - {UserX shall once again login with ``UserX@flashy.cards'' and ``mynameisuserx''.}
  136 + {UserX shall once again login with \mbox{``UserX@flashy.cards''} and \mbox{``mynameisuserx''}.}
136 137 \end{enumerate}
137 138  
138 139 \item [Expected Result:]{UserX shall see Add Class page without a toast asking
... ... @@ -167,8 +168,8 @@
167 168 \item[Preconditions:]
168 169 \begin{itemize}
169 170 \item
170   - {The User has created an account before with email ``UserX@flashy.cards'' with
171   -password ``mynameisuserx''.}
  171 + {The User has created an account before with email \mbox{``UserX@flashy.cards''} with
  172 +password \mbox{``mynameisuserx''}.}
172 173 \end{itemize}
173 174  
174 175 \item[Postconditions:]
... ... @@ -184,7 +185,8 @@
184 185 \begin{enumerate}
185 186 \itemsep1pt\parskip0pt\parsep0pt
186 187 \item
187   - {UserX shall enter their email ``UserX@flashy.cards'' and password ``mynameisuserx''.}
  188 + {UserX shall enter their email \mbox{``UserX@flashy.cards''} and password
  189 +\mbox{``mynameisuserx''}.}
188 190 \item
189 191 {The System shall authenticate UserX's email and password and checks if UserX is active.}
190 192 \item
... ... @@ -196,8 +198,8 @@
196 198 \item [Alternate Workflow A:]
197 199 \begin{enumerate}
198 200 \item
199   - {UserX accidentally puts in the credentials ``UserX@flashy.cards'',
200   -``hahahaha'' and clicks the ``Login'' button.}
  201 + {UserX accidentally puts in the credentials \mbox{``UserX@flashy.cards''},
  202 +\mbox{``hahahaha''} and clicks the ``Login'' button.}
201 203 \item
202 204 {The System shows UserX the site login page with a message reading
203 205 ``Invalid username or password!!''.}
... ... @@ -209,8 +211,8 @@
209 211 \item [Alternate Workflow B:]
210 212 \begin{enumerate}
211 213 \item
212   - {UserX accidentally puts in the credentials ``NotUserX@flashy.cards'',
213   -``mynameisuserx'' and clicks the ``Login'' button.}
  214 + {UserX accidentally puts in the credentials \mbox{``NotUserX@flashy.cards''},
  215 +\mbox{``mynameisuserx''} and clicks the ``Login'' button.}
214 216 \item
215 217 {The System shows UserX the site login page with a message reading
216 218 ``Invalid username or password!!''.}
... ... @@ -222,8 +224,8 @@
222 224 \item [Alternate Workflow C:]
223 225 \begin{enumerate}
224 226 \item
225   - {UserX accidentally puts in the credentials ``theflash@flashy.cards'',
226   -``MyNameIsUserX'' and clicks the ``Login'' button.}
  227 + {UserX accidentally puts in the credentials \mbox{``theflash@flashy.cards''},
  228 +\mbox{``MyNameIsUserX''} and clicks the ``Login'' button.}
227 229 \item
228 230 {The System shows UserX the site login page with a message reading
229 231 ``Invalid username or password!!''.}
... ... @@ -430,10 +432,6 @@
430 432 \item[Dependency Use Cases:]{[A1] User Registration, [A2] User Login}
431 433 \\
432 434  
433   -\item[Details:]{The user provides their current password and a new password
434   -in a form. If the current password is correct, the system updates their
435   -password to the requested new password.}
436   -
437 435 \item[Priority Level:]{``Must''}
438 436  
439 437 \item[Status:]{Implemented}
... ... @@ -444,7 +442,7 @@
444 442 \item
445 443 {The User is logged in as UserX.}
446 444 \item
447   - {The User knows the current password (``oldPassword'').}
  445 + {The User knows the current password \mbox{``mynameisuserx''}.}
448 446 \item
449 447 {The User is at the Settings page.}
450 448 \end{itemize}
451 449  
452 450  
... ... @@ -465,17 +463,51 @@
465 463 \begin{enumerate}
466 464 \itemsep1pt\parskip0pt\parsep0pt
467 465 \item
468   - {UserX shall enter their current password ``oldPassword'' and the desired
469   -new password ``newPassword'' (twice) in the ``Change Password'' form.}
  466 + {UserX shall enter their current password \mbox{``mynameisuserx''} and the desired
  467 +new password \mbox{``newPassword''} (twice) in the ``Change Password'' form.}
470 468 \item
471 469 {UserX shall click the ``Submit'' button.}
472 470 \item
473 471 {The System shall check UserX's current password.}
474 472 \item
475   - {The System shall update the UserX's current password ``oldPassword'' to the new password ``newPassword''.}
  473 + {The System shall update the UserX's current password \mbox{``mynameisuserx''}
  474 +to the new password \mbox{``newPassword''}.}
476 475 \end{enumerate}
477 476  
478   -\item[Expected Result:] {User's password is changed from ``oldPasswrd'' to ``newPassword''.}
  477 +\item[Expected Result:] {User's password is changed from \mbox{``mynameisuserx''}
  478 +to \mbox{``newPassword''}.}
  479 +
  480 +\item[Alternate Workflow A:]
  481 +\begin{enumerate}
  482 +\itemsep1pt\parskip0pt\parsep0pt
  483 +\item
  484 + {UserX shall enter an incorrect current password \mbox{``MyNameIsUserX''} and the desired
  485 +new password \mbox{``newPassword''} (twice) in the ``Change Password'' form.}
  486 +\item
  487 + {UserX shall click the ``Submit'' button.}
  488 +\item
  489 + {The System shall ensure validity of new password.}
  490 +\item
  491 + {The System shall check UserX's current password.}
  492 +\end{enumerate}
  493 +
  494 +\item[Expected Result:] {The System shall display a toast ``Your old password is not correct''.}
  495 +
  496 +\item[Workflow:]
  497 +\begin{enumerate}
  498 +\itemsep1pt\parskip0pt\parsep0pt
  499 +\item
  500 + {UserX shall enter their current password \mbox{``mynameisuserx''} and the desired
  501 +new password \mbox{``newPass''} (twice) in the ``Change Password'' form.}
  502 +\item
  503 + {UserX shall click the ``Submit'' button.}
  504 +\item
  505 + {The System shall ensure validity of new password.}
  506 +\end{enumerate}
  507 +
  508 +\item[Expected Result:] {The System shall display error text ``New password
  509 +must be at least 8 characters.''}
  510 +
479 511 \end{description}
480 512 \newpage
481 513  
482 514  
483 515  
484 516  
... ... @@ -484,28 +516,19 @@
484 516 \subsection{[A6] Password Reset}
485 517  
486 518 \begin{description}
487   -\item[Description:]{The User shall be able to reset their password without
488   -being logged in }
  519 +\item[Description:]{This test case outlines the presentation step layering process of
  520 +a user requesting a password reset without logging in.}
489 521  
490 522 \item[Desired Outcome:]{The User's password shall be changed to one that
491   -they remember}
  523 +they remember.}
492 524 \\
493 525  
494 526 \item[User Goals:]{The User does not know their current password but wants
495   -to log into the site}
  527 +to log into the site.}
496 528  
497 529 \item[Dependency Use Cases:]{[A1] User Registration}
498 530 \\
499 531  
500   -\item[Details:]{The User provides their email in a password reset form. If
501   -the address is valid, the site sends a password reset link with a random
502   -token to that address. If the address is invalid, the site does not send
503   -a link. For security reasons, we do not reveal to the user whether the
504   -email address was valid, and we expire the link after 24 hours. When a
505   -user visits the link emailed to them, they are able to specify a new
506   -password in a form. When they submit the form, their password is updated
507   -if the token is correct. }
508   -
509 532 \item[Priority Level:]{``Must''}
510 533  
511 534 \item[Status]{Implemented}
512 535  
... ... @@ -526,10 +549,9 @@
526 549 {UserX can log in with the new password.}
527 550 \end{itemize}
528 551  
529   -\item[Trigger]{UserX forgot their password and wants to access the site.}
  552 +\item[Trigger:]{UserX forgot their password and wants to access the site.}
530 553  
531 554 \item[Workflow:]
532   -
533 555 \begin{enumerate}
534 556 \itemsep1pt\parskip0pt\parsep0pt
535 557 \item
... ... @@ -537,7 +559,7 @@
537 559 \item
538 560 {The System shall prompt the user for their current email.}
539 561 \item
540   - {UserX shall submit their email ``UserX@flashy.cards''.}
  562 + {UserX shall submit their email \mbox{``UserX@flashy.cards''}.}
541 563 \item
542 564 {The System shall check if an account exists with the email entered by UserX.}
543 565 \item
544 566  
545 567  
546 568  
547 569  
... ... @@ -550,26 +572,27 @@
550 572 \item
551 573 {The System shall render a form that will prompt the user for a new password.}
552 574 \item
553   - {UserX shall provide a new password, ``newPassword'', in the form.}
  575 + {UserX shall provide a new password, \mbox{``newPassword''}, in the form.}
554 576 \item
555 577 {The System shall change the password associated with the user's email.}
556 578 \item
557   - {UserX shall navigate back to the login page and enter ``UserX@flashy.cards''
558   -with the old password ``mynameisuserx''.}
  579 + {UserX shall navigate back to the login page and enter \mbox{``UserX@flashy.cards''}
  580 +with the old password \mbox{``mynameisuserx''}.}
559 581 \item
560 582 {The System shall display ``Invalid username or password!''}
561 583 \item
562   - {UserX shall login as ``UserX@flashy.cards'' with the password ``newPassword''.}
  584 + {UserX shall login as \mbox{``UserX@flashy.cards''} with the password \mbox{``newPassword''}.}
563 585 \end{enumerate}
564 586  
565   -\item[Expected Result:] {The login shall succeed.}
  587 +\item[Expected Result:] {UserX shall be logged in.}
566 588  
567 589 \item[Alternate Workflow:]
568 590 \begin{enumerate}
569 591 \setcounter{enumi}{4}
570 592 \itemsep1pt\parskip0pt\parsep0pt
571 593 \item
572   - {If no such account exists, the System shall display a modal display ``Cannot find account.'' to UserX.}
  594 + {If no such account exists, the System shall display an error message
  595 +``Enter a valid email!'' to UserX.}
573 596 \end{enumerate}
574 597  
575 598 \item[Expected Result:] {UserX's password will not be reset.}
... ... @@ -595,7 +618,7 @@
595 618  
596 619 \item[Priority Level:]{``Should''}
597 620  
598   -\item[Status:]{Implemented}
  621 +\item[Status:]{Deferred (see Add a Class)}
599 622  
600 623 \item[Preconditions:]
601 624 \begin{itemize}
602 625  
... ... @@ -645,14 +668,14 @@
645 668 \subsection{[A8] User Logout}
646 669  
647 670 \begin{description}
648   -\item[Description:]{The User shall be able to log out of his/her account on
649   -the site.}
  671 +\item[Description:]{This test case outlines the presentation layering step process
  672 +of a user logging out from their account.}
650 673  
651 674 \item[Desired Outcome:]{The User's information and data will no longer be
652 675 accessible after logging out. }
653 676  
654   -\item[User Goals:]{The User is done with his/her session of using the
655   -website, and wants to make sure others cannot access the data in his/her
  677 +\item[User Goals:]{The User is done with their session of using the
  678 +website, and wants to make sure others cannot access the data in their
656 679 account.}
657 680  
658 681 \item[Dependency Use Cases:] {[A1] User Registration, [A2] User Login}
659 682  
660 683  
661 684  
662 685  
663 686  
664 687  
... ... @@ -662,25 +685,35 @@
662 685  
663 686 \item[Status:]{Implemented}
664 687  
665   -\item[Preconditions:]{The user is logged into their account.}
  688 +\item[Preconditions:]
  689 +\begin{itemize}
  690 +\itemsep1pt\parskip0pt\parsep0pt
  691 +\item
  692 +{The user is logged in as UserX.}
  693 +\end{itemize}
666 694  
667   -\item[Postconditions:]{The user's data can no longer be accessed.}
  695 +\item[Postconditions:]
  696 +\begin{itemize}
  697 +\itemsep1pt\parskip0pt\parsep0pt
  698 +\item
  699 +{The user's data can no longer be accessed.}
  700 +\end{itemize}
668 701  
669   -\item[Trigger:]
  702 +\item[Trigger:] {UserX does not currently want access to the site and does
  703 +not want others tampering with their account.}
670 704  
671 705 \item[Workflow:]
672   -
673 706 \begin{enumerate}
674 707 \itemsep1pt\parskip0pt\parsep0pt
675 708 \item
676   - {UserX shall click the ``Logout'' button.}
  709 + {UserX shall click ``Logout'' (power button) in the top right.}
677 710 \item
678   - {The System shall logs out UserX.}
  711 + {The System shall log out UserX.}
679 712 \item
680 713 {The System shall redirect UserX to the login page.}
681 714 \end{enumerate}
682 715  
683   -\item[Expected Result:] {User is logged out and is redirected to the login page.}
  716 +\item[Expected Result:] {UserX is logged out and on the login page.}
684 717 \end{description}
685 718 \newpage
686 719  
... ... @@ -761,7 +794,7 @@
761 794 \begin{enumerate}
762 795 \itemsep1pt\parskip0pt\parsep0pt
763 796 \item
764   - {UserX shall select ``Settings'' button from the top header.}
  797 + {UserX shall select ``Settings'' (gear) from the top right.}
765 798 \item
766 799 {The System shall display a settings screen.}
767 800 \item
... ... @@ -807,7 +840,7 @@
807 840 \item
808 841 {The User is logged as UserX.}
809 842 \item
810   -{The User is logged in a different browser session as UserY.}
  843 +{The User is logged in a different browser session as UserY (see Testing Notes).}
811 844 \item
812 845 {UserX and UserY have added the class TEST 101.}
813 846 \item
... ... @@ -883,7 +916,7 @@
883 916 The new flashcard will show up on UserY's live feed on class TEST 101
884 917 without checkmark and pencil icon.}
885 918  
886   -\item[Alternative Workflow:]
  919 +\item[Alternate Workflow:]
887 920 \begin{enumerate}
888 921 \setcounter{enumi}{2}
889 922 \itemsep1pt\parskip0pt\parsep0pt
... ... @@ -895,7 +928,7 @@
895 928  
896 929 \item[Expected Result:] {Blank flashcard will not be added to UserX's deck or to the live feed of TEST 101.}
897 930  
898   -\item[Alternative Workflow:]
  931 +\item[Alternate Workflow:]
899 932 \begin{enumerate}
900 933 \setcounter{enumi}{2}
901 934 \itemsep1pt\parskip0pt\parsep0pt
... ... @@ -968,7 +1001,7 @@
968 1001 \item
969 1002 {UserX shall be able to change the text to ``Edit has been made''.}
970 1003 \item
971   - {UserX shall click 'Save'}
  1004 + {UserX shall click ``Save Changes''.}
972 1005 \item
973 1006 {The System shall hide the modal from UserX.}
974 1007 \end{enumerate}
... ... @@ -976,7 +1009,6 @@
976 1009 \item[Expected Results:]{The selected flashcard's text shall be changed to ``Edit has been made''.}
977 1010  
978 1011 \item[Alternative Workflow A:]
979   -
980 1012 \begin{enumerate}
981 1013 \itemsep1pt\parskip0pt\parsep0pt
982 1014 \item
... ... @@ -988,7 +1020,7 @@
988 1020 \item
989 1021 {UserX shall be able to change the bolded text from ``edit2'' to ``fun'' by highlighting the words and click blank words.}
990 1022 \item
991   - {UserX shall click 'Save'}
  1023 + {UserX shall click ``Save Changes''.}
992 1024 \item
993 1025 {The System shall hide the modal from UserX.}
994 1026 \item