Test Case Design Examples
1). How hit nosotros write examine cases without documents or knowing the requirements?
We tin become to adopt a testing technique called Exploratory Testing. According to James Bach exploratory testing is defined every bit "an interactive physical care for of concurrent production exploration, examine design, in addition to examine execution."
2). what are the examine cases for i Rupees Coin Box (Telephone box)?
Positive examine cases:
TC1: Pick upwardly the Handset
Expected: Should display the message " Insert i rupee coin"
TC2: Insert the coin
Expected: Should display the message " Dial the Number"
TC3: When you lot instruct a busy tone, hang-up the receiver
Expected: The inserted i rupee money comes out of the locomote out door.
TC4: Finish off the conversation in addition to hang-up the receiver
Expected: The inserted coin should non come upwardly out.
TC5: During the conversation, inward illustration of a local call, (assume the duration is of lx sec), when 45 every bit are completed
Expected: It should prompt you lot to insert or hence other money to choke on past times giving beeps.
TC6: In the higher upwardly scenario, if or hence other money is inserted
Expected: lx second volition live added to the counter.
TC7: In the TC5 scenario, if you lot don't insert i to a greater extent than coin.
Expected: The telephone shout out upwardly gets ended.
TC8: Pick upwardly the receiver. Insert appropriate one rupee coin; Dial the number subsequently hearing the band tone. Assume it got connected in addition to you lot are getting the band tone. Immediately you lot terminate upwardly the call.
Expected: The inserted i rupee money comes out of the locomote out door.
3). How volition you lot review examine cases?
By next a Test Case Review Checklist, every bit detailed below
Test Case Preparation checklist: This is used to ensure Test cases have got been prepared every bit per specifications. For all the examine responses the examine illustration training review checklist examine mgr volition assess the deport upon & document it every bit an number to concerned parties for resolution. This tin live assessed using weekly status reports or emails.
|
4) Explain nearly Use Cases?
In software engineering, a Use Case is,
1. Influenza A virus subtype H5N1 technique for capturing the potential requirements of a novel organization or software change.
2. Each utilisation illustration provides i or to a greater extent than scenarios that select how the organization should interact alongside the terminate user or or hence other organization to attain a specific line of piece of occupation organization goal.
3. Use cases typically avoid technical jargon, preferring instead the linguistic communication of the terminate user or domain expert.
4. Use cases are oftentimes co-authored past times software developers in addition to terminate users.
5) Write examine cases for jail cellular telephone phone
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 telephone n banking company stand upwardly for
4) Add i user alongside refer in addition to telephone number inward Address book
5) Check the Incoming telephone shout out upwardly
6) Check the outgoing telephone shout out upwardly
7) Send/receive messages for that mobile
8) Check all the numbers/Characters on the telephone working fine past times clicking on them.
9) Remove the user from telephone mass in addition to banking company stand upwardly for removed properly alongside refer in addition to telephone number
10) Check whether Network working fine.
6) Test cases for java machine?
1. Plug the mightiness cable in addition to press the on button. The indicator bulb should glow indicating the machine is on.
2. Whether at that topographic point are 3 dissimilar buttons Red, Blue in addition to Green.
3. Whether Red indicated Coffee.
4. Whether Blue indicated Tea.
5. Whether Green indicated Milk.
6. Whether each push produces the right out position (Coffee, Tea or Milk).
7. Whether the desired out position is hot or non (Coffee, Tea or Milk).
8. Whether the quantity is exceeding the specified the bound of a cup.
9. Whether the mightiness is off (including the mightiness indicator) when pressed the off button.
10. Verify the Output without Coffee Mix, Milk, Tea Mix inward the machine
7) What are Test cases for appointment acre validation?
(Third political party Calendar controls/date pickers volition have got a text box attached alongside a button/icon beside it)
Ans: You tin consider the next examine cases for a calendar control.
1. Ensure that calendar window is displayed in addition to active, when the calendar is invoked past times pressing the calendar icon. (Once nosotros faced an issue, the calendar window is inward minimized Blue Planet when nosotros invoked the calendar.)
2. Ensure that calendar appointment is defaulted to organization date.
3. Ensure that when a appointment is selected inward the calendar (double click, or or hence other method), the selected appointment is displayed inward the text box.
They may live many other cases, if the text box is editable or not, purpose of the appointment acre used etc.
8) What tin live the possible examine cases for the Computer Mouse?
1. To banking company stand upwardly for the mouse company
2. Whether it is a PS/2, USB or series port mouse or cordless mouse
3. It should live plugged to all the ports of dissimilar manufacturers
4. It should live platform independent.
5. Right clicking on the mouse should opened upwardly the context window.
6. Double clicking on whatever folder should opened upwardly up the file
7. Should live able to scroll upwardly in addition to downward using the scroll push on the mouse.
8. Should live able to alter the functionality of the right in addition to left mouse past times changing the settings.
9. Should live able to dot to the scrollbar in addition to hence drag upwardly in addition to down.
10. Should ever dot to the right place, where it is intended to point.
9) What are GUI examine cases?
GUI examine cases are designed to demeanour Usability Testing to verify User Friendliness of the given application alongside honour to human face & feel, spell mistakes, the alignment & total objects availability in addition to their access alongside input devices.
10) What is the departure betwixt positive in addition to negative examine cases
Positive Testing = (Not showing error when non supposed to) + (Showing error when supposed to) So if either of the situations inward parentheses happens you lot have got a positive examine inward damage of its outcome - non what the examine was hoping to find. The application did what it was supposed to do. Here user tends to position all positive values according to requirements.
Negative Testing = (Showing error when non supposed to) + (Not showing error when supposed to)(Usually these situations crop upwardly during boundary testing or cause-effect testing.) Here if either of the situations inward parentheses happens you lot have got a negative examine inward damage of its outcome - again, non what the examine was hoping to find. The application did what it was non supposed to do. User tends to position negative values, which may crash the application.
For illustration inward Registration Form, for Name field, user should live allowed to instruct inward exclusively alphabets. Here for Positive Testing, tester volition instruct inward exclusively alphabets in addition to application should run properly in addition to should select exclusively alphabets. For Negative Testing, inward the same illustration user tries to instruct inward numbers, special characters in addition to if the illustration is executed successfully, negative testing is successful.
11) Writing Testcase on Yahoo Mail Page subsequently login
Testcase1: To verify that when nosotros click ship service push whether it listing all the compose in addition to banking company stand upwardly for ship service etc options or not
Description: click on the ship service button
Expected result: Clicking of the ship service push lists all the options banking company stand upwardly for ship service in addition to compose etc
Testcase2: To verify that when nosotros click banking company stand upwardly for ship service selection inward the ship service listing whether it takes you lot to inbox page or not
Description: click on banking company stand upwardly for ship service option
Expected result: banking company stand upwardly for ship service selection opens the inbox page
Testcase3: To verify that when you lot click the inbox whether it displays u r received mails or not
Description: click the inbox button
Expected result: It lists all the mails u received inward the inbox
Testcase4: To verify when u click the compose selection inward the ship service push whether it takes u to compose page where u tin compose in addition to ship mails
Description: click on the compose selection inward the ship service button
Expected result: it takes u to compose page
Testcase5: To verify that subsequently writing message when you lot click on ‘Send’ whether ship service is sent to the address where you lot specified
Description: give ship service id for which you lot wishing to ship the message inward the ‘To’ acre in addition to write the message inward compose box in addition to click on ship button
Expected result: it sending the ship service to the ship service id which u are given inward the TO field
Testcase6: To verify if you lot give incorrect id whether it gives failure notice or not
Description: Give incorrect ship service id inward compose page inward the ‘To’ acre in addition to watch what happens
Expected result: In your inbox i failure notice volition come
Like this u tin write whatever no of examine cases on yahoo ship service page
12) What is defect leakage?
Defect Leakage is also referred to every bit 'Defect Seepage. Defect Seepage is 'How many defects related to i special stage is non getting captured inward the same phase.
For Example: requirements related defects should live captured inward Requirements review. Not inward unit of measurement testing or organization testing.
13) Which of the next statements nearly generating examine cases is false?
(a) Test cases may incorporate multiple valid examine conditions
(a) Test cases may incorporate multiple valid examine conditions
(b) Test cases may incorporate multiple invalid examine conditions
(c) Test cases may incorporate both valid in addition to invalid examine conditions
(d) Test cases may incorporate to a greater extent than than i step
(e) Test cases should incorporate expected results
Ans: No Statement is False
14) What is VSS? Explain?
VSS: VSS stands for Visual Source Safe. It is a configuration management tool. It is a virtual library of figurer files. Users tin read whatever of the files inward the library at whatever time, but inward society to alter them, they must foremost banking company stand upwardly for the file out. They are hence allowed to modify the file in addition to finally banking company stand upwardly for it dorsum in. Only subsequently they banking company stand upwardly for the file inward are their changes made available to other users.
Configuration Management:
Definition #1: The physical care for of identifying in addition to defining the configuration items inward a software system, controlling the release, versioning in addition to alter of these items though out the software organization life cycle, recording in addition to reporting the status of configuration items in addition to alter requests, in addition to verifying the completeness in addition to correctness of configuration items.
Definition #2: The tracking in addition to command of software development. SCM systems typically offering version command in addition to squad programming features. SCM is an acronym for software configuration management, in addition to relates to configuration management (CM).
Configuration Management Tool: Influenza A virus subtype H5N1 software production providing automatic back upwardly for Change, Configuration or versions control.
15) What is SDLC in addition to briefly hash out the stages inward SDLC?
Gathering information, Analyze, Designing, Coding, Testing, Implementation in addition to Maintenance.
Where each stage has a good defined physical care for hence that the developed software meets the client or clients requirements inward the best in addition to most toll effective manner, without erring on the character of the product
16) Write a examine illustration for telephone?
Test illustration for telephone: 1. To banking company stand upwardly for connectivity of telephone line or cable 2.To banking company stand upwardly for dial musical note of the telephone 3. To banking company stand upwardly for the keypads spell you lot dial whatever valid number on the telephone 4. To banking company stand upwardly for band musical note alongside its mass levels 5.To banking company stand upwardly for vocalization of both sides (from in addition to to) of the telephone 6. To banking company stand upwardly for the display monitor of the phone. 7.To banking company stand upwardly for redial selection whether it’s surgical physical care for or non 8. To banking company stand upwardly for loudspeaker whether it is surgical physical care for or non whatever missing higher upwardly hence you lot tin add together whatever to a greater extent than examine cases
17) Design the examine cases on sending of the emails?
For testing sending an e-mail you lot tin write examine cases for.1) Performance: By using connections from dissimilar ISP's i.e. the speed.
2) If your e-mail id is POP compliant, hence banking company stand upwardly for if you lot tin sent it using e-mail clients.
3) If you lot e-mail tin live sent using an attachment.
4) Maximum attachment limit.
5) Maximum ship service size.
6) Sending to valid / invalid id's if ship service is received / bounced dorsum respectively.
18) What tin live the diverse examine cases for a pen?
v To banking company stand upwardly for the pen type
v To banking company stand upwardly for the pen cap is acquaint or not
v To banking company stand upwardly for the pen ink is filled or not
v To banking company stand upwardly for the pen writing or not
v To banking company stand upwardly for the ink color i.e dark or blue
v To banking company stand upwardly for the pen color
v To banking company stand upwardly for conditions the pen is used to write all types of papers or non
v To banking company stand upwardly for the ink capacity of the pen
v To banking company stand upwardly for the pen production past times fiber or plastic
19) Give examine illustration for withdraw module inward banking project
Step1: when the residue inward the line of piece of occupation organization human relationship is nil, essay to withdraw some amount (amount>0) should display msg every bit " insufficient funds inward acc"Step 2: when the line of piece of occupation organization human relationship has or hence residue amount, essay to withdraw amount(amount>balance amount inward account), should display "insufficient funds inward acc"
Step 3: when the line of piece of occupation organization human relationship has or hence residue amount, instruct inward a amount (amount<=balance amount), should withdrawn right amount from account.
Step 4: when the line of piece of occupation organization human relationship has or hence residue amount, instruct inward the amount every bit 0, should display msg every bit withdrawal amount should live > 0 in addition to should live inward multiple of hundreds( varies depending on reqs docs).
In the illustration of Minimum residue mandatory inward the Account:
Step 5: When the line of piece of occupation organization human relationship has residue amount, essay to withdraw whole amount , should display msg every bit " Minimum residue should live maintained".
Step 6: When the line of piece of occupation organization human relationship has residue amount=minimum balance, essay to withdraw any amount , should display msg every bit " Minimum residue should live maintained".
20) How to write examine illustration of Login window where user refer is editable to exclusively upto 8 alpha characters?
1 Enter User Name in addition to press LOGIN Button. User Name= COES. Should Display Warning Message Box "Please Enter User refer in addition to Password"
2 Enter Password in addition to press LOGIN Button. Password= COES. Should Display Warning Message Box "Please Enter User refer in addition to Password”
3 Enter user Name in addition to Password in addition to press LOGIN Button. "USER = COES AND Password = XYZ" (Wrong user refer & password). Should Display Warning Message Box "Please Enter User refer in addition to Password"
6 Enter user Name in addition to Password in addition to press LOGIN Button. "USER ="" "" AND Password = "" """(Blank values). Should Display Warning Message Box "Please Enter User refer in addition to Password"
7 Enter User Name in addition to Password in addition to press LOGIN Button. "USER = COES AND Password = COES" (Correct user refer & password). Should navigate to side past times side page.
8 Enter User Name in addition to Password in addition to press LOGIN Button "USER = ADMIN AND Password = ADMIN" (Correct user refer & password). Should navigate to Maintenance page.
21) How volition nosotros laid upwardly examine cases
Test cases are prepared on the footing of Requirement documents. Each society follows their ain format. The examine cases are 3 types.1.GUI Test cases
a. Availability b. Alignment C. Look in addition to Feel d. Spell checking
2.Positive examine cases
3.Negative examine cases
22)What is the Traceability matrix? What is its use?
Traceability Matrix is a document that provides cross-reference betwixt Requirements/ Use Cases alongside Test Cases in addition to Bugs. This document establishes the Traceability betwixt the requirements in addition to examine cases executed inward the organization testing. It also provides a reference to the specific requirement alongside reference to a special bug. 23) Detail on the contents of a Test Case Format every bit per IEEE 829?
q Test illustration id
q Test illustration name
q Feature to live tested
q Test suite id
q Priority
q Test environment
q Test effort
q Test duration
q Precondition
q Test procedure:
q
| Step No. | Actions | Input Reqd. | Expected | Actual | Results |
q Test illustration plough over or neglect criteria
24) How volition you check that your examine cases covered all the requirements
By using, Traceability matrix. Traceability matrix agency the matrix showing the human relationship b/w the requirements & examine cases
25) For a triangle (sum of 2 sides is greater than or equal to the 3rd side), what is the minimal number of examine cases required?
The respond is 3
1. Measure all sides of the triangle.
2. Add the minimum in addition to minute highest length of the triangle in addition to shop the outcome every bit Res.
3. Compare the Res alongside the largest side of the triangle.
----------------------------------------------------