[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...a test case? How to create a good test case? Can...

<< Back to: comp.software.testing Frequently Asked Questions (FAQ)

Question by unome
Submitted on 10/29/2003
Related FAQ: comp.software.testing Frequently Asked Questions (FAQ)
Rating: Rate this question: Vote
What is a test case? How to create a good test case? Can anyone provide me some free online resources which will teach software testing and QA to a fresher?


Answer by shanthi
Submitted on 12/3/2003
Rating:  Rate this answer: Vote
Test cases is a sequence of steps to test the correct behavior of a functionality/feature of an application

A test case should have an input description, Test Sequence and an Expected Behaviour.
ex.,
Test Sequence:
Schedule a report [ This can be treated as a Title as well as Test Sequence. Sequence here is the order in which this step is to be executed. The test case document should be prepared in such a way that the test cases should follow a sequence]

Test Input Description:
1.Login to <Abc page> as administrator.
2. Go to Reports page
3. Click on the ‘Schedule reports' button
4. Add reports
5. Update

Expected Results:
The report schedule should get added to the report schedule table. Provisioning status of the reports should get handled


 

Answer by gambler
Submitted on 3/21/2004
Rating:  Rate this answer: Vote
test case: A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement. After [IEEE,do178b]

 

Answer by MUGO
Submitted on 5/15/2004
Rating:  Rate this answer: Vote
A test case is a list of the conditions  or issues of what the tester want to test in a software. For example a group of interviewers will first identify the areas they  want to ask you questions on before coming up with the specific questions.
Test case helps to come up with test data ( just like the scenario of interview above)

 

Answer by shravan
Submitted on 5/26/2004
Rating:  Rate this answer: Vote
testcase is a document which describes INPUT,ACTION,EVENT and EXPECTED RESPONSE to determine if feature of an application is working correctly or not .

 

Answer by eric
Submitted on 6/16/2004
Rating:  Rate this answer: Vote
Test Case need not be a document.

 

Answer by sniknej
Submitted on 10/20/2004
Rating: Not yet rated Rate this answer: Vote
A test Case is a part of the functionality of the system( "software") that need to be tested. Almost in Software Engineering a test case come from the Use Case of a system, for example An Use Case Log In, can have the test Case, Log In and the test will be oriented to what is expected if it's a correct login, another test for log in can be done by verifying if the login is incorrect.

 

Answer by Madan Prasanna M
Submitted on 12/20/2004
Rating: Not yet rated Rate this answer: Vote
The objective of any Testing activity is to find the defects at the earliest stage. To test a product we must know

1. "What all the features to be tested?" (Objective of testing)

2. "How to test the features?" (Steps to test the objective)

3. "What will be the result if I execute the steps given to test the features?" (Expected behavior of the output for the objective)

So, a good test case should be more precise. And it should be more focus towards testing one particular functionality rather than covering all functionality.

 

Answer by Mr. know all
Submitted on 12/20/2004
Rating: Not yet rated Rate this answer: Vote
shravan answer is 100% correct on testcases.
Good test cases help to identify errors in the AUT (Application Under Test).

 

Answer by anitha
Submitted on 8/24/2005
Rating: Not yet rated Rate this answer: Vote
Where do we use shell script in Testing

 

Answer by nikhilesh ramteke
Submitted on 8/25/2005
Rating: Not yet rated Rate this answer: Vote
Test case is basically a document in which discription of functionality of components of a particular software/hardware is written. Other sections of test case have output , expected result, steps to describe the bug , remarks ..etc. ( if you wanna discuss things about testing please feel free to mail me at nikhleshr@lambenttek.com)

 

Answer by gurav
Submitted on 8/31/2005
Rating: Not yet rated Rate this answer: Vote
test case is an algorithm approach to test the functionality and behavior by feeding known data and comparing the same with the expected values

 

Answer by Deepak
Submitted on 11/26/2005
Rating: Not yet rated Rate this answer: Vote
test-case is a document which describes INPUT,ACTION,EVENT and EXPECTED RESPONSE to determine if feature of an application is working correctly or not

 

Answer by Brijesh Gowda
Submitted on 12/7/2005
Rating: Not yet rated Rate this answer: Vote
Testcase is a document which describes INPUT,ACTION,EVENT which is occuring due to input and EXPECTED RESPONSE to determine if feature of an application is working correctly or not and if it is according to cusmer requirement or not.

 

Answer by Yogesh
Submitted on 12/15/2005
Rating: Not yet rated Rate this answer: Vote
A test case is a document that describes an input, action, or event and an expected response, to determine if a feature of an application is working correctly. A test case should contain particulars such as test case identifier, test case name, objective, test conditions/setup, input data requirements, steps, and expected results.

 

Answer by Suresh Kumar N.
Submitted on 1/25/2006
Rating: Not yet rated Rate this answer: Vote
Test case is used for create good project.
because that only the no.of possibles returned.

 

Answer by reddy
Submitted on 1/30/2006
Rating: Not yet rated Rate this answer: Vote
A test case is nothing but a document.specifying the conditions governing the items to be tested.

 

Answer by TonyBresse
Submitted on 2/3/2006
Rating: Not yet rated Rate this answer: Vote
A Test case is a sequence of steps to be executed to test the expected results for a part of am application.

A test case could be defined for any of the following:

Data entry or data displayed
Functionality flow
Calculation
Desired output
Drop down list values
Data ranges and data values

Basically anything the tester need to define to make sure the application does not functional incorrectly at any certain scenario.

 

Answer by Basant
Submitted on 2/9/2006
Rating: Not yet rated Rate this answer: Vote
Test cases is a sequence of steps by step test the correct behavior of a functionality/feature of an application.

A test case should have an input description, Test Sequence and an Expected Behaviour.

 

Answer by Mukund
Submitted on 3/5/2006
Rating: Not yet rated Rate this answer: Vote
I am sending you a general format which is enough in itself

Test Case Number   TC-CMAST-0002
   Testing Engineer   
Test Status      Date   
Test Description:                      To Create the Salary-Grade’s Master.

Test Environment
   Software’s Master module with the full excess to create master.
Test Data   
Steps   Action   Expected Result   Pass/Fail
1.   Open the Salary-Grade’s Master screen   System shows a screen where you can enter the initial salary, increment amount, up to amount.   

2.   Enter the initial salary.   System should show a message if it is not in the range 3500-15,000.   
3.   Enter increment amount   System should show a message if it is not in the range 350-500.   
4.   Enter up to amount.   System should show a message if it is not in the range 4000-15,000.   
5.   Save the Salary-Grade in master.   System should show a message ‘Grade Saved Successfully’   

 

Answer by koti
Submitted on 4/9/2006
Rating: Not yet rated Rate this answer: Vote
What are good Test cases?

 

Answer by Mohd Faizan khan
Submitted on 4/17/2006
Rating: Not yet rated Rate this answer: Vote
Test cases are Set of Input and Action that  makes sure S/w  or product is as per specification and user required.

Quality of Good Test case:-

1. Atomic(only for one result one testcase. don't nest number of things with one case)
2. More descriptive(Without any Help Program or Boss can uderstand exactly What is problem.)
3. High light those words which have Direct meaning for that test)

 

Answer by gopikrishnay3j
Submitted on 7/5/2006
Rating: Not yet rated Rate this answer: Vote
ok

 

Answer by Param.abhi
Submitted on 7/11/2006
Rating: Not yet rated Rate this answer: Vote
“A test idea is a brief statement of something that should be tested. For example, if you're
testing a square root function, one idea for a test would be ‘test a number less than zero’.
The idea is to check if the code handles an error case.”

 

Answer by sunil
Submitted on 7/11/2006
Rating: Not yet rated Rate this answer: Vote
testcase is adescription of what is to be tested what data to be inserted what actions to be done to check the actual result against the expected result.
Testcase should not contain if statements.
INPUT:data availability
      system availability


 

Answer by tyrtyr
Submitted on 8/8/2006
Rating: Not yet rated Rate this answer: Vote
FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts

 

Answer by VASUDEVA GAURAV
Submitted on 8/22/2006
Rating: Not yet rated Rate this answer: Vote
A test case consists:-
1) introduction:- TEST CASE ID,NAME
2.) activity:- PRECONDITIONS,POST CONDITIONS,ENVIORNMENT.
3.) results:- EXPECTED RESUILTS,ACTUAL RESULTS,PASS/FAIL

 

