This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/robotframework/robotframework_test.txt
Oleh Prypin 6f43092173
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
2021-01-20 10:48:45 +01:00

40 lines
1,008 B
Text

*** Settings ***
Documentation Simple example demonstrating syntax highlighting.
Library ExampleLibrary
Test Setup Keyword argument argument with ${VARIABLE}
*** Variables ***
${VARIABLE} Variable value
@{LIST} List variable here
&{DICT} Key1=Value1 Key2=Value2
*** Test Cases ***
Keyword-driven example
Initialize System
Do Something
Result Should Be 42
[Teardown] Cleanup System
Data-driven example
[Template] Keyword
argument1 argument2
argument ${VARIABLE}
@{LIST}
Gherkin
Given system is initialized
When something is done
Then result should be "42"
| Pipes |
| | [Documentation] | Also pipe separated format is supported. |
| | Log | As this example demonstrates. |
*** Keywords ***
Result Should Be
[Arguments] ${expected}
${actual} = Get Value
Should be Equal ${actual} ${expected}
Then result should be "${expected}"
Result Should Be ${expected}