38
Test Cases for practice Day-20

Designing test cases

Embed Size (px)

Citation preview

Page 1: Designing test cases

Test Casesfor practice

Day-20

Page 2: Designing test cases

Test Cases for Telephone box

• TC1: Pick up the Handset • Expected: Should display the message “Insert

one rupee coin" • TC2: Insert the coin • Expected: Should display the message “Dial the

Number" • TC3: When you get a busy tone, hang-up the

receiver• Expected: The inserted one rupee coin comes out

of the exit door.

Page 3: Designing test cases

• TC4: Finish off the conversation and hang-up the receiver

• Expected: The inserted coin should not come out.• TC5: During the conversation, in case of a local call,

(assume the duration is of 60 sec), when 45 as are completed

• Expected: It should prompt you to insert another coin to continue by giving beeps.

• TC6: In the above scenario, if another coin is inserted• Expected: 60 sec will be added to the counter.

Page 4: Designing test cases

• TC7: In the TC5 scenario, if you don't insert one more coin.

• Expected: The call gets ended.• TC8: Pick up the receiver. Insert appropriate

one rupee coin; Dial the number after hearing the ring tone. Assume it got connected and you are getting the ring tone. Immediately you end up the call.

• Expected: The inserted one rupee coin comes out of the exit door.

Page 5: Designing test cases

Test Cases for Mobile Phone

• 1) Check whether Battery is inserted into mobile properly

• 2) Check Switch on/Switch off of the Mobile• 3) Insert the SIM into the phone n check • 4) Add one user with name and phone

number in Address book• 5) Check the Incoming call

Page 6: Designing test cases

• 6) Check the outgoing call • 7) Send/receive messages for that mobile• 8) Check all the numbers/Characters on the

phone working fine by clicking on them.• 9) Remove the user from phone book and

check removed properly with name and phone number

• 10) Check whether Network working fine.

Page 7: Designing test cases

Test Cases for Coffee Machine

• 1. Plug the power cable and press the on button. The indicator bulb should glow indicating the machine is on.

• 2. Whether there are three different buttons Red, Blue and Green.

• 3. Whether Red indicated Coffee.• 4. Whether Blue indicated Tea.• 5. Whether Green indicated Milk.

Page 8: Designing test cases

• 6. Whether each button produces the correct out put (Coffee, Tea or Milk).

• 7. Whether the desired out put is hot or not (Coffee, Tea or Milk).

• 8. Whether the quantity is exceeding the specified the limit of a cup.

• 9. Whether the power is off (including the power indicator) when pressed the off button.

• 10. Verify the Output without Coffee Mix, Milk, Tea Mix in the machine.

Page 9: Designing test cases

Test Cases for Computer Mouse

• 1. To check the mouse company• 2. Whether it is a PS/2, USB or serial port mouse

or cordless mouse• 3. It should be plugged to all the ports of different

manufacturers• 4. It should be platform independent.• 5. Right clicking on the mouse should open the

context window.• 6. Double clicking on any folder should open up

the file

Page 10: Designing test cases

• 7. Should be able to scroll up and down using the scroll button on the mouse.

• 8. Should be able to change the functionality of the right and left mouse by changing the settings.

• 9. Should be able to point to the scrollbar and then drag up and down.

• 10. Should always point to the right place, where it is intended to point.

Page 11: Designing test cases

Test Cases for Yahoo Mail Page• Testcase1: To verify that when we click mail button

whether it list all the compose and check mail etc. options or not– Description: click on the mail button– Expected result: Clicking of the mail button lists all the

options check mail and compose etc.

• Testcase2: To verify that when we click check mail option in the mail list whether it takes you to inbox page or not– Description: click on check mail option– Expected result: check mail option opens the inbox page

Page 12: Designing test cases

• Testcase3: To verify that when you click the inbox whether it displays your received mails or not– Description: click the inbox button– Expected result: It lists all the mails u received in the inbox

• Testcase4: To verify when you click the compose option in the mail button whether it takes u to compose page where you can compose and send mails– Description: click on the compose option in the mail button– Expected result: it takes u to compose page

Page 13: Designing test cases

• Testcase5: To verify that after writing message when you click on ‘Send’ whether mail is sent to the address where you specified.– Description: give mail id for which you want to

send the message in the ‘To’ field and write the message in compose box and click on send button

– Expected result: it sending the mail to the mail id which u are given in the TO field.

Page 14: Designing test cases

• Testcase6: To verify if you give wrong id whether it gives failure notice or not.– Description: Give wrong mail id in compose page

