Last active
August 29, 2015 14:19
-
-
Save up1/f9db8296b87835cdffd6 to your computer and use it in GitHub Desktop.
Robot framework :: variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Variables *** | |
${BASE_URL} url1 | |
${BASE URL} url2 | |
${BASEURL} url3 | |
*** Testcases *** | |
Hello scalar variable | |
Log to console ${BASE_URL} | |
Log to console ${BASE URL} | |
Log to console ${BASEURL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Testcases *** | |
Hello variable with arguments | |
Say hi robot framework | |
*** Keywords *** | |
Say hi | |
[Arguments] ${first} ${second} | |
Log to console ${first} | |
Log to console ${second} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Variables *** | |
@{MESSAGES} Robot Framework | |
*** Testcases *** | |
Hello list | |
Log to console @{MESSAGES}[0] | |
Log to console @{MESSAGES}[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library Selenium2Library | |
Test Teardown Close Browser | |
*** Variables **** | |
${BROWSER} firefox | |
*** Testcases *** | |
My blog | |
Open Browser http://www.somkiat.cc ${BROWSER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment