-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.robot
41 lines (34 loc) · 1 KB
/
example.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*** 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}
[Tags] whatever
${actual} = Get Value
Should be Equal ${actual} ${expected}
Then result should be "${expected}"
Result Should Be ${expected}