in the ‘To’ field and see what happens– Expected result: In your inbox one failure notice

will come

Page 15: Designing test cases

Test Cases for Pen

• a) To check the pen type • b) To check the pen cap is present or not• c) To check the pen ink is filled or not• d) To check the pen writing or not• e) To check the ink color i.e black or blue• f) To check the pen color• g) To check weather the pen is used to write all

types of papers or not • h) To check the ink capacity of the pen• i) To check the pen product by fiber or plastic.

Page 16: Designing test cases

Test Cases for Withdraw Module in Banking Project

• Step1: when the balance in the account is nil, try to withdraw some amount (amount>0) should display msg as " insufficient funds in acc"

• Step 2: when the account has some balance amount, try to withdraw amount(amount>balance amount in account), should display "insufficient funds in acc"

• Step 3: when the account has some balance amount, enter a amount (amount<=balance amount), should withdrawn correct amount from account.

Page 17: Designing test cases

• Step 4: when the account has some balance amount, enter the amount as 0, should display msg as withdrawal amount should be > 0 and should be in multiple of hundreds( varies depending on reqs docs).

• In the case of Minimum balance mandatory in the Account:

• Step 5: When the account has balance amount, try to withdraw whole amount , should display msg as " Minimum balance should be maintained".

Page 18: Designing test cases

• Step 6: When the account has balance amount=minimum balance, try to withdraw any amount , should display msg as " Minimum balance should be maintained".

Page 19: Designing test cases

Test Cases for ATM Card

• Test case 1: Verify card insertionTest case 2: Verify operation with wrong angle of card insertion.Test case 3: verify operation with invalid card insertion. (Eg: Scratches on card, trecken card, other bank cards, time expired cards, etc,)Test case 4: Verify language selectionTest case 5: verify PIN no. entry

Page 20: Designing test cases

• Test case 6: verify operation with wrong PIN no.Test case 7: verify operation when PIN no. is entered wrongly 3 consecutivetimes.Test case 8: verify Account type selection.Test case 9: verify operation when wrong Account type is selected.Test case 10: verify withdrawal option selection.Test case 11: verify Amount entryTest case 12: verify operation with wrong denominations of AmountTest case 13: verify withdrawal operation success. (Correct Amount, CorrectReceipt & able to take cars back)Test case 14: Verify operation when the amount for withdrawal is less thenpossibleTest case 15: Verify operation when the network has problem.

Page 21: Designing test cases

• Test case 16: verify operation when the ATM is lack of amount.Test case 17: Verify operation when the amount for withdrawal is less than minimum amount.Test case 18. Verify operation when the current transaction is greater than no.of transactions limit per day.Test case 19: Verify cancel after insertion of card.Test case 20: Verify cancel after language selection.Test case 21: Verify cancel after PIN no. entry.Test case 22: Verify cancel after account type selection.Test case 23: Verify cancel after withdrawal option selection.Test case 24: Verify cancel after amount entry (Last Operation)

Page 22: Designing test cases

Test Cases for Elevator(Lift)

• 1) Verify the height and width and volume of life as per the requirement.

• 2) Verify that button for closing lift, opening lift, fan, emergency and all floor numbers should be there on button panel.

• 3) Verify the presence of display where floor number appears• 4) Verify floor number is being announced on each floor• 5) Verify the light and aroma along with some instrumental

music• 6) Verify that maximum number of people and weight is written

on wall and also verify all emergency instructions.• 7) Verify up and down button outside the life• 8) Verify the presence of sensor

Page 23: Designing test cases

• 9) Verify that lift is capable to stop on floors which are pressed in button panel

• 10) Verify that lift close when close button is placed or should close once after few time as per manual time

• 11) Verify that fan is working on pressing respective button• 12) Verify the sensor When lift is going to close and someone

has just put any object or body parts in between the lift doors.• 13) Verify the maximum weighing capacity of life by putting

weight• 14) Verify that when weight exceed from standard than it

should give some alert message or some alert sound should ring

Page 24: Designing test cases

• 15) Verify that light and fan is running at power failure

• 16) Verify the jerk on power failure• 17) Verify the speed of lift , it shouldn’t be fast• 18) Verify that lift stops at right floor i.e if user

click on 2nd floor then lift should stop on 2nd floor not on 4th floor.

• 19) Verify the landing speed of lift• 20) Verify the time between two successive

floors.

Page 25: Designing test cases