Answer by sathish reddy
Submitted on 8/29/2006
Rating: Not yet rated Rate this answer: Vote
testcase defines how to test a perticular object in perticular condition what inputs are required what should be provided what we expected from the execution a test test cases find out errors in the functionality

 

Answer by Yana
Submitted on 9/19/2006
Rating: Not yet rated Rate this answer: Vote
A testcase is a series of Steps that identifies a test procedure with an Expected Result. There should always be a Product Name and Product Area, Title, Steps to Reproduce and Expected Results. You can always leave some additional Notes below and a Priority for importance level.

 

Answer by Ray
Submitted on 10/11/2006
Rating: Not yet rated Rate this answer: Vote
Rachel

 

Answer by shailendra saxena
Submitted on 11/7/2006
Rating: Not yet rated Rate this answer: Vote
Test cases are the implementation of a test case design which will help the software tester to detect Bugs in an application.
            When i write a test case, i think of both types of test cases i.e. positive and negative test cases.Positive test cases are those which executes the happy path in the application and make sure that the happy path is working fine. Negative test cases as the name suggests are destructive test cases which are documented with some out of box thinking to break the system.
      The test cases should involve the following points,
1. Test case name.
2. Objective/purpose.
3. Pre-Requisites.
4. Prepared by.
5. Test case ID.
6. Test Case description.
7. Steps to be executed.
8. Expected result.
9. Actual result.
10. Priority.
11. Severity.
12. Pass/Fail criteria.
13. Bug Number.
14. Test result.

 

