*** Settings ***
Documentation <document>
Library <Library>
Library <python pakcage> WITH NAME <ref name>
Resource <file>
Suite Setup <keyword>
Suite Teardown <keyword>
Test Setup <keyword>
Test Teardown <keyword>
*** Test Cases ***
<test name>
<command> or <keyword>
*** Keywords ***
<command>
[Arguments] ${variable}
${variable} = <command> ${variable}
[Return] ${variable}
2+ space - between command and argument (recommend 4 space)
# use ellipsis (...) to continue the previous line
Default Tags a b c
... d e f
support only .html, .xhtml, .htm, .tsv, .txt, .rst, or .rest file in dir
environment variables - %{VARIABLE}
${THRESHOLD} ${65} # 65 is integer
${THRESHOLD} ${67.25} # 67.25 is float
${THRESHOLD} 65 # 65 is string
${true} - python True
${false} - python False
${None} - python None
--test example* #select test
--suite example-?? #select suite
*** Settings ***
Force Tags FunctionalTest
Default Tags ValidTest
*** Test Cases ***
invalid login
[Tags] InvalidTest
# Tag select
$ pybot -i InvalidTest login_tests.txt
$ pybot --include InvalidTest login_tests.html
$ pybot -e InvalidTest login_tests.txt
$ pybot --exclude InvalidTest login_tests.html
init.txt - init test suite file
$ pybot --variable USERNAME:botbot --variable PASSWORD:ibot login_tests.html
$ pybot -d /tmp --variable SERVER:"192.168.59.103" --variable BROWSER:chrome tests/acceptance/
:FOR ${elem} IN @{list}
\ LOG ${elem}
$ brew install chromedriver # chrome driver for osx
$ brew install phantomjs # GUI less driver for osx
$ apt-get install phatomjs # GUI less driver for ubuntu