@@ -4,30 +4,30 @@ Resource atest_resource.robot
4
4
5
5
*** Test Cases ***
6
6
Suite Documentation
7
- Should Be Equal ${SUITE.doc } ${ EMPTY }
7
+ Should Be Equal ${SUITE.doc } S1
8
8
Setting multiple times 0 Documentation
9
9
10
10
Suite Metadata
11
11
Should Be Equal ${SUITE.metadata['Foo'] } M2
12
12
13
13
Suite Setup
14
- Should Be Equal ${SUITE.setup } ${ NONE }
14
+ Should Be Equal ${SUITE.setup.name } BuiltIn.Log Many
15
15
Setting multiple times 1 Suite Setup
16
16
17
17
Suite Teardown
18
- Should Be Equal ${SUITE.teardown } ${ NONE }
18
+ Should Be Equal ${SUITE.teardown.name } BuiltIn.Comment
19
19
Setting multiple times 2 Suite Teardown
20
20
21
21
Force and Default Tags
22
- Check Test Tags Use Defaults
22
+ Check Test Tags Use Defaults D1
23
23
Setting multiple times 7 Force Tags
24
24
Setting multiple times 8 Force Tags
25
25
Setting multiple times 9 Default Tags
26
26
Setting multiple times 10 Default Tags
27
27
28
28
Test Setup
29
29
${tc } = Check Test Case Use Defaults
30
- Should Be Equal ${tc.setup } ${ NONE }
30
+ Should Be Equal ${tc.setup.name } BuiltIn.Log Many
31
31
Setting multiple times 3 Test Setup
32
32
33
33
Test Teardown
@@ -37,91 +37,80 @@ Test Teardown
37
37
38
38
Test Template
39
39
${tc } = Check Test Case Use Defaults
40
- Check Keyword Data ${tc.kws[0] } BuiltIn.Sleep args=0.1s
40
+ Check Keyword Data ${tc.kws[0] } BuiltIn.Log Many args=Sleep, 0.1s
41
41
Setting multiple times 6 Test Template
42
42
43
43
Test Timeout
44
44
${tc } = Check Test Case Use Defaults
45
- Should Be Equal ${tc.timeout } ${ NONE }
45
+ Should Be Equal ${tc.timeout } 1 second
46
46
Setting multiple times 11 Test Timeout
47
47
48
48
Test [Documentation]
49
49
${tc } = Check Test Case Test Settings
50
- Should Be Equal ${tc.doc } ${ EMPTY }
51
- Setting multiple times in test case table 12 [ Documentation]
50
+ Should Be Equal ${tc.doc } T1
51
+ Setting multiple times 12 Documentation
52
52
53
53
Test [Tags]
54
54
Check Test Tags Test Settings
55
- Setting multiple times in test case table 13 [ Tags]
56
- Setting multiple times in test case table 14 [ Tags]
55
+ Setting multiple times 13 Tags
56
+ Setting multiple times 14 Tags
57
57
58
58
Test [Setup]
59
59
${tc } = Check Test Case Test Settings
60
- Should Be Equal ${tc.setup } ${ NONE }
61
- Setting multiple times in test case table 15 [ Setup]
60
+ Should Be Equal ${tc.setup.name } BuiltIn.Log Many
61
+ Setting multiple times 15 Setup
62
62
63
63
Test [Teardown]
64
64
${tc } = Check Test Case Test Settings
65
65
Should Be Equal ${tc.teardown } ${NONE }
66
- Setting multiple times in test case table 16 [ Teardown]
67
- Setting multiple times in test case table 17 [ Teardown]
66
+ Setting multiple times 16 Teardown
67
+ Setting multiple times 17 Teardown
68
68
69
69
Test [Template]
70
70
${tc } = Check Test Case Test Settings
71
- Check Keyword Data ${tc.kws[0] } BuiltIn.No Operation
72
- Setting multiple times in test case table 18 [ Template]
71
+ Check Keyword Data ${tc.kws[0] } BuiltIn.Log args= No Operation
72
+ Setting multiple times 18 Template
73
73
74
74
Test [Timeout]
75
75
${tc } = Check Test Case Test Settings
76
- Should Be Equal ${tc.timeout } ${ NONE }
77
- Setting multiple times in test case table 19 [ Timeout]
76
+ Should Be Equal ${tc.timeout } 2 seconds
77
+ Setting multiple times 19 Timeout
78
78
79
79
Keyword [Arguments]
80
80
${tc } = Check Test Case Keyword Settings
81
- Check Keyword Data ${tc.kws[0] } Keyword Settings assign=\${ret}
82
- Check Log Message ${tc.kws[0].msgs[0] } Arguments: [ \ ] TRACE
83
- Setting multiple times in keyword table 20 [ Arguments]
81
+ Check Keyword Data ${tc.kws[0] } Keyword Settings assign=\${ret} args=1, 2, 3 tags=K1
82
+ Check Log Message ${tc.kws[0].msgs[0] } Arguments: [ \${a1}='1' | \${a2}='2' | \${a3}='3' ] TRACE
83
+ Setting multiple times 20 Arguments
84
84
85
85
Keyword [Documentation]
86
86
${tc } = Check Test Case Keyword Settings
87
87
Should Be Equal ${tc.kws[0].doc } ${EMPTY }
88
- Setting multiple times in keyword table 21 [ Documentation]
89
- Setting multiple times in keyword table 22 [ Documentation]
88
+ Setting multiple times 21 Documentation
89
+ Setting multiple times 22 Documentation
90
90
91
91
Keyword [Tags]
92
92
${tc } = Check Test Case Keyword Settings
93
- Should Be Empty ${ tc.kws[0].tags }
94
- Setting multiple times in keyword table 23 [ Tags]
93
+ Should Be True list($ tc.kws[0].tags) == ['K1']
94
+ Setting multiple times 23 Tags
95
95
96
96
Keyword [Timeout]
97
97
${tc } = Check Test Case Keyword Settings
98
98
Should Be Equal ${tc.kws[0].timeout } ${NONE }
99
- Setting multiple times in keyword table 24 [ Timeout]
100
- Setting multiple times in keyword table 25 [ Timeout]
99
+ Setting multiple times 24 Timeout
100
+ Setting multiple times 25 Timeout
101
101
102
102
Keyword [Return]
103
103
${tc } = Check Test Case Keyword Settings
104
- Check Log Message ${tc.kws[0].msgs[1] } Return: None TRACE
105
- Check Log Message ${tc.kws[0].msgs[2] } \${ret} = None
106
- Setting multiple times in keyword table 26 [ Return]
107
- Setting multiple times in keyword table 27 [ Return]
104
+ Check Log Message ${tc.kws[0].msgs[1] } Return: 'R0' TRACE
105
+ Check Log Message ${tc.kws[0].msgs[2] } \${ret} = R0
106
+ Setting multiple times 26 Return
107
+ Setting multiple times 27 Return
108
108
109
109
*** Keywords ***
110
110
Setting multiple times
111
- [Arguments] ${index } ${setting } @{ extra }
111
+ [Arguments] ${index } ${setting }
112
112
${path } = Normalize Path ${DATADIR } /parsing/same_setting_multiple_times.robot
113
113
${message } = Catenate
114
114
... Error in file '${path } ':
115
- ... @{extra }
116
- ... Setting '${setting } ' used multiple times.
117
- Check Log Message ${ERRORS } [${index } ] ${message } ERROR
118
-
119
- Setting multiple times in test case table
120
- [Arguments] ${index } ${setting }
121
- Setting multiple times ${index } ${setting }
122
- ... Invalid syntax in test case 'Test Settings':
123
-
124
- Setting multiple times in keyword table
125
- [Arguments] ${index } ${setting }
126
- Setting multiple times ${index } ${setting }
127
- ... Invalid syntax in keyword 'Keyword Settings':
115
+ ... Setting '${setting } ' allowed only once. Only the first value is used.
116
+ Check Log Message @{ERRORS } [${index } ] ${message } ERROR
0 commit comments