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 or not.

Example:

Login Test Case
Open the login page.
Enter your email.
Enter your password.
Click the Login button.
Check the result.

Expected Result:

The user should login successfully.

Types of Test Cases

Valid Login – User enters the correct email and password.

Invalid Password – User enters the wrong password.

Empty Fields – User leaves the fields empty.

Invalid Email – User enters an incorrect email.

Why do we use Test Cases?
Test cases help us to:
Find bugs
Check features
Make sure the software works correctly
Record Pass or Fail

Top comments (0)