Answer by nrk1947
Submitted on 11/18/2006
Rating: Not yet rated Rate this answer: Vote
There are 3 types of test cases

1. User interface test case
2. positive test case
3. negative test case

I. Guide lines to write user interface test cases.

i. Check for the availablity of all the objects.

ii. Check for the enabled property of all the objects.

iii. Check for the colors, font color, font size, font type and consistency.

iv. Check the spellings and grammer.

II. Guide lines to write positive test cases.

i. A test engineer should have positive perception.

ii. A test engineer should consider the positive flow of the application.

iii. A test engineer should use only the valid inputs to develop positive cases.

III. Guide lines to write negative test cases.

i. A test engineer should have negative perception.

ii. A test engineer should consider the negative flow of the application.

iii. A test engineer should use only the invalid inputs to develop negative cases.

 

Answer by Syed Tabish Ghazi
Submitted on 11/26/2006
Rating: Not yet rated Rate this answer: Vote
Test cases are the specific inputs that you’ll try and the procedures that you’ll follow when you test the software.

 

Answer by satya007
Submitted on 12/3/2006
Rating: Not yet rated Rate this answer: Vote
test case is collection of way through which we  
can test functionality/feature of our application.

 

Answer by hieuthu
Submitted on 12/5/2006
Rating: Not yet rated Rate this answer: Vote
hieuthu

 

Answer by krips
Submitted on 12/19/2006
Rating: Not yet rated Rate this answer: Vote
A test case is a set of conditions or variables under which a tester will determine if a requirement upon an application is partially or fully satisfied.

 

Answer by bujji
Submitted on 1/15/2007
Rating: Not yet rated Rate this answer: Vote
For good test case:
==================
1.Test should be independent
2.easy understandable
3.it should avoid spelling & grammatical mistakes
4.it should avoid duplicates
5.it should cover more than one functionality against requirements.

