Skip to content

Commit 3fb5a07

Browse files
beistvanHackXIt
authored andcommitted
Add tests by iberegsz
1 parent d28fb06 commit 3fb5a07

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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}

0 commit comments

Comments
 (0)