Software Testing - Test Cases
What are test cases in software testing, how they are designed and why they are so important to the entire testing scenario, read through to know more..

A test case is a set of conditions or variables and inputs that are developed for a particular goal or objective to be achieved on a certain application to judge its capabilities or features.
It might take more than one test case to determine the true functionality of the application being tested. Every requirement or objective to be achieved needs at least one test case. Some software development methodologies like Rational Unified Process (RUP) recommend creating at least two test cases for each requirement or objective; one for performing testing through positive perspective and the other through negative perspective.
Test Case Structure
A formal written test case comprises three parts -
- Information
Information consists of general information about the test case. Information incorporates Identifier, test case creator, test case version, name of the test case, purpose or brief description and test case dependencies. - Activity
Activity consists of the actual test case activities. Activity contains information about the test case environment, activities to be done at test case initialization, activities to be done after test case is performed, step by step actions to be done while testing and the input data that is to be supplied for testing.
- Results
Results are outcomes of a performed test case. Results data consist of information about expected results and the actual results.
Test cases should be designed and written by someone who understands the function or technology being tested. A test case should include the following information -
- Purpose of the test
- Software requirements and Hardware requirements (if any)
- Specific setup or configuration requirements
- Description on how to perform the test(s)
- Expected results or success criteria for the test
Like This Article? Please Share!

- Software Testing Methodologies
- Software Testing - How To Go About For Beginners
- Software Testing - White Box Testing Strategy
- Software Testing - Black Box Testing Strategy
- Software Verification & Validation Model - An Introduction
- Software Testing Interview Questions
- Software Testing - How To Log a Bug (Defect)
- Software Testing - Check Lists For Software Tester
- Software Testing Interview Questions and Answers
- Software Testing - Bug and Statuses Used During A Bug Life Cycle
Post Comment | View Comments


