Login

Username practice, password SuperSecret123. Three wrong passwords lock the account for 30 seconds.

Exercises

1. Log in successfully

Beginner

Log in with the practice account and confirm you reached the secure area.

Expected: the URL ends in secure.html, the green banner says you logged in, and the welcome text shows the username practice.

Show me how

2. Reject bad credentials

Beginner

Write one data-driven test that tries several bad inputs and checks each error message.

Expected: you stay on the login page and the red banner shows:

  • unknown username β†’ Your username is invalid!
  • wrong password β†’ Your password is invalid! 2 attempt(s) left.
  • both fields empty β†’ Username and password are required.
Show me how

3. Lock the account, then unlock it

Intermediate

Three wrong passwords lock the account for 30 seconds. Prove it, without making your test wait 30 real seconds.

Expected: the attempts count down (2 left, 1 left), the third failure says Too many failed attempts. Account locked for 30 seconds., the correct password is refused while locked, and it works again once 30 seconds have passed.

Show me how

4. Protect the secure area and log out

Beginner

Open the secure page directly without logging in, then log in, log out, and check you can't get back in.

Expected: visiting secure.html first sends you to login with You must log in to view the secure area. After logging out you see You logged out of the secure area., and the secure page redirects you again.

Show me how

5. Remember me

Beginner

Log in with Remember me ticked, then come back to the login page.

Expected: the username field is already filled with practice and the checkbox is still ticked. Without the tick, the field is empty next time.

Show me how