/
Robot Framework
Robot Framework
Example code written in Robot Framework from https://robotframework.org/#examples
*** Settings ***
Suite Setup Open Browser To Login Page
Suite Teardown Close Browser
Test Setup Go To Login Page
Test Template Login With Invalid Credentials Should Fail
Resource resource.txt
*** Test Cases *** User Name Password
Invalid Username invalid ${VALID PASSWORD}
Invalid Password ${VALID USER} invalid
Invalid Username And Password invalid whatever
Empty Username ${EMPTY} ${VALID PASSWORD}
Empty Password ${VALID USER} ${EMPTY}
Empty Username And Password ${EMPTY} ${EMPTY}
*** Keywords ***
Login With Invalid Credentials Should Fail
[Arguments] ${username} ${password}
Input Username ${username}
Input Password ${password}
Submit Credentials
Login Should Have Failed
Login Should Have Failed
Location Should Be ${ERROR URL}
Title Should Be Error Page
, multiple selections available,
Related content
Default code block vs code syntax highlighter
Default code block vs code syntax highlighter
Read with this
Getting Started Guide
Getting Started Guide
Read with this
Supported languages
Supported languages
Read with this