.

 

Answer by ayyappan
Submitted on 2/1/2007
Rating: Not yet rated Rate this answer: Vote
Test Cases:

test case means for each test conditions a list test cases will be written. based upon the type of testing. for example if it is a then lot of negative test cases. which can break a system will be written.

 

Answer by ramu
Submitted on 2/1/2007
Rating: Not yet rated Rate this answer: Vote
a test case is a set of conditions or variables under which a tester will determine if a requirement upon an application is partially or fully satisfied. It may take many test cases to determine that a requirement is fully satisfied. In order to fully test that all the requirements of an application are met, there must be at least one test case for each requirement unless a requirement has sub requirements. In that situation, each sub requirement must have at least one test case.

 

Answer by raavidurga
Submitted on 3/7/2007
Rating: Not yet rated Rate this answer: Vote
Test case is a Sequence of tests conducted during testing with description along with appropriate expected results for the requirement.

 

Answer by rajeev jha
Submitted on 3/27/2007
Rating: Not yet rated Rate this answer: Vote
test cases is method for finding the bug by matching the expected result with the actual result
test cases writing is the process of , writing test critecria and expected result .....
    

 

Answer by Azzu
Submitted on 4/17/2007
Rating: Not yet rated Rate this answer: Vote
A Test Case is a documentation specifying inputs, predicted results, and a set
of execution conditions for a test item to verify compliance with a specific requirement.

 

Answer by Satish Shetty
Submitted on 4/18/2007
Rating: Not yet rated Rate this answer: Vote
It is a documetn that decribe input,action or event and an expected response, and to determine if the feature of the application working correctly.


Note that the process of developing test cases can help find problems in the requirements or design of an application, since it requires completely thinking through the operation of the application. For this reason, it's useful to prepare test cases early in the development cycle if possible.


 

Answer by Siva Prasad KV
Submitted on 4/20/2007
Rating: Not yet rated Rate this answer: Vote
Test cases is a sequence of steps to test the correct behavior of a functionality/feature of an application

A test case should have an input description, Test Sequence and an Expected Behaviour.
ex.,
Test Sequence:
Schedule a report [ This can be treated as a Title as well as Test Sequence. Sequence here is the order in which this step is to be executed. The test case document should be prepared in such a way that the test cases should follow a sequence]

Test Input Description:
1.Login to <Abc page> as administrator.
2. Go to Reports page
3. Click on the ‘Schedule reports' button
4. Add reports
5. Update

Expected Results:
The report schedule should get added to the report schedule table. Provisioning status of the reports should get handled

A test case is a list of the conditions  or issues of what the tester want to test in a software. For example a group of interviewers will first identify the areas they  want to ask you questions on before coming up with the specific questions.
Test case helps to come up with test data ( just like the scenario of interview above)

 

Answer by Rajasekhar Reddy
Submitted on 4/20/2007
Rating: Not yet rated Rate this answer: Vote
- A test case is also defined as a sequence of steps to test the correct behavior of a functionality/feature of an application.
- A set of inputs, execution preconditions, and expected outcomes developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement.
- A test case is a list of the conditions or issues of what the tester want to test in a software. Test case helps to come up with test data. A test case has an input description, Test sequence and an expected behavior.
The characteristics of a test case is that there is a known input and an expected output, which is worked out before the test. The known input should test a pre-condition and the expected output should test a post-condition.
Under special circumstances, there could be a need to run the test, produce results - and a team of experts evaluate if the results can be considered as passed. The first test is taken as the base line for subsequent test / product release cycles.
Test cases include a description of the functionality to be tested taken from either the requirements or use cases, and the preparation required to ensure that the test can be conducted.

 

Answer by saikanna
Submitted on 4/23/2007
Rating: Not yet rated Rate this answer: Vote
test case is an approach to find the defects consists of expected  and actual results. Test cases should be written in such a way that, negative test case should be written at the first and positive test case at the last.

 

Answer by Pradeep
Submitted on 4/27/2007
Rating: Not yet rated Rate this answer: Vote
Test Case is a document consisting of inputs,preconditions, steps to be performed on the Application Under Test and the expected Results.

 

Answer by Agata
Submitted on 5/7/2007
Rating: Not yet rated Rate this answer: Vote
http://www.kaner.com/pdfs/GoodTest.pdf

 

Answer by Samrat Ashok
Submitted on 5/9/2007
Rating: Not yet rated Rate this answer: Vote
Everything is good but need somemore explanations correctly

 

Answer by hari
Submitted on 5/10/2007
Rating: Not yet rated Rate this answer: Vote
test case is condition with required details i.e, inputs and expected out comes to implement test

 

Answer by nunnu
Submitted on 5/12/2007
Rating: Not yet rated Rate this answer: Vote
test case is the documented form of the various steps/actions taken to check the functionality of an application.

 

Answer by kishore
Submitted on 5/22/2007
Rating: Not yet rated Rate this answer: Vote
Test case is a document for development team which refers the input action or event to get an expected output.

 

Answer by surya
Submitted on 5/26/2007
Rating: Not yet rated Rate this answer: Vote
a testcase is a set of conditioms or veriables under which a tester will determine if a requirment or usecase upon application is partially or fully satisfied

 

Answer by chowdary
Submitted on 5/29/2007
Rating: Not yet rated Rate this answer: Vote
check list of all the perceptions of a test engineer

 

Answer by ÇÄìÓ
Submitted on 6/1/2007
Rating: Not yet rated Rate this answer: Vote
plz provide more detail of the above topic "how to write better test cases

 

Answer by mandy
Submitted on 6/7/2007
Rating: Not yet rated Rate this answer: Vote
its combination of input,output & conditions.

 

Answer by irfan ahmad
Submitted on 6/10/2007
Rating: Not yet rated Rate this answer: Vote
i want to learn software testing can any one teach me online

 

Answer by Laxmikant
Submitted on 6/13/2007
Rating: Not yet rated Rate this answer: Vote
Test case is a document which consist the input ,action and output of the particular function, and also see the function is working correctly or not.

 

Answer by Irvin
Submitted on 6/26/2007
Rating: Not yet rated Rate this answer: Vote
Most of these answers are incorrect.  They describe, instead, the test scripts used to verify the test case.  A test case is a function to be tested independently of other functions.  Multiple Functional Requirements result from a Business Requirement.  Each Functional Requirement is the root of one or multiple Test Cases.  The test case consist of providing information about the specific function to be tested and (usually) a form with column headings:
1.  Step number
2.  Action of tester
3.  Expected Result of action
4.  Actual Result
5.  Pass/Fail

So 1BR leads to several FRs which lead to one Test case per function.

 

Answer by Divya
Submitted on 6/26/2007
Rating: Not yet rated Rate this answer: Vote
A test case is a doccument specifying inputs, expected value and a set of execution conditions for the test item.

 

Answer by ramya pillai
Submitted on 7/10/2007
Rating: Not yet rated Rate this answer: Vote
A test case is a series of steps that a tester needs to perform in order to test an application to find out what is the actual and expected behaviour of the application and also to find out the errors in the particular application

 

Answer by SHRAVAN B
Submitted on 7/10/2007
Rating: Not yet rated Rate this answer: Vote
Test case is a step by step process to satisfy the functional and requirement test specifications. Test specification is combination of test conditions.

 

Answer by hussain
Submitted on 7/12/2007
Rating: Not yet rated Rate this answer: Vote
test case is a validation process that exercises a granular function of the application under test.

 

Answer by fdfd
Submitted on 7/16/2007
Rating: Not yet rated Rate this answer: Vote
sdfsdf

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: comp.software.testing Frequently Asked Questions (FAQ)


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.