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

3. Cursor is blinking in Text Box 2. 3. Software for addition of two numbers is invoked 2. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 1. 1. Cursor is blinking in 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. Cursor is blinking in Text Box 2. Valid value is filled in Text Box 1. Cursor is blinking in Text Box 2. Valid value is filled in Text Box 1. 3. 1. Valid value is filled in Text Box 1. Software for addition of two numbers is invoked 2. Cursor is blinking in Text Box 2. 3. Software for addition of two numbers is invoked 2. 3. . 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. 1. Valid value is filled in Text Box 1.

Valid value is filled in Text Box 1 3. 3. .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. Software for addition of two numbers is invoked 2. Valid value is filled in Text Box 2 4. 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. Valid value is filled in Text Box 1. 1. Cursor is on the 'Calculate Sum' button. 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. Cursor is blinking in Text Box 2. Software for addition of two numbers is invoked 2.

2. Text Box 2 should be empty and disabled. Text Box 3 should be empty and disabled. 4. UR FOR INVALID VALUES 1. Observe the status of objects on the screen 1. 2. 3. . The software should display error message. Text Box 1 should be empty and enabled. The cursor should be blinking in Text Box 1. The control should remain in Text Box 1.S FOR UNIT LEVEL TESTING STEPS EXPECTED RESULT 1. The alphabets should not be accepted in Text Box 1. Press Tab 1. Click on the icon of the software 2. 3. The 'Calculate Sum' button should be disabled. 5. Type any alphabet 3. Click inside Text Box 1 . 2.

Click inside Text Box 1 . The software should display error message. 3. . Type 0 3. Do not type anything 3. The software should display error message. Click inside Text Box 1 . Press Tab 1. The control should remain in Text Box 1. 2. Type 12 3. 1. 2. 0 should not be accepted in Text Box 1. 2. 1. 2. The control should remain in Text Box 1. 3. 12 should not be accepted in Text Box 1. Type spaces 3. 2. Click inside Text Box 1 . The software should display error message. Press Tab 1. 3. The control should remain in Text Box 1. 2. 1. Press Tab 1. Press Tab 1. 2. The software should display error message. Click inside Text Box 1 . 2. 1. The control should remain in Text Box 1. 2. The special characters should not be accepted in Text Box 1. Type any special character 3. Click inside Text Box 1 . The control should remain in Text Box 1. 3. The software should display error message. Press Tab 1. 2.1. 3. Spaces should not be accepted in Text Box 1. Null values should not be accepted in Text Box 1.

The control should remain in Text Box 2. The software should display error message. 2. Spaces should not be accepted in Text Box 1. 3. The software should display error message. . Click inside Text Box 2 . 2. The control should remain in Text Box 2. Null values should not be accepted in Text Box 1. Click inside Text Box 2 . 2. 1. 2. 0 should not be accepted in Text Box 2. 1. Press Tab 1. The control should remain in Text Box 2. 3. Type spaces 3. 2. 3. Type any alphabet 3. 2. The special characters should not be accepted in Text Box 2. Do not type anything 3. The alphabets should not be accepted in Text Box 2. The software should display error message. Click inside Text Box 2 . Type any special character 3. The software should display error message. 2. The control should remain in Text Box 2. Click inside Text Box 2 . The control should remain in Text Box 2. 3. Press Tab 1. 2. 1. Type 0 3. 1.1. The software should display error message. 2. Press Tab 1. 3. Press Tab 1. Press Tab 1. 2. Click inside Text Box 2 .

The software should display error message. Press Tab 3. Type any integer between 1 to 11 (both inclusive) 2. Text Box 3 should remain disabled. Click inside Text Box 1 . Press Tab 1.1. The Text Box 2 should become enabled 3. 1. Press Tab 3. . Type 12 3. 2. Click inside Text Box 2 . 2. Click inside Text Box 2 . 12 should not be accepted in Text Box 2. 1. The 'Calculate Sum' button should become inclusive) enabled. The control should remain in Text Box 2. Control should shift to the 'Calculate Sum' button. 3. Control should shift to Text Box 2 1. 1. The correct sum of the integers entered into Text Box 1 and Text Box 2 should be displayed in Text Box 3 2. 1. The 'Calculate Sum' button should remain enabled. Click on the 'Calculate Sum' button 1. 3. The software should accept the value. 2. Type any integer between 1 to 11 (both 2. 2. 3. The software should accept the value.

26+26 separate test cases should be written and tested separately .Text Box 2 is empty and enabled 4.Cursor is blinking in textbox1 3.Software is not displaying any error message 2. to test the behaviour for the entire range of alphabets .Alphabet is accepted in Text box1 3.Control remains in textbox1 FAIL HIGH Ideally.'Calcultae Sum' button is dispalyed and enabled FAIL HIGH 1.Text Box 1 is empty and enabled 2.ACTUAL RESULT SUCCESS / FAILED SEVERITY OF DEFECT PRIORITY COMMEN FOR TS DEFECT CORREC TION 1.Text Box 3 is empty and disabled 5.

Control remain in textbox1.Values beyond the upper boundary are not accepted.Software is not displaying any error message. 3. 3.Control remains in textbox1 1.Software is displaying error message.1.Values beyond the lower boundary are accepted in textbox1.Control remain in textbox1. 2. 2.Software is not displaying any error messsage . 1. FAIL HIGH PASS . to test the behaviour for the entire range of special characters. 2.Control remain in textbox1. 2. 3.spaces are accepted in textbox1. 3. FAIL HIGH 1.null values are accepted in textbox1. separate test cases should be written and tested separately FAIL HIGH 1.software is not displaying any error message.Software is not displaying any error message 2.control remain in textbox1 FAIL HIGH Ideally.Special Characters are accepted in Text box1 3.

The control remain in Text Box 2. 3. 3.1.special characters is accepted . FAIL HIGH FAIL HIGH 1.software is not displaying error message. The control remain in Text Box 2. FAIL HIGH 1. 3. The control remain in Text Box 2. FAIL HIGH 1.Alphabets is accepted .Software is not displaying error message. 2. 1. 3.Control remain in textbox2.Software in not displaying the error message. 2.Control remain in textbox2.Null value is accepted in textbox2. 2.Value beyond lower boundary is accepted in textbox2.Software in not displaying the error message. 2.Space is accepted in textbox2. 3.Software in not displaying the error message. FAIL HIGH . 2.

to test the behaviour for the entire range of valid values. Text box 2 remains enabled 3. 3.Software accepts integer value both textbox1 and textbox2 and result display in textbox3.1. remains enabled. Control Shifts to'Calculate Sum' button. The 'Calculate Sum' button should remain enabled. Control Shifts to text box2 1.Software accepts integer value between 0 and 11. 'Calculate Sum' button.Value beyond upper boundary is accepted in textbox2.Software in not displaying the error message. 3. FAIL HIGH 1. PASS . 11 separate test cases should be written for valuse between 1 to 11 (inclusive) and tested separately 1.Text Box 3 remain disabled. 2. 2. to test the behaviour for the entire range of valid values. 2. 3. 11 separate test cases should be written for valuse between 1 to 11 (inclusive) and tested Ideally. PASS PASS Ideally. The control remain in Text Box 2.Software accepts integer value between 0 and 11 2.

Control Shifts to textbox2 on pressing Tab 2 2 3 when a special charcter is entered in text box1 the Software is not displaying any error message. DEFECT NO DEFECT DESCRIPTION 1 1 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 message.DATE OF EXECUTION TEST NO.Control Shifts to textbox2 on pressing Tab 4 when space is entered in text box1 the Software is not displaying any error message.Control Shifts to textbox2 on pressing Tab .

when null values is entered in text box1 the Software is not displaying any error message.Control 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 message.Control Shifts to 'Calculate Sum on pressing Tab 6 when special characters is entered in text box2 the Software is not displaying any error message.Control Shifts to 'Calculate Sum on pressing Tab 7 when spaces is entered in text box2 the Software is not displaying any error message.Control shift to 'Calculate Sum on pressing Tab 10 .Control Shifts to 'Calculate Sum on pressing Tab 8 Null value entered in text box2 the Software is not displaying any error message.Control Shifts to textbox2 on pressing Tab 5 when alphabet is entered in text box2 the Software is not displaying any error message.

when value above the Upper boundary (13) is entered in the textbox2 the software does not display any error message.Control shift to 'Calculate Sum' on pressing Tab 11 .

3. 2. Click inside Text Box 2. The control should remain in Text Box 1. Text Box 2 should be empty and disabled. The special characters should not be accepted in Text Box 1. The alphabets should not be accepted in Text Box 1. 3. The software should display error message. 3. Click inside Text Box1 2. 5. The control should remain in Text Box 1. Type any alphabet 3. Click inside Text Box 2. . Press Tab 1. Software for addition of two numbers is invoked 1. 3. 4.PRE-REQUISITES STEPS TO RECREATE THE DEFECT EXPECTED RESULT The icon for the software 1. Software for addition of two numbers is invoked 1. Observe the status of objects on the screen 1. The software should display error message. Text Box 3 should be empty and disabled. Type any special character 3. 2. Press Tab 1.software top of the computer 2. Space should not be accepted in Text Box 1. Text Box 1 should be empty and enabled. The cursor should be blinking in Text Box 1. 1. 2. The control should remain in Text Box 1. 2. The software should display error message. The 'Calculate Sum' button should be disabled. 3. press space. Press Tab Software for addition of two numbers is invoked 1. Click on the icon of the should be present on the desk.

The software should display error message. 2.lower boundary value should not be accepted in Text Box2. Press Tab. 3. Click inside Textbox2 2. Special characters should not be accepted in Text Box2. Software for addition of two numbers is invoked 1. 3. 2. Press Tab. Click inside Textbox2 2. 2. 1.... Null values should not be accepted in Text Box2. Press Tab. The control should remain in Textbox2.Software for addition of two numbers is invoked 1. 3. 1. Press Tab. Software for addition of two numbers is invoked 1.. 1. Alphabet should not be accepted in Text Box2. Software for addition of two numbers is invoked 1. The control should remain in Textbox2. 3. The software should display error message. Press Tab. Press Tab. 1. Click inside Textbox2 2. 1. The software should display error message. . Click inside Textbox2 2. Software for addition of two numbers is invoked 1. Spaces should not be accepted in Text Box2. Software for addition of two numbers is invoked 1. Click inside Textbox2 2. 2. 1. The control should remain in Textbox2. The software should display error message. 2. The control should remain in Text Box 1. Null Value should not be accepted in Text Box 1. The software should display error message. The software should display error message. 3. The control should remain in Textbox2.. The control should remain in Textbox2. 3. 2. Click inside Text Box1 2.

2Upper boundary value should not be accepted in Text Box2. 1..Software for addition of two numbers is invoked 1. . Click inside Textbox2 2. The control should remain in Textbox2. The software should display error message. Press Tab. 3.

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) .

Sign up to vote on this title
UsefulNot useful