Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions tests/student_exercises/iberegsz_exercise1.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
*** Settings ***
Documentation Iberegsz - Exercise 1: Verify valid login for standard_user
Library Browser
Resource ../../resources/common.resource
Resource ../../resources/login_page.resource

Suite Setup Open SauceDemo
Suite Teardown Close SauceDemo

*** Test Cases ***
Valid Login With Standard User
[Documentation] Verify that ${VALID_USER} can log in successfully and reach the products page
[Tags] student exercise
Login With Credentials ${VALID_USER} ${VALID_PASSWORD}
Login Should Succeed
# Return to login page so other tests (if added) start from same state
Go To ${BASE_URL}

Login With Invalid Password Should Fail
[Documentation] Verify that wrong password shows an error message for ${VALID_USER}
[Tags] student exercise
Login With Credentials ${VALID_USER} wrong_password
Login Should Fail With Message Username and password do not match
Go To ${BASE_URL}
Loading