How to Write Test Case
What Is Test Case: A test case is a written artefact that details particular actions or events used to evaluate a software product against a set of criteria.
Test case's components:
- The ID of the Test Case.
- Features or functionalities that need testing.
- Test Scenario
- Test Data
- Details of the test environment
- Procedures for Execution
- Expected Result
- Actual Result
- Pass/Fail
- Comments/Attachments.
How to Write Test Case
- Identifying the Goal & Scope of the Test
- Test Activities Definition
- Establish a test framework
- Understanding Software Module
- Design Test Case
- Assign Test Priority
Tips for writing the Test Case: Dos and Don'ts
- Do's
- It must be clear, concise, and easy to understand.
- The user's perspective must be taken into account.
- A user of the traceability matrix.
- Give each test case an ID to manage and track the requirements and bugs.
- Try to create test cases that are independent, reusable, and repeatable.
- Dont's
- Do not include redundant or pointless test execution steps.
- Never consider or assume any needs without contacting the SRS or BRS.
- Avoid writing redundant test cases.
- Don't forget to have the Developer Team review the Test Cases.