What is a use case?

A use case is a description of the ways in which a user interacts with a system or product. A use case may establish the success scenarios, the failure scenarios, and any critical variations or exceptions. A use case can be written or made visual with the help of a use case model tool. 

The purpose of a use case is to manage scope, establish requirements, outline the ways a user will interact with the system and communicate technical requirements to stakeholders.

For example, the case diagram uses to analyses the scope of the final product.




Use case vs Test case
As a tester, you may get confused what is the differences between use case and test case.  The use case is based on the system requirements and helps to understand the end-user actions and the system's behavior. On the contrary, a test case is a document for a tester that aims to verify if a particular feature in the software is working perfectly. Therefore, use case is more high level comparing to test case. Test cases are derived from the use case and used in the testing phase of the SDLC methodology.




Test case vs Test scenario
Test Scenario is defined as any functionality that can be tested. It is also called Test Condition or Test Possibility. As a tester, you should put yourself in the end user’s shoes and figure out the real-world scenarios and use cases of the Application Under Test


Test case vs test scenario
Test cases are low level actions and it can be derived from test scenarios. Test scenarios are the high level classification of test requirement grouped depending on the functionality of a module and it can be derived from use cases.


How to write a test scenario for a use case?
  1. Step 1: test case ID
  2. Step 2: Test Description. ...
  3. Step 3: Assumptions and Pre-Conditions. ...
  4. Step 4: Test Data. ...
  5. Step 5: Steps to be Executed. ...
  6. Step 6: Expected Result. ...
  7. Step 7: Actual Result and Post-Conditions. ...
  8. Step 8: Pass/Fail.

Sources from: 
1. https://www.guru99.com/test-scenario.html
2. https://www.javatpoint.com/test-case-vs-test-scenarios
3. https://www.quora.com/What-is-the-difference-between-test-case-and-test-scenarios


Source from: https://www.modernanalyst.com/Resources/Articles/tabid/115/ID/2835/Why-Dont-Use-Cases-Just-Go-Away.aspx


Comments