File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,25 +4,24 @@ Documentation A test suite containing tests related to invalid login.
44... These tests are data-driven by they nature. They use a single
55... keyword, specified with Test Template setting, that is called
66... with different arguments to cover different scenarios.
7+ ...
8+ ... This suite also demonstrates using setups and teardowns in
9+ ... different levels.
710Suite Setup Open Browser To Login Page
811Suite Teardown Close Browser
912Test Setup Go To Login Page
1013Test Template Login With Invalid Credentials Should Fail
1114Resource resource.txt
1215
13-
1416*** Test Cases *** User Name Password
15-
1617Invalid Username invalid ${VALID PASSWORD}
1718Invalid Password ${VALID USER} invalid
1819Invalid Username And Password invalid whatever
1920Empty Username ${EMPTY} ${VALID PASSWORD}
2021Empty Password ${VALID USER} ${EMPTY}
2122Empty Username And Password ${EMPTY} ${EMPTY}
2223
23-
2424*** Keywords ***
25-
2625Login With Invalid Credentials Should Fail
2726 [Arguments] ${username} ${password}
2827 Input Username ${username}
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ Documentation A resource file with reusable keywords and variables.
55... domain specific language.
66Library Selenium2Library
77
8-
98*** Variables ***
10-
119${SERVER} localhost:7272
1210${BROWSER} Firefox
1311${DELAY} 0
@@ -17,9 +15,7 @@ ${LOGIN URL} http://${SERVER}/
1715${WELCOME URL} http://${SERVER}/welcome.html
1816${ERROR URL} http://${SERVER}/error.html
1917
20-
2118*** Keywords ***
22-
2319Open Browser To Login Page
2420 Open Browser ${LOGIN URL} ${BROWSER}
2521 Maximize Browser Window
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ Documentation A test suite with a single test for valid login.
55... the imported resource file.
66Resource resource.txt
77
8-
98*** Test Cases ***
10-
119Valid Login
1210 Open Browser To Login Page
13- Input Username ${VALID USER}
14- Input Password ${VALID PASSWORD}
11+ Input Username demo
12+ Input Password mode
1513 Submit Credentials
1614 Welcome Page Should Be Open
1715 [Teardown] Close Browser
You can’t perform that action at this time.
0 commit comments