Every tester has to write test cases or Test cases as well as Test Scenarios depending upon the depth of documentation being followed in there respective organization. Some times, it becomes difficult for some one new to understand the difference between them so lets understand what exactly is Test Case & Test Scenario.
Test Scenario basically means a flow which a user can follow. A single Test Scenario can have multiple Test Cases but vice versa is not True. Lets understand with an example. User logging into website is scenario because this is a flow.
Test Case is a subset of Test Scenario. All test cases are derived from Test Scenarios. Taking the reference from example above, we can have following test cases:
- Login using Correct credentials on website
- Login using Incorrect username.
- Login using Incorrect password.
Similarly, we can have more Test cases to check for Validation of input fields
- Test for validation of username field to accept only valid email address (assuming username used on website is a email address).
- Test for size limit of password
- Test whether special characters are accepted as password
- Verify blank spaces are not accepted as password
- Verify blank password field is not accepted.
These are not the only test cases we can have. As a tester, we need to always strive to break the system in order to become better tester & increase our understanding about Application under Test. 🙂