Вы находитесь на странице: 1из 10

Test Case

Niranjan Shrivastava - IMS -DAVV

The test case, is a set procedure that guides a tester to execute a test.

Niranjan Shrivastava - IMS -DAVV

Test cases for Traffic Signal


1. verify if the traffic lights are having three lights(green,yellow,red)
2. verify that the lights turn on in a sequence 3. verify that lights turn on in a sequence based on time specified(greenlight4.1min,yellowlight10sec,redlight 1 min) 4. verify that only one light glows at a time 5. verify if the speed of the Traffic light can be accelerated as time specified based on the traffic 6. verify if the traffic lights in some spots are sensor Niranjan Shrivastava - IMS -DAVV activated.

1) Elevator is capable of moving up and down. 2) It is stopping at each floor. 3) It moves exactly to that floor when corresponding floor no is pressed.

Test cases Elevator

4) It moves up when called from upward and down when called from downward.
5) It waits until close button is pressed. 6) If anyon steps inbetween the door at the time of closing, door should open. 7) No break points exists
Niranjan Shrivastava - IMS -DAVV

Test Case for Yahoo Page


1.Testing without entering any username and password 2.Test it only with Username 3.Test it only with password. 4 .User name with wrong password 5. Password with wrong user name 6. Right username and right password 7. Cancel, after entering username and pwd. 8.Enter long username and password that exceeds the set limit of characters. 9.Try copy/paste in the password text box. 10.After successfull sign-out, try Back option from your browser. Check whether it gets you to the signed-in page.
Niranjan Shrivastava - IMS -DAVV

Test Case for ATM


TC 1 :- succesful card insertion. TC 2 :- unsuccessful operation due to wrong angle card insertion. TC 3:- unsuccesssful operation due to invalid account card. TC 4:- successful entry of pin number. TC 5:- unsuccessful operation due to wrong pin number entered 3 times. TC 6:- successful selection of language. TC 7:- successful selection of account type.

Niranjan Shrivastava - IMS -DAVV

TC 8:- unsuccessful operation due to wrong account type selected w/r to that inserted card.
TC 9:- successful selection of withdrawl option.

TC 10:- successful selection of amount.


TC 11:- unsuccessful operation due to wrong denominations. TC 12:- successful withdrawl operation. TC 13:- unsuccessful withdrawl operation due to amount greater than possible balance.

TC 14:- unsucceful due to lack of amount in ATM.

Niranjan Shrivastava - IMS -DAVV

TC 15:- un due to amount greater than the day limit. TC 16:- un due to server down. TC 17:- un due to click cancel after insert card. TC 18:- un due to click cancel after insert card and pin no. TC 19:- un due to click cancel after language selection,account type selection,withdrawl selection, enter amount
Niranjan Shrivastava - IMS -DAVV

BEST WAY to write test cases


1)List down use-cases (taken from business cases) from function specs. For each use case write a test case and categorize them into sanity tests, functionality, GUI, performance etc. Then for each test case, write its workflow.

Niranjan Shrivastava - IMS -DAVV

2) For a GUI application make a list of all GUI controls. For each control start writing test cases for testing of the control UI, functionality (impact on the whole application), negative testing (for incorrect inputs), performance etc

Niranjan Shrivastava - IMS -DAVV

Вам также может понравиться