Test Cases for Paint Application• Check all toolbox functions are working.• Check for colors• Check for saving format• Check for all tab functions are working• Check for more 2 tools working together or

not (eg:make a rentangle box give color inside box ...)

• Check MSPAINT EXE function is working or not ...

Page 26: Designing test cases

• Check cut,copy and paste works.• Check whether the default background color is

white.• Check whether zooming works.(all menu

items work)• Check whether the selected color is displayed.• Check whether the colors can be edited.

Page 27: Designing test cases

Test Cases for Digital Watch

• Check the brand of the watch• Check the shape of the watch.• Check the letter font how bold to see.• Check the strap type( whether it is leather or rexin).• Check the length of the strap• After 60 sec ,is it inceasing minute value 1.• After 60 min ,is it inceasing hrs value 1.• After 12 noon ,is it show 1am(or)pm,OR 13am(OR)pm.• without or less battery is it work or fail.• If we remove battery and attach again means ,is it in 00:00

condition

Page 28: Designing test cases

Test Cases for Date field• 01. Ensure that the date field accept dates in the

specified format ie dd/mm/yy or mm/dd/yy or yyyy.02. Ensure that the date field does not accept characters.03. Ensure that the day field accepts values between 1 and 30/31 according to the month.04. Ensure that the day field does not accept any values less than 1 or greater than 31. For example; day field should not accept 0 and 32 or more.05. Ensure that the day field does not accept 30/31 for the second month(February).

Page 29: Designing test cases

• 06. Ensure that the day field does not accept 29 for the second month(February) unless it is a leap year.07. Ensure that the day field and month field accepts the format 1 and 01.08. Ensure that the month field accepts value between 1 and 12.09. Ensure that the month field does not accept 0 and 13 or more.10. Ensure that the year field does not accept 0000.11. Ensure that the year field does not accept 'yy' (12) if the required format is 'yyyy'(2012).

Page 30: Designing test cases

• 12. Ensure that the day,month and year are separated by – or /.13. Ensure that the date field cannot be left blank if the field is set as mandatory.

Further, if the date field is set with a calendar then,

14. Ensure that a calendar pops up on clicking the date field.15. Ensure that the user is able to select the desired date on the calendar.16. Ensure that the calendar disappears after a date is selected.17. Ensure that the selected date is displayed on the date field.

Page 31: Designing test cases

Test Cases 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.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.

Page 32: Designing test cases

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

Page 33: Designing test cases

Test Cases for Mobile Phone• 1)Chek whether Battery is inserted into mobile properly

2)Chek Switch on/Switchoff of the Mobile3)Insert the sim into the phone n chek4)Add one user with name and phone number in Address book5)Chek the Incoming call6)chek the outgoing call7)send/receive messages for that mobile8)Chek all the numbers/Characters on the phone working fine by clicking on them..9)Remove the user from phone book n chek removed properly with name and phone number10)Chek whether Network working fine..11)If its GPRS enabled chek for the connectivity.

Page 34: Designing test cases

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 sequence3.verify that lights turn on in a sequence based on time specified(greenlight-4.1min,yellowlight10sec,redlight 1 min)5.verify that only one light glows at a time6.verify if the speed of the Traffic light can be accelerated as time specified based on the traffic7.verify if the traffic lights in some spots are sensor activated.

Page 35: Designing test cases

Test case for 2 way switch

• 1. Check whether two switches are present.2. Check whether both switches are connected properly.3. Check power supplies for both switches.4. Check on/off conditions are working properly.5. Check whether any electornic applicace connected to the 2-way switches should not get power supply when both switches are either in on state or off state.6. Check whether any electornic applicace connected to the 2-way switches should get power supply when one switch is in on state and other is in off state or vice versa.

Page 36: Designing test cases

Test cases Elevator• 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.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 exists8) More usecases for the load that the elevator can carry (if required)

Page 37: Designing test cases

Test cases Calculator

• 1 It should have 9 numeric digits.• 2 it should give proper output based on the

operation.• 3 it should not allow charactres.• 4 it should run from cell or battery not through

power supply.• 5 it should be small in size.• 6 at least it should perform 4 basic operation

such asadd,sub.div,mul

Page 38: Designing test cases

Test Cases for Bulb

• Test cases for bulb Check the bulb is req shap and size

• Check the bulb is fitted and removed from holder• Check the bulb glow req illumunation r not• Check the bulb it should glow when we switch on • Check the bulb it should off when we switch off• Check the bulb material• Life of the bulb should meet the reqrmt