SAMPLE TESTS FOR UNIT LEVEL TESTING
TEST CASES FOR THE SOFTWARE FOR ADDITION OF TWO NUMBERS (Each number should be an integer between 1 and 11 (inclusive) )
ASSUMPTION : IT IS ASSUMED THAT THE NAVIGATION IS WITH THE HELP OF 'TAB' BUTTON.
DATE OF TEST NO. Object EXECUTI under test ON
OBJECTIVE
PRE-REQUISITES
TEST CASE FOR DEFAULT STATUS
1 Entire screen To check the status of objects on the screen when the software is invoked.
The icon for the software should be present on the desk-top of the computer
TEST CASES FOR CHECKING THE BEHAVIOUR FOR INVALID VALUES
TEXT BOX 1 2 Text Box 1 To check whether Software for addition of software allows two numbers is invoked alphabets to be entered into Text Box 1
3 Text Box 1
To check whether Software for addition of software allows special two numbers is invoked characters to be entered into Text Box 1
4 Text Box 1
To check whether Software for addition of software allows spaces two numbers is invoked to be entered into Text Box 1
5 Text Box 1
To check whether software allows null values to be entered into Text Box 1
Software for addition of two numbers is invoked
Testing for values beyond boundary
6 Text Box 1
To check whether Software for addition of software allows 0 (value two numbers is invoked just beyond lower boundary) to be entered into Text Box 1
7 Text Box 1
To check whether Software for addition of software allows 12 two numbers is invoked (value just beyond upper boundary) to be entered into Text Box 1
TEXT BOX 2
8 Text Box 2
To check whether software allows alphabets to be entered into Text Box 2
1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2. 1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2. 1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2. 1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2.
9 Text Box 2
To check whether software allows special characters to be entered into Text Box 2
10 Text Box 2
To check whether software allows spaces to be entered into Text Box 2
11 Text Box 2
To check whether software allows null values to be entered into Text Box 2
Testing for values beyond boundary
12 Text Box 2
To check whether software allows 0 (value just beyond lower boundary) to be entered into Text Box 2
1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2.
13 Text Box 2
To check whether software allows 12 (value just beyond upper boundary) to be entered into Text Box2
1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 3. Cursor is blinking in Text Box 2.
Testing for valid values
14 Text Box 1
To check whether Software for addition of software allows integer two numbers is invoked values between 1 to 11 to be entered into Text Box 1
15 Text Box 2
To check whether software allows integer values between 1 to 11 to be entered into Text Box 2
1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1
Test cases for 'Calculate Sum' Button
16 ''Calculate To check the behaviour Sum'' button of the software when the 'Calculate Sum' button is clicked.
1. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1 3. Valid value is filled in Text Box 2 4. Cursor is on the 'Calculate Sum' button.
S FOR UNIT LEVEL TESTING
STEPS
EXPECTED RESULT
1. Click on the icon of the software 2. Observe the status of objects on the screen
1. Text Box 1 should be empty and enabled. 2. The cursor should be blinking in Text Box 1. 3. Text Box 2 should be empty and disabled. 4. Text Box 3 should be empty and disabled. 5. The 'Calculate Sum' button should be disabled.
UR FOR INVALID VALUES
1. Click inside Text Box 1 . 2. Type any alphabet 3. Press Tab
1. The software should display error message. 2. The alphabets should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 1 . 2. Type any special character 3. Press Tab
1. The software should display error message. 2. The special characters should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 1 . 2. Type spaces 3. Press Tab
1. The software should display error message. 2. Spaces should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 1 . 2. Do not type anything 3. Press Tab
1. The software should display error message. 2. Null values should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 1 . 2. Type 0 3. Press Tab
1. The software should display error message. 2. 0 should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 1 . 2. Type 12 3. Press Tab
1. The software should display error message. 2. 12 should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
1. Click inside Text Box 2 . 2. Type any alphabet 3. Press Tab
1. The software should display error message. 2. The alphabets should not be accepted in Text Box 2. 3. The control should remain in Text Box 2.
1. Click inside Text Box 2 . 2. Type any special character 3. Press Tab
1. The software should display error message. 2. The special characters should not be accepted in Text Box 2. 3. The control should remain in Text Box 2.
1. Click inside Text Box 2 . 2. Type spaces 3. Press Tab
1. The software should display error message. 2. Spaces should not be accepted in Text Box 1. 3. The control should remain in Text Box 2.
1. Click inside Text Box 2 . 2. Do not type anything 3. Press Tab
1. The software should display error message. 2. Null values should not be accepted in Text Box 1. 3. The control should remain in Text Box 2.
1. Click inside Text Box 2 . 2. Type 0 3. Press Tab
1. The software should display error message. 2. 0 should not be accepted in Text Box 2. 3. The control should remain in Text Box 2.
1. Click inside Text Box 2 . 2. Type 12 3. Press Tab
1. The software should display error message. 2. 12 should not be accepted in Text Box 2. 3. The control should remain in Text Box 2.
1. Click inside Text Box 1 . 1. The software should accept the value. 2. Type any integer between 1 to 11 (both inclusive) 2. The Text Box 2 should become enabled 3. Press Tab 3. Control should shift to Text Box 2
1. Click inside Text Box 2 . 1. The software should accept the value. 2. Type any integer between 1 to 11 (both 2. The 'Calculate Sum' button should become inclusive) enabled. 3. Press Tab 3. Control should shift to the 'Calculate Sum' button.
1. Click on the 'Calculate Sum' button
1. The correct sum of the integers entered into Text Box 1 and Text Box 2 should be displayed in Text Box 3 2. Text Box 3 should remain disabled. 3. The 'Calculate Sum' button should remain enabled.
ACTUAL RESULT
SUCCESS / FAILED
SEVERITY OF DEFECT
PRIORITY COMMEN FOR TS DEFECT CORREC TION
[Link] Box 1 is empty and enabled [Link] is blinking in textbox1 [Link] Box 2 is empty and enabled [Link] Box 3 is empty and disabled 5.'Calcultae Sum' button is dispalyed and enabled
FAIL
HIGH
[Link] is not displaying any error message [Link] is accepted in Text box1 [Link] remains in textbox1
FAIL
HIGH
Ideally, to test the behaviour for the entire range of alphabets , 26+26 separate test cases should be written and tested separately
[Link] is not displaying any error message [Link] Characters are accepted in Text box1 [Link] remains in textbox1 [Link] is not displaying any error messsage . [Link] are accepted in textbox1. [Link] remain in textbox1
FAIL
HIGH
Ideally, to test the behaviour for the entire range of special characters, separate test cases should be written and tested separately
FAIL
HIGH
[Link] is not displaying any error message. [Link] values are accepted in textbox1. [Link] remain in textbox1.
FAIL
HIGH
[Link] is not displaying any error message. [Link] beyond the lower boundary are accepted in textbox1. [Link] remain in textbox1. [Link] is displaying error message. [Link] beyond the upper boundary are not accepted. [Link] remain in textbox1.
FAIL
HIGH
PASS
[Link] is not displaying error message. [Link] is accepted . [Link] remain in textbox2.
FAIL
HIGH
[Link] is not displaying error message. [Link] characters is accepted . [Link] remain in textbox2.
FAIL
HIGH
[Link] in not displaying the error message. [Link] is accepted in textbox2. 3. The control remain in Text Box 2. [Link] in not displaying the error message. [Link] value is accepted in textbox2. 3. The control remain in Text Box 2.
FAIL
HIGH
FAIL
HIGH
[Link] in not displaying the error message. [Link] beyond lower boundary is accepted in textbox2. 3. The control remain in Text Box 2.
FAIL
HIGH
[Link] in not displaying the error message. [Link] beyond upper boundary is accepted in textbox2. 3. The control remain in Text Box 2.
FAIL
HIGH
[Link] accepts integer value between 0 and 11 2. Text box 2 remains enabled 3. Control Shifts to text box2 [Link] accepts integer value between 0 and 11. 2. 'Calculate Sum' button. remains enabled. 3. Control Shifts to'Calculate Sum' button.
PASS
PASS
Ideally, to test the behaviour for the entire range of valid values, 11 separate test cases should be written for valuse between 1 to 11 (inclusive) and tested Ideally, to test the behaviour for the entire range of valid values, 11 separate test cases should be written for valuse between 1 to 11 (inclusive) and tested separately
[Link] accepts integer value both textbox1 and textbox2 and result display in textbox3. [Link] Box 3 remain disabled. 3. The 'Calculate Sum' button should remain enabled.
PASS
DATE OF EXECUTION
TEST NO.
DEFECT NO DEFECT DESCRIPTION
When the programe is invoked text box2 should be disabled but it is enabled and the 'Calculate Sum' button should be disabled but it is enabled
when an alphabet is entered in text box1 the Software is not displaying any error [Link] Shifts to textbox2 on pressing Tab
when a special charcter is entered in text box1 the Software is not displaying any error [Link] Shifts to textbox2 on pressing Tab
when space is entered in text box1 the Software is not displaying any error [Link] Shifts to textbox2 on pressing Tab
when null values is entered in text box1 the Software is not displaying any error [Link] Shifts to textbox2 on pressing Tab
5
when alphabet is entered in text box2 the Software is not displaying any error [Link] Shifts to 'Calculate Sum on pressing Tab
6
when special characters is entered in text box2 the Software is not displaying any error [Link] Shifts to 'Calculate Sum on pressing Tab
7
when spaces is entered in text box2 the Software is not displaying any error [Link] Shifts to 'Calculate Sum on pressing Tab
8
Null value entered in text box2 the Software is not displaying any error [Link] Shifts to 'Calculate Sum on pressing Tab
9
when value below the lower boundary (-1) is entered in the textbox2 the software should not display any error [Link] shift to 'Calculate Sum on pressing Tab
10
when value above the Upper boundary (13) is entered in the textbox2 the software does not display any error [Link] shift to 'Calculate Sum' on pressing Tab
11
PRE-REQUISITES
STEPS TO RECREATE THE DEFECT
EXPECTED RESULT
The icon for the software 1. Click on the icon of the should be present on the desk- software top of the computer 2. Observe the status of objects on the screen
1. Text Box 1 should be empty and enabled. 2. The cursor should be blinking in Text Box 1. 3. Text Box 2 should be empty and disabled. 4. Text Box 3 should be empty and disabled. 5. The 'Calculate Sum' button should be disabled. 1. The software should display error message. 2. The alphabets should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
Software for addition of two numbers is invoked
1. Click inside Text Box 2. Type any alphabet 3. Press Tab
Software for addition of two numbers is invoked
1. Click inside Text Box 2. Type any special character 3. Press Tab
1. The software should display error message. 2. The special characters should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
Software for addition of two numbers is invoked
1. Click inside Text Box1 2. press space. 3. Press Tab
1. The software should display error message. 2. Space should not be accepted in Text Box 1. 3. The control should remain in Text Box 1.
Software for addition of two numbers is invoked
1. Click inside Text Box1 2. Press Tab.
1. The software should display error message. 2. Null Value should not be accepted in Text Box 1. 3. The control should remain in Text Box 1. 1. The software should display error message. 2. Alphabet should not be accepted in Text Box2.. 3. The control should remain in Textbox2. 1. The software should display error message. 2. Special characters should not be accepted in Text Box2.. 3. The control should remain in Textbox2. 1. The software should display error message. 2. Spaces should not be accepted in Text Box2.. 3. The control should remain in Textbox2. 1. The software should display error message. 2. Null values should not be accepted in Text Box2.. 3. The control should remain in Textbox2. 1. The software should display error message. [Link] boundary value should not be accepted in Text Box2.. 3. The control should remain in Textbox2.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
Software for addition of two numbers is invoked
1. Click inside Textbox2 2. Press Tab.
1. The software should display error message. 2Upper boundary value should not be accepted in Text Box2.. 3. The control should remain in Textbox2.
SEVERITY OF DEFECT
PRIORITY FOR DEFECT CORRECTION
SENT TO DEVELOPMENT DEPT ON
RECEIVED FROM DEVELOPMENT FOR REGRESSION ON
REGRESSION TESTING CARRIED ON
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
HIGH
FATE OF REGRESSION TESTING(SUCESS/FAILURE)