Test Cases
What Is A Test Case And How To Write Test Cases?
Writing effective cases is a skill. You can learn it from the experience and knowledge of the application under test.
For basic instructions on how to write tests, please check the following video:
The above resources should give us the basics of the test writing process.
Levels of Test writing process:
- Level 1: In this level, you will write the basic cases from the available specification and user documentation.
- Level 2: This is the practical stage in which writing cases depend on the actual functional and system flow of the application.
- Level 3: This is the stage in which you will group some cases and write a test procedure. The test procedure is nothing but a group of small cases, maybe a maximum of 10.
- Level 4: Automation of the project. This will minimize human interaction with the system and thus the QA can focus on the currently updated functionalities to test rather than remaining busy with Regression testing.
Why do we Write Tests?
The basic objective of writing cases is to validate the test coverage of an application.
If you are working in any CMMi organization, then the test standards are followed more closely. Writing cases brings some sort of standardization and minimizes the ad hoc approach in testing.
How to Write Test Cases?
Fields:
- Test case id
- Unit to test: What to be verified?
- Assumptions
- Test data: Variables and their values
- Steps to be executed
- Expected Result
- Actual result
- Pass/Fail
- Comments
Basic Format of Test Case Statement
Verify
Using [tool name, tag name, dialog, etc]
With [conditions]
To [what is returned, shown, demonstrated]
Verify: Used as the first word of the test statement.
Using: To identify what is being tested. You can use ‘entering’ or ‘selecting’ here instead of using depending on the situation.
For any application, you need to cover all types of tests as:
- Functional cases
- Negative cases
- Boundary value cases
While writing these, all your TC’s should be simple and easy to understand.
Resource : https://www.softwaretestinghelp.com/how-to-write-effective-test-cases-test-cases-procedures-and-definitions/