Skip to content

Instantly share code, notes, and snippets.

@up1
Last active August 29, 2015 14:19
Show Gist options
  • Save up1/f9db8296b87835cdffd6 to your computer and use it in GitHub Desktop.
Save up1/f9db8296b87835cdffd6 to your computer and use it in GitHub Desktop.
Robot framework :: variable
*** 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}
*** Testcases ***
Hello variable with arguments
Say hi robot framework
*** Keywords ***
Say hi
[Arguments] ${first} ${second}
Log to console ${first}
Log to console ${second}
*** Variables ***
@{MESSAGES} Robot Framework
*** Testcases ***
Hello list
Log to console @{MESSAGES}[0]
Log to console @{MESSAGES}[1]
*** 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