Skip to content

TC102-002

Test Case description User login fails with invalid credentials
Test Case ID TC102-002
Author Eetu Savolainen
Date of creation 19.02.2024
Class Functional

Test description / objective

This test aims to verify that the system appropriately handles unauthorized access attempts by ensuring that user login fails when invalid credentials are provided. This is crucial for maintaining security within the system.

Test pre-state

  • Ensure that the system is operational and the user authentication feature is accessible.

Test steps

Step No. Step Description Expected Result
1 Open the login page of the application Login page should appear
2 Enter an incorrect username and/or password into the respective fields The system accepts the input without indicating any errors until the user attempts to submit the form
3 Click on the "Login" or equivalent button to submit the credentials When the "Login" button is clicked with incorrect credentials, an error message should appear indicating that the login attempt failed

To be taken into account during test

  • Verify the behavior of the system when incorrect username is provided.
  • Verify the behavior of the system when incorrect password is provided.

Test result (Pass/Fail Criteria)

  • PASS condition:

    • If the system denies access and displays the appropriate error message when invalid credentials are provided, the test is considered to have passed.
  • FAIL condition:

    • If the system allows access despite providing invalid credentials or fails to display the appropriate error message, the test is considered to have failed.