The following tests should be implemented before the code for these user-stories is complete. They will ensure that that the code for these sub-sections is correct. We haven't discovered a way to automate these tests at this time. This is simply documentation on the test cases that should be run.
Unit Tests For Following User Story
| Date: | 11/12/00 | Type of User Story (New/Fix): | New |
| Story Number: | 1 | Time Estimate: | 1 week |
| Story description: | |||
| Users must login before accessing the system. Users are verified by their netid and password. User authentication must use Bluestem or some other form of secure authentication. | |||
Definitions:
netID - This is the username that is assigned to the user through the University
Test Case Requirements
The Following User Types (or Users w/ following access permissions/titles) are needed in the system to run these test cases.
The authorized users must have valid netIDs and passwords.
Professor
Administrator
TA
Student
Unit Test Cases:
These describe a sequence of events that must pass to ensure this section of code if functioning properly. They should be run on 1 machine (automated), and on seperate machines (possibly automated? by hand?).
Test #1:
Professor attempts to access the Web-based Gradebook
Professor is directed to a login page for the Gradebook
Professor enters his correct netID & password at the login page
Professor will be returned to the Gradebook system with Professor capabilities
Test #2:
Professor attempts to access the Web-based Gradebook
Professor is directed to a login page for the Gradebook
Professor enters an incorrect netID or password at the login page
Professor is issued an error message stating he has entered an incorrect netID and/or password and instructed to try again
Test #3:
Administrator attempts to access the Web-based Gradebook
Administrator is directed to a login page for the Gradebook
Administrator enters his correct netID & password at the login page
Administrator will be returned to the Gradebook system with Administrator capabilities
Test #4:
Administrator attempts to access the Web-based Gradebook
Administrator is directed to a login page for the Gradebook
Administrator enters an incorrect netID or password at the login page
Administrator is issued an error message stating he has entered an incorrect netID and/or password and instructed to try again
Test #5:
TA attempts to access the Web-based Gradebook
TA is directed to a login page for the Gradebook
TA enters his correct netID & password at the login page
TA will be returned to the Gradebook system with TA capabilities
Test #6:
TA attempts to access the Web-based Gradebook
TA is directed to a login page for the Gradebook
TA enters an incorrect netID or password at the login page
TA is issued an error message stating he has entered an incorrect netID and/or password and instructed to try again
Test #7:
Student attempts to access the Web-based Gradebook
Student is directed to a login page for the Gradebook
Student enters his correct netID & password at the login page
Student will be returned to the Gradebook system with Student capabilities
Test #8:
Student attempts to access the Web-based Gradebook
Student is directed to a login page for the Gradebook
Student enters an incorrect netID or password at the login page
Student is issued an error message stating he has entered an incorrect netID and/or password and instructed to try again
Test #9:
An unauthorized user attempts to access the Web-based Gradebook
The unauthorized user is directed to a login page for the Gradebook
The unauthorized enters a netID and password at the login page
The unauthorized user is issued an error message stating he has entered an incorrect netID and/or password and instructed to try again
Unit Tests For Following User Story
| Date: | 11/07/00 | Type of User Story (New/Fix): | New |
| Story Number: | 6 | Time Estimate: | 2 weeks |
| Story description: | |||
| TAs and professors can view data for the courses they are involved with. | |||
Grade Listing - a specific grade type in the gradebook. For example, HW1, MIDTERM1, etc.
Class Listing - A list of classes that a professor/TA is involved with. For example, CS101, CS105, CS110, etc.
Unit Tests
Test Case Requirements
The Following User Types (or Users w/ following access permissions/titles) are needed in the system to run these test cases.
At least 1 grade listing must be listed in the class
At least 1 class must be listed in the Class Listing
The Following User Types (or Users w/ following access permissions/titles) are needed in the system to run these test cases.
Professor
TA
Unit Test Cases
Test #1:
Professor receives a Class Listing
Professor chooses an individual class from the Class Listing to view grade data
Professor is shown a Grade Listing containing all grade data for the course
Professor closes the Grade Listing
Professor again receives a Class Listing
Test #2:
TA receives a Class Listing
TA chooses an individual class from the Class Listing to view grade data
TA is shown a Grade Listing containing all grade data for the course
TA closes the Grade Listing
TA again receives a Class Listing