Difference Between Test Case and Test Scenario


A test case is a set of conditions for evaluating a particular feature of a software product to determine its compliance with the business requirements.
Whereas, a test scenario is generally a one line statement describing a feature of application to be tested. It is used for end to end testing of a feature and is generally derived from the use cases.

Let's now see the difference between the two -


#Test CaseTest Scenario
1. A test case contains clearly defined test steps for testing a feature of an application. A test scenario contains a high level documentation, describing an end to end functionality to be tested.
2. Test cases focus on "what to test" and "how to test". Test scenarios just focus on "what to test".
3. Test cases have clearly defined step, pre-requisites, expected results etc. Hence, there is no ambiguity. Test scenarios are generally one-liner. Hence, there is always possibility of ambiguity during testing.
4. Test cases can be derived from test scenarios and have many to one relationship with them. Test scenarios are derived from use cases.
5. Test cases are efficient in exhaustive testing of application. Test scenarios are beneficial in quick testing of end to end functionality of the application.
6. More resources are required for documentation and execution of test cases. Relatively less time and resources are required for creating and testing using scenarios.