What is the difference between Use Case, Test Scenario and Test Case
Use Case | Test Case |
A use case is a list of actions or steps that defines interactions between a role (can be a user/external system) and a system to achieve a goal. | A test case is a group of conditions under which a tester will determine whether the developed system is working as per the design. |
Use cases apply for business purposes as well as to the developers to give a system overview. | Test cases are meant for the testers to test the system. |
The use case is derived from the System Requirement Specification. | The test case is derived from the use case. |
The result of the use cases is not verified. | The result of the test case is always gets verified with the expected output. |
It shows the path of each feature in the system against the user. | It executes each feature’s functionality against each user. |
Business analysts design use cases by collecting the requirement. | Test cases are designed by either the software analyst, QA team, or by the test engineer. |
Use cases aren’t dependent on test cases. They work with requirements. | A test case is dependent on use cases as they describe the required steps. |
The use case interacts with the user. | The test case interacts with the result. |
The use case isn’t used for execution. Instead, they can be useful in the requirement gathering phase and the design phase of the system. | A test case is executed in the testing phase of the software development life cycle. |
Test Scenario | Test Case |
---|---|
A test scenario contains high-level documentation which describes an end to end functionality to be tested. | Test cases contain definite test steps, data, expected results for testing all the features of an application. |
It focuses on more “what to test” than “how to test”. | A complete emphasis on “what to test” and “how to test.”. |
Test scenarios are a one-liner. So, there is always the possibility of ambiguity during the testing. | Test cases have defined a step, pre-requisites, expected result, etc. Therefore, there is no ambiguity in this process. |
Test scenarios are derived from test artifacts like BRS, SRS, etc. | Test case is mostly derived from test scenarios. Multiple Test case can be derived from a single Test Scenario |
It helps in an agile way of testing the end to end functionality | It helps in exhaustive testing of an application |
Test scenarios are high-level actions. | Test cases are low-level actions. |
Comparatively less time and resources are required for creating & testing using scenarios. | More resources are needed for documentation and execution of test case |
Comments
Post a Comment