1 Test Case Documentation Margaret Lee Marymount University 7/10/2014 IT 355, Software Testing and Quality Assurance Dr. Bono “On my honor, I have neither given nor received aid on this assignment, except a family friend reviewed my writing” 2 Table of Contents 1: Description of Application……………………………………………………………………...3 2: Description of Test Environment……………………………………………………………….4 3: Overview of Tests………………………………………………………………………………4 4: Level of Effort….........................................................................................................................5 5: Test Cases……………….……………………………………………………………………...5 6: References……………….…………………………………………………………………….11 3 1: Description of Application The Grade Point Average (GPA) calculator application provides Marymount University users with the ability to easily calculate GPA grades on a desktop. This application is intended for Marymount staff and student usage to calculate grade averages in an educational environment. The staff is able to use this application to compute student GPAs to submit for academic review (grades and transcripts) while students are able to track their academic standing each semester in school (how well they are performing). 4 2: Description of Test Environment The GPA calculator application will be used in an educational environment and in order to use this application, a desktop with internet connection is required. The application runs on Mac OS X, Windows 8, and Linux operating systems and is stored on Marymount’s internet server. Both Marymount students and staff need to have user accounts in order to be allowed access to the GPA calculator application. 3: Overview of Tests The following tests will be used to test the each function of the software application: Test Purpose Risks Black Box Testing The purpose of black box It is not possible to test every testing for these tests is to input/output for the software. verify if all inputs and outputs There are an endless number function correctly in the GPA of possibilities. calculator application. White Box Testing The purpose of white box It is not possible to test every testing is to ensure that the path of the software. internal structure of the GPA calculator application is operational. Each module and code path will be tested for functionality. 5 Error Guessing The purpose of error guessing Error guessing potential is to locate errors intuitively mainly relies on the and to put the GPA calculator experience of the tester. through a number of different scenarios. This method will examine how the GPA calculator responds to different commands. 4: Level of Effort The level of effort required in performing each test will vary. The GPA calculator application is not complex software to work with. It is an application that carries out a limited number of commands and is not comprised of millions of lines of code. Therefore, testing basic input commands and module paths will not require a large effort. However, the difficulty lies in attempting to test every possible function occurrence in the working environment. There are an infinite number of testable inputs and paths and in order to test them, large amounts of time, money, and effort are required. 5: Test Cases Test Case Test Scenario Test Case ID 1 Does the application open WB_0001 Steps Test Steps 1 User selects GPA calculator 2 User accesses the application Test Data Run the .exe Expected Result The GPA calculator application should launch Test Result 6 Test Case Test Scenario Test Case ID Steps 2 Leave a "score" field blank but not the corresponding course field BB_0002 Test Steps User enters an alphabetic value in 1 the course field but leaves the corresponding score field blank 2 User submits the value Test Case Test Scenario Test Case ID 3 Display the calculated A grade WB_0003 Steps Test Steps Test Data Course: Biology, Score: (blank) Test Data Course: Biology, Score: 95 User enters 5 courses and 5 Course: History, Score: 95 1 midterm grades that average to an Course: English, Score: 95 A percentage Course: Math, Score: 90 Course: Drawing, Score: 100 2 User submits the value Test Case Test Scenario Test Case ID 4 Display a calculated B grade WB_0004 Steps Test Steps Test Data Course: Biology, Score: 87 User enters 5 courses and 5 Course: History, Score:85 1 midterm grades that average to a B Course: English, Score: 85 percentage Course: Math, Score: 85 Course: Drawing, Score: 89 2 User submits the value Test Case Test Scenario Test Case ID 5 Display a calculated C grade WB_0005 Steps Test Steps Test Data Course: Biology, Score: 77 User enters 5 courses and 5 Course: History, Score: 75 1 midterm grades that average to a C Course: English, Score:73 percentage Course: Math, Score: 75 Course: Drawing, Score: 75 Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA Expected Result Test Result Display "You have a(n) A grade average!" message Expected Result Test Result Display "You have a(n) B grade average!" mesage Expected Result Test Result Display "You have a(n) C grade average!" message 2 User submits the value Test Case Test Scenario Test Case ID 6 Display a calculated F grade WB_0006 Steps Test Steps Test Data Course: Biology, Score: 60 User enters 5 courses and 5 Course: History, Score: 50 1 midterm grades that average to a F Course: English, Score: 45 percentage Course: Math, Score: 60 Course: Drawing, Score: 62 2 User submits the value Expected Result Display "You have a(n) F grade average!" message Test Result 7 Test Case Test Scenario Test Case ID 7 Display the developer name WB_0007 Steps Test Steps 1 User enters a name Test Data Mandy Swithenbank Expected Result Display the developer name (Many Swithenbank) Test Result Expected Result Test Result 2 User submits the value Test Case Test Scenario Test Case ID 8 Enter a negative value BB_0008 Steps Test Steps Test Data 1 User enters a negative number in a Score: -97.5 score field 2 User submits the value Test Case Test Scenario Test Case ID 9 Enter a grade value of more than 100 BB_0009 Steps Test Steps 1 Test Data User enters a value higher than 100 Score: 105 in score field Application reports an "Error" message and the application does not compute the GPA Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 2 User submits the value Test Case Test Scenario Test Case ID 10 Score field is entered as a letter BB_0010 Steps Test Steps Test Data User enters an alphabetic value in score field Score: ajd 1 Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 2 User submits the value Test Case Test Scenario Test Case ID 11 Two decimal points are entered in the score field BB_0011 Steps Test Steps 1 Test Data User enters two decimal points into Score: 8..85 the score field 2 User submits the value Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 8 Test Case Test Scenario Test Case ID 12 Calculate the GPA by less than 5 courses and scores WB_0012 Steps Test Steps Test Data Course: Biology / Score: 95.5 Course: History/ Score: 94.2 User enters data for only 4 courses 1 Course: English/ Score: 84.5 and scores Course: Math/ Score: 75.5 Expected Result Test Result The GPA calculation should be based on the number of course/score inputs. If 4 courses and scores are entered, then the GPA is calculated by 4 grade values and not 5. If 3 courses and scores are entered, then GPA is calculated by 3 grade values and not 5. Same goes for 2 and 1. 2 User submits the value Test Case Test Scenario Test Case ID 13 Score is visible after submit button is clicked WB_0013 Steps Test Steps Test Data Course: Biology, Score: 76 Course: History, Score: 88 1 User inputs course and score values Course: English, Score: 67 Course: Math, Score: 97 Course: Drawing, Score:89 Expected Result Test Result The GPA calculated score (A,B,C,F) is visible after the submit button is clicked 2 User submits the value Test Case Test Scenario Test Case ID 14 The Calculated GPA message should appear after submit button is clicked WB_0014 Steps Test Steps User enters values into the data 1 fields Test Data Expected Result Course: Biology, Score: 70 Course: History, Score: 67 Course: English, Score: 45 Course: Math, Score: 66 Course: Drawing, Score: 80 "You have a(n) _ grade average!" message should appear Test Result 2 User submits the value Test Case Test Scenario Test Case ID 15 A course name is misspelled BB_0015 Steps Test Steps User inputs a mispelled course 1 name into the course field 2 User submits the value Test Data Course: Histry Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 9 Test Case Test Scenario Test Case ID 16 One decimal point is used in the score field BB_0016 Steps Test Steps Test Data User inputs a value with 1 decimal point into the score field Score: 95.3 1 Expected Result Test Result The GPA calculation should compute successfully and display the "You have a(n) _ grade average!" message with the calculated grade 2 User submits the value Test Case Test Scenario Test Case ID 17 Submitting information WB_0017 Steps Test Steps Test Data 1 User enters course and score values Click Submit buttom Expected Result Test Result The GPA calculation should compute successfully and display the "You have a(n) _ grade average!" message with the calculated grade 2 User clicks "Submit" button Test Case Test Scenario Test Case ID 18 User enters a valid score number between 0 and 100 BB_0018 Steps Test Steps Test Data User inputs a number between 0 and 100 into the score field Score: 85 1 Expected Result Test Result The GPA calculation should compute successfully and display the "You have a(n) _ grade average!" message with the calculated grade 2 User submits the value Test Case Test Scenario Test Case ID 19 User enters a valid course into the course field BB_0019 Steps Test Steps 1 Test Data User inputs a course into the course Course: Biology field Expected Result Test Result The GPA calculation should compute successfully and display the "You have a(n) _ grade average!" message with the calculated grade 2 User submits the value Test Case Test Scenario Test Case ID 20 A number in entered into the course field BB_0020 Steps Test Steps 1 User enters inputs a number into the course field 2 User submits the value Test Data Course: B1ology Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 10 Test Case Test Scenario Test Case ID 20 A number entered into the course field BB_0020 Steps Test Steps 1 User enters inputs a number into the course field 2 User submits the value Test Data Course: B1ology Expected Result Test Result Application reports an "Error" message and the application does not compute the GPA 11 References Myers G.J, Corey Sandler and Tom Badgett (2012). “The Art of Software Testing”, 3rd Edition. New Jersey, John Wiley and Sons Publications. Software Testing Documentation. (n.d.). Retrieved June 26, 2014, from Tutorials Point website: http://www.tutorialspoint.com/software_testing/testing_documentation.htm Software and Testing Training. (n.d.). How to write effective test cases quickly [Video file]. Retrieved from https://www.youtube.com/watch?v=-VvQKEvsPpE