Test Case is a scenario created to validate or test any program using sample data. The outcome of the test case determines whether the test is successful or failed. Successful execution of test case implies that business requirements met and program produces the desired results.
It is imperative to have test cases efficient, covering all the aspects of programs in order to validate. A test case may contain multiple steps.
Following are the characteristics of a test case:
- Completeness – A test case should be thorough, having necessary steps covering the requirements and business cases, clear mapping with requirements i.e. use cases.
- Clarity – Easy to understand and anyone can execute it.
- Sufficient Data – It must contain sufficient data perform test. Without sufficient and meaningful data a test case becomes inefficient and there are chances to overlook important data validations.
- Reference to dependent cases – Sometimes it is required to execute the other test cases to complete one cycle, the reference to such cases written clearly.
In general, test cases should be written in plan simple sentences, referring to Use Cases as and when required with complete traceability for requirements.
Quality Engineers write test cases based on different types of testing. Scope varies from Unit to System to Acceptance test cases. Irrespective of the type, each test case must have its basic characteristics. Happy writing test cases!
(Thank you Rashika, Test Engineer, Aithent Inc for sharing her experiences with test cases.)




Community Champion