DEV Community

Anandhi P
Anandhi P

Posted on

TEST CASE

A test case is a set of steps used to check whether a software feature works correctly.

Example: Login Page

Test Case 1: Check Login with valid details

Test Case ID: TC01
Test: Login with valid username and password
Steps: Enter username → Enter password → Click Login
Expected Result: User should successfully login.
Actual Result: User successfully logged in.
Status: Pass

What is Testing?

Testing is the process of checking a software or application to find bugs or errors and make sure it works correctly.

Types of Testing
Manual Testing – Testing is done manually by a tester.
Automation Testing – Testing is done using tools or scripts.
Functional Testing – Checks whether the features work correctly.
Non-Functional Testing – Checks performance, security, usability, etc.
Black Box Testing – Testing without looking at the source code.
White Box Testing – Testing by checking the source code.
Grey Box Testing – Tester has partial knowledge of the source code.
Unit Testing – Tests a small part of the application.
Integration Testing – Checks whether different modules work together.
System Testing – Tests the complete application.
Acceptance Testing – Checks whether the application meets user requirements.

BVA (Boundary Value Analysis):
It tests the values at the boundary (minimum and maximum).

Example: Age allowed: 18 to 60
Test: 17, 18, 19, 59, 60, 61

ECP (Equivalence Class Partitioning):
It divides the input into valid and invalid groups and tests one value from each group.

Example: Age allowed: 18 to 60

Top comments (0)