Sei sulla pagina 1di 6

Lab 12: Black Box Test Plan

Test Overview
To run the tests:
1. Right click on PackSchedulerGUI class in the Package Explorer.
2. Select Run As > Java Application

All tests files should be located in the test-files/ folder.

If you run all tests independently, you can close the GUI between each test. However, the tests are structured so that they may be
run in order without shutting down the GUI.

Test Initialization
Each test should start with the following steps:
1. Log in as a registrar using the id “registrar” and password “Regi5tr@r”
2. Click on Student Directory button
3. Click on Load Student Directory button
4. Load test-files/student_records.txt. Click Select button.
5. Click Faculty Directory button
6. Click on Load Faculty Directory button
7. Load test-files/faculty_records_extended.txt. Click Select button.
8. Click Course Catalog button
9. Click on Load Course Catalog button
10. Load test-files/course_records.txt. Click Select button.
11. Logout.
.
Test ID Description Expected Results Actual Results

Test 1: Precondition: None The user should have nothing The user should have nothing
Login to in their schedule (the top box) in their schedule (the top box)
faculty On the login screen type the following:
with no ● User ID: awitt The fields in the middle section The fields in the middle section
classes ● Password: pw should be empty and the should be empty and the
Hit Login bottom box should be empty bottom box should be empty
as well. as well.

Check Results

Test 2: Precondition: None The user should have one The user should have one
Login to course in their schedule: course in their schedule:
faculty On the login screen type the following: ● CSC 116, 001, Intro to ● CSC 116, 001, Intro to
with ● User ID: jregistrar Programming - Java, Programming - Java,
classes ● Password: Regi5tr@r MW 9:10AM-11:00AM, MW 9:10AM-11:00AM,
Hit Login 10 10

Check Results The fields in the middle section The fields in the middle section
should be empty and the should be empty and the
Click Faculty Directory button bottom box and the bottom box bottom box and the bottom box
Add the following faculty member: should be empty as well. should be empty as well.
● Jessica, Young, jdyoung2,
jessica_schmidt@ncsu.edu, pw, pw, 3 The middle section should now The middle section should now
Click Course Catalog button have filled in fields: have filled in fields:
Click on Load Course Catalog button ● Name: CSC 116 ● Name: CSC 116
Load test-files/course_records.txt. Click Select ● Section: 001 ● Section: 001
● Title: Intro to ● Title: Intro to
button.
Programming - Java Programming - Java
● Instructor: jdyoung2 ● Instructor: jdyoung2
Hit Logout ● Credits: 3 ● Credits: 3
● Meeting: MW 9:10AM- ● Meeting: MW 9:10AM-
On the login screen type the following: 11:00AM 11:00AM
● User ID: jdyoung2 ● Enrollment Cap: 10 ● Enrollment Cap: 10
● Password: pw ● Open Seats: 10 ● Open Seats: 10
Hit Login ● Waitlist: 0 ● Waitlist: 0

Check Results

Select the first row in the top box

Check Results

Test 3: Preconditions: None The middle section should The middle section should
Checking On the login screen type: contain the following contain the following
faculty ● User ID: zking information: information:
schedule ● Password: pw ● Name: CSC 116 ● Name: CSC 116
after Click Login ● Section: 001 ● Section: 001
student ● Title: Intro to ● Title: Intro to
adds Select the first course entry in the top box and click Programming - Java Programming - Java
class Add Course, then click Logout ● Instructor: jdyoung2 ● Instructor: jdyoung2
● Credits: 3 ● Credits: 3
On the login screen type: ● Meeting: MW 9:10AM- ● Meeting: MW 9:10AM-
● User ID: jdyoung2 11:00AM 11:00AM
● Password: pw ● Enrollment Cap: 10 ● Enrollment Cap: 10
Click Login ● Open Seats: 9 ● Open Seats: 9
Click on the first entry of the schedule ● Waitlist: 0 ● Waitlist: 0

Check Results The bottom section should The bottom section should
contain one entry: contain one entry:
● First Name: Zahir ● First Name: Zahir
● Last Name: King ● Last Name: King
● Student ID: zking ● Student ID: zking

Test 4: Precondition: None 10 students in directory 10 students in directory


Load starting with daustin and starting with daustin and
Student ending with gstone ending with gstone
Directory Log in as a registrar using the id “registrar” and
password “Regi5tr@r”
Click on Student Directory button
Click on Load Student Directory button
Load test-files/expected_student_records.txt. Click
Cancel button.
Logout

Test 5: Precondition: None 10 students in directory 10 students in directory


Save starting with daustin and starting with daustin and
Student Log in as a registrar using the id “registrar” and ending with gstone ending with gstone
Directory password “Regi5tr@r”
Click on Student Directory button
Click on Save Student Directory button
Click Cancel button.
Logout

Test 6: Precondition: None 8 faculty in directory starting 8 faculty in directory starting


Load with awitt and ending with with awitt and ending with
Faculty Log in as a registrar using the id “registrar” and lwalls lwalls
Directory password “Regi5tr@r”
Click Faculty Directory button
Click on Load Faculty Directory button
Load test-files/empty_faculty_records_extended.txt.
Click Cancel button.
Logout

Test 7: Precondition: None 8 faculty in directory starting 8 faculty in directory starting


Save with awitt and ending with with awitt and ending with
Faculty Log in as a registrar using the id “registrar” and lwalls lwalls
Directory password “Regi5tr@r”
Click Faculty Directory button
Click on Save Faculty Directory button
Click Cancel button.
Logout

Test 8: Precondition: None 8 courses in catalog starting 8 courses in catalog starting


Load with CSC116 and ending with with CSC116 and ending with
Course Log in as a registrar using the id “registrar” and CSC230 CSC230
Catalog password “Regi5tr@r”
Click Course Catalog button
Click on Load Course Catalog button
Load test-files/course_records.txt. Click Select
button.
Logout.

Test 9: Precondition: None 8 courses in catalog starting 8 courses in catalog starting


Save with CSC116 and ending with with CSC116 and ending with
Course Log in as a registrar using the id “registrar” and CSC230 CSC230
Catalog password “Regi5tr@r”
Click Course Catalog button
Click on Load Course Catalog button
Click Cancel button.
Logout

Test 10: Precondition: None Final Schedule displays table Final Schedule displays table
View final with 2 rows: with 2 rows:
schedule Log in as a student using the id “zking” and ● CSC116, 001, Intro to ● CSC116, 001, Intro to
password “pw” Programming - Java, , Programming - Java, ,
Select CSC116 001 and click “Add Course” 3, MW 9:10AM- 3, MW 9:10AM-
11:00AM 11:00AM
Select CSC216 002 and click “Add Course”
● CSC216, 002, ● CSC216, 002,
Programming Concepts Programming Concepts
Click “Display Final Schedule” - Java, , 4, MW - Java, , 4, MW
Save as “test-files/actual_final_schedule.txt” 1:30PM-2:45PM 1:30PM-2:45PM
Test 11: Precondition: Test 11 passed Resulting file should be: Resulting file is:
Save final CSC116,Intro to Programming CSC116,Intro to Programming
schedule Click “Export Schedule” - -
Java,001,3,null,10,MW,910,11 Java,001,3,null,10,MW,910,11
00 00
CSC216,Programming CSC216,Programming
Concepts - Concepts -
Java,001,4,null,10,TH,1330,14 Java,001,4,null,10,TH,1330,14
45 45

Test 12: Precondition: Tests 11 and 12 passed Returned to schedule editing Returned to schedule editing
Return to page with 2 courses in page with 2 courses in
editing Click “Revise Schedule” schedule (CSC116 001 and schedule (CSC116 001 and
CSC216 002) CSC216 002)

Potrebbero piacerti anche