robotframework-2.7.7.atest.testdata.running.test_template.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robotframework Show documentation
Show all versions of robotframework Show documentation
High level test automation framework
The newest version!
*** Settings ***
Documentation NO RIDE because it would clean-up too much data.
Test Template Should Be Equal
*** Variables ***
${VARIABLE} Variable content
${SAME VARIABLE} Variable content
*** Test Cases ***
Test Using Normal Keyword Is Not Possible With Template
Fail Fail
Test Default Template
[Documentation] FAIL Several failures occurred:\n\n1) Something != Different\n\n2) 42 != 43
Same Same
Something Different
42 43
Test Overriding Default Template In Test
[Documentation] FAIL Same == Same
[Template] Should Not Be Equal
Same Same
Something Different
42 43
Test Overriding Default Template In Test With Empty
[documentation] FAIL This should be executed as normal keyword
[Template]
Fail This should be executed as normal keyword
Test Template With Variables
[Template] Expect Exactly Two Args
${VARIABLE} ${VARIABLE}
Test Template With @{EMPTY} Variable
[Template] Test Template With Default Parameters
@{EMPTY}
Test Template With Variables And Keyword Name
[template] Expect Exactly Three Args
${SAME VARIABLE} Variable content ${VARIABLE}
Test Template With Variable And Assign Mark (=)
[Documentation] FAIL 1= != 2=
[Template] Expect Exactly Two Args
${42} = 42 =
${42}= 42=
${1}= ${2}=
Test Empty Values
[Template] Expect Exactly Two Args
\ \
${EMPTY} \
Test Template With FOR Loop
[Documentation] FAIL Several failures occurred:\n\n
... 1) This != Fails\n\n
... 2) This != Fails\n\n
... 3) Same != Different\n\n
... 4) This != Fails\n\n
... 5) Samething != Different
Same Same
:FOR ${item} IN Same Different Same
\ Same Same
\ This Fails
\ Same ${item}
Samething Different
Test Template With FOR Loop Containing Variables
[Documentation] FAIL Variable content != 42
[Tags] 42
:FOR ${item} IN ${VARIABLE} ${SAME VARIABLE} @{TEST TAGS}
\ ${VARIABLE} ${item}
Test Template With FOR IN RANGE Loop
[Documentation] FAIL Several failures occurred:\n\n
... 1) 0 != 1\n\n
... 2) 0 != 2\n\n
... 3) 0 != 3\n\n
... 4) 0 != 4
:FOR ${index} IN RANGE 5
\ ${0} ${index}
Test User Keywords Should Not Be Continued On Failure
[Documentation] FAIL Several failures occurred:\n\n1) expected failure\n\n2) second expected failure
[Template] Failing Uk With Multiple Fails
expected failure
second expected failure
Commented Rows With Test Template
[Documentation] FAIL Sanity != Check
# My comment
Same Same # Another comment
# Yet another comment
42 42
Sanity Check # with comment
Templates with Run Keyword
[Documentation] FAIL Several failures occurred:\n\n1) First failure\n\n2) No keyword with name 'Variable content =' found.
[Template] Run Keyword
Should be equal 42 42
Fail First failure
Expect exactly three args xxx xxx xxx
${VARIABLE} = Set variable this doesn't work
Templates with continuable failures
[Documentation] FAIL Several failures occurred:\n\n
... 1) Continuable 1\n\n
... 2) Continuable 1\n\n
... 3) Continuable 2\n\n
... 4) Continuable 1\n\n
... 5) Continuable 2\n\n
... 6) Continuable 3\n\n
... 7) Continuable 1\n\n
... 8) Continuable 2\n\n
... 9) Continuable 3\n\n
... 10) Continuable 4\n\n
... 11) Continuable 5
[Template] Continuable failures
1
2
3
5
Templates and timeouts
[Documentation] FAIL Timeout error should happen only once
[Timeout] 0.1 seconds Timeout error should happen only once
[Template] Sleep
0.3 seconds
0.2 seconds
0.1 seconds
Templates, timeouts, and for loops
[Documentation] FAIL Timeout error should happen only once
[Timeout] 0.1 seconds Timeout error should happen only once
[Template] Sleep
:FOR ${i} IN RANGE 10
\ 0.05 seconds
Templates and syntax errors
[Documentation] FAIL Non-existing variable '\${nonex}'.
[Template] Should be equal
${nonex} something
not compared anymore
Templates and fatal errors 1
[Documentation] FAIL Several failures occurred:\n\n
... 1) First error\n\n
... 2) Second error is fatal and should stop execution
[Template] Run Keyword
Fail First error
Fatal Error Second error is fatal and should stop execution
Fail This should not be executed
Templates and fatal errors 2
[Documentation] FAIL Test execution is stopped due to a fatal error
Fail This should not be executed
*** Keywords ***
Test Template With Default Parameters
[arguments] ${first}=first ${second}=second
Log many ${first} ${second}
Expect Exactly Two Args [arguments] ${a1} ${a2}
Should Be Equal ${a1} ${a2}
Expect Exactly Three Args [arguments] ${a1} ${a2} ${a3}
Should Be Equal ${a1} ${a2}
Should Be Equal ${a1} ${a3}
Failing Uk With Multiple Fails [arguments] ${msg}
Fail ${msg}
Fail this should not occur
Continuable failures [arguments] ${count}
:FOR ${i} IN RANGE ${count}
\ Run keyword and continue on failure Fail Continuable ${i+1}