File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ *** Settings ***
2+ Documentation Iberegsz - Exercise 1: Verify valid login for standard_user
3+ Library Browser
4+ Resource ../../resources/common.resource
5+ Resource ../../resources/login_page.resource
6+
7+ Suite Setup Open SauceDemo
8+ Suite Teardown Close SauceDemo
9+
10+ *** Test Cases ***
11+ Valid Login With Standard User
12+ [Documentation] Verify that ${VALID_USER} can log in successfully and reach the products page
13+ [Tags] student exercise
14+ Login With Credentials ${VALID_USER } ${VALID_PASSWORD }
15+ Login Should Succeed
16+ # Return to login page so other tests (if added) start from same state
17+ Go To ${BASE_URL }
18+
19+ Login With Invalid Password Should Fail
20+ [Documentation] Verify that wrong password shows an error message for ${VALID_USER}
21+ [Tags] student exercise
22+ Login With Credentials ${VALID_USER } wrong_password
23+ Login Should Fail With Message Username and password do not match
24+ Go To ${BASE_URL }
You can’t perform that action at this time.
0 commit comments