Si encuentras algún problema en tu código o proyecto, recuerda probar siempre en un ambiente de testing antes aplicar el código al proyecto final.
Ejemplo 1: casos de prueba para la página de inicio de sesión
how to write test cases for a Login page
UI Test Scenarios for Login Page
*Verify that all the labels and controls including text-boxes, buttons,and links are present on the Login page.*Verify that the font type and size of the labels and the text written on the different elements should be clearly visible.*Verify that the size, color,andUI of the different elements are as per the specifications.
Functional Test Scenarios for Login Page
1.Verify that as soon as the login page opens, by default the cursor should remain on the username textbox.2Verify that the user is able to navigate or access the different controls by pressing the ‘Tab’ key on the keyboard.3.Verify that the password is in masked form when entered.4.Verify that reset button functionality on the login page. Clicking on it should clear the textbox’s content.5.Verify if there is a checkbox with the label “remember password” on the login page.6.Verify that closing the browser should not log-out an authenticated user. Launching the application should lead the user to login state only.
Security Test Scenarios
1.Verify that there is a limit on the total number of unsuccessful login attempts. So that a user cannot usea brute-force mechanism to try all possible combinations of username-password.2.Verify that in case of incorrect credentials, a message like “incorrect username or password” should get displayed instead of an exact message pointing to the incorrect field. This is because a message like “incorrect password” will help a hacker in knowing that the username is correct and he just needs to try a different combination on the password field only.3.Verify the login session timeout duration. So, that once logged-in a user cannot be authenticated for a life-time.
To read complete post visit https://artoftesting.com/
Ejemplo 2: casos de prueba de funcionalidad de inicio de sesión
=Verify if a user will be able to login
with a valid username and valid password. Positive
=Verify if a user cannot login with a
valid username and an invalid password. Negative
=Verify the login page for both, when
the field is blank and Submit button is clicked. Negative
=Verify the ‘Forgot Password’ functionality. Positive
=Verify the messages for invalid login. Positive
=Verify the ‘Remember Me’ functionality. Positive
=Verify if the data in password field is
either visible as asterisk or bullet signs. Positive
=Verify if a user is able to login with a
newpassword only after he/she has changed the password. Positive
=Verify if the login page allows to
log in simultaneously with different
credentials in a different browser. Positive
=Verify if the ‘Enter’ key of the keyboard
is working correctly on the login page. Positive
Other Test Cases
=Verify the time taken to log in with a valid username and password.
Performance & Positive Testing
=Verify if the font, text color,and color coding
of the Login page is as per the standard.UI Testing & Positive Testing
=Verify if there is a ‘Cancel’ button
available to erase the entered text.
Usability Testing
=Verify the login page and all its controls
in different browsers
Browser Compatibility & Positive Testing.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)