ITM yang cleanup CSIT changes
[integration/test.git] / csit / libraries / CompareStream.robot
1 *** Settings ***
2 Documentation     This Resource contains list of Keywords Set_Variable_If_At_Least*, Set_Variable_If_At_Most,
3 ...               Run_Keyword_If_At_Least*, Run_Keyword_If_At_Most*,
4 ...               Run_Keyword_If_More_Than*, Run_Keyword_If_Less_Than*,
5 ...               for comparison ${ODL_STREAM} to the given ${lower_bound},
6 ...               in order to replace ad-hoc conditional execution in suites.
7 Library           Collections
8 Library           String
9
10 *** Variables ***
11 &{Stream_dict}    carbon=${6}    nitrogen=${7}    oxygen=${8}    fluorine=${9}    neon=${10}    sodium=${11}
12
13 *** Keywords ***
14 Set_Variable_If_At_Least
15     [Arguments]    ${lower_bound}    ${value_if_true}    ${value_if_false}
16     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least ${lower_bound},
17     ...    return ${value_if_false} otherwise.
18     BuiltIn.Run_Keyword_And_Return    BuiltIn.Set_Variable_If    &{Stream_dict}[${ODL_STREAM}] >= &{Stream_dict}[${lower_bound}]    ${value_if_true}    ${value_if_false}
19
20 Set_Variable_If_At_Most
21     [Arguments]    ${upper_bound}    ${value_if_true}    ${value_if_false}
22     [Documentation]    Compare ${upper_bound} to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most ${upper_bound},
23     ...    return ${value_if_false} otherwise.
24     BuiltIn.Run_Keyword_And_Return    BuiltIn.Set_Variable_If    &{Stream_dict}[${ODL_STREAM}] <= &{Stream_dict}[${upper_bound}]    ${value_if_true}    ${value_if_false}
25
26 Set_Variable_If_At_Least_Carbon
27     [Arguments]    ${value_if_true}    ${value_if_false}
28     [Documentation]    Compare carbon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least carbon,
29     ...    return ${value_if_false} otherwise.
30     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    carbon    ${value_if_true}    ${value_if_false}
31
32 Set_Variable_If_At_Least_Nitrogen
33     [Arguments]    ${value_if_true}    ${value_if_false}
34     [Documentation]    Compare nitrogen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least nitrogen,
35     ...    return ${value_if_false} otherwise.
36     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    nitrogen    ${value_if_true}    ${value_if_false}
37
38 Set_Variable_If_At_Least_Oxygen
39     [Arguments]    ${value_if_true}    ${value_if_false}
40     [Documentation]    Compare oxygen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least oxygen,
41     ...    return ${value_if_false} otherwise.
42     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    oxygen    ${value_if_true}    ${value_if_false}
43
44 Set_Variable_If_At_Least_Fluorine
45     [Arguments]    ${value_if_true}    ${value_if_false}
46     [Documentation]    Compare fluorine to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least fluorine,
47     ...    return ${value_if_false} otherwise.
48     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    fluorine    ${value_if_true}    ${value_if_false}
49
50 Set_Variable_If_At_Least_Neon
51     [Arguments]    ${value_if_true}    ${value_if_false}
52     [Documentation]    Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least neon,
53     ...    return ${value_if_false} otherwise.
54     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    neon    ${value_if_true}    ${value_if_false}
55
56 Set_Variable_If_At_Least_Sodium
57     [Arguments]    ${value_if_true}    ${value_if_false}
58     [Documentation]    Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at least sodium,
59     ...    return ${value_if_false} otherwise.
60     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Least    soduim    ${value_if_true}    ${value_if_false}
61
62 Set_Variable_If_At_Most_Carbon
63     [Arguments]    ${value_if_true}    ${value_if_false}
64     [Documentation]    Compare carbon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most carbon,
65     ...    return ${value_if_false} otherwise.
66     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    carbon    ${value_if_true}    ${value_if_false}
67
68 Set_Variable_If_At_Most_Nitrogen
69     [Arguments]    ${value_if_true}    ${value_if_false}
70     [Documentation]    Compare nitrogen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most nitrogen,
71     ...    return ${value_if_false} otherwise.
72     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    nitrogen    ${value_if_true}    ${value_if_false}
73
74 Set_Variable_If_At_Most_Oxygen
75     [Arguments]    ${value_if_true}    ${value_if_false}
76     [Documentation]    Compare oxygen to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most oxygen,
77     ...    return ${value_if_false} otherwise.
78     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    oxygen    ${value_if_true}    ${value_if_false}
79
80 Set_Variable_If_At_Most_Fluorine
81     [Arguments]    ${value_if_true}    ${value_if_false}
82     [Documentation]    Compare fluorine to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most fluorine,
83     ...    return ${value_if_false} otherwise.
84     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    fluorine    ${value_if_true}    ${value_if_false}
85
86 Set_Variable_If_At_Most_Neon
87     [Arguments]    ${value_if_true}    ${value_if_false}
88     [Documentation]    Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most neon,
89     ...    return ${value_if_false} otherwise.
90     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    neon    ${value_if_true}    ${value_if_false}
91
92 Set_Variable_If_At_Most_Sodium
93     [Arguments]    ${value_if_true}    ${value_if_false}
94     [Documentation]    Compare neon to ${ODL_STREAM} and return ${value_if_true} if ${ODL_STREAM} is at most sodium,
95     ...    return ${value_if_false} otherwise.
96     BuiltIn.Run_Keyword_And_Return    Set_Variable_If_At_Most    sodium    ${value_if_true}    ${value_if_false}
97
98 CompareStream__Convert_Input
99     [Arguments]    @{arguments}
100     [Documentation]    Splits arguments into args and kwargs is used in Run_Keyword_If_At_Least_Else and Run_Keyword_If_At_Most_Else.
101     ...    The problem is, when the string contains =, but it is not a named argument (name=value). There can be many values containing =, but
102     ...    for sure it is present in xmls. If the string starts with "<" it will be treated as it is xml and splitting for
103     ...    name and value will not be executed.
104     ...    If named argument is passed into this kw, only string data are supported e.g. name=string. Complex variables such as lists or dictionaries
105     ...    are not supported.
106     ${args}    BuiltIn.Create_List
107     ${kwargs}    BuiltIn.Create_Dictionary
108     : FOR    ${arg}    IN    @{arguments}
109     \    ${arg}    BuiltIn.Convert_To_String    ${arg}
110     \    ${removed}    String.Remove_String    ${arg}    \n    ${Space}    \t
111     \    ...    \r
112     \    ${splitted}    BuiltIn.Run_Keyword_If    "${removed[0]}" == "<"    BuiltIn.Create List    ${arg}
113     \    ...    ELSE    String.Split_String    ${arg}    separator==    max_split=1
114     \    ${len}    BuiltIn.Get_Length    ${splitted}
115     \    Run Keyword If    ${len}==1    Collections.Append_To_List    ${args}    @{splitted}[0]
116     \    ...    ELSE    Collections.Set_To_Dictionary    ${kwargs}    @{splitted}
117     BuiltIn.Return_From_Keyword    ${args}    ${kwargs}
118
119 Run_Keyword_If_At_Least
120     [Arguments]    ${lower_bound}    ${kw_name}    @{varargs}    &{kwargs}
121     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is at least ${lower_bound},
122     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
123     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] >= &{Stream_dict}[${lower_bound}]    ${kw_name}    @{varargs}    &{kwargs}
124
125 Run_Keyword_If_At_Least_Else
126     [Arguments]    ${lower_bound}    @{varargs}
127     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is at least ${lower_bound},
128     ...    run keyword defined before ELSE statement otherwise run keyword defined after ELSE statement and return its value.
129     ${position}    Collections.Get_Index_From_List    ${varargs}    \ELSE
130     BuiltIn.Run_Keyword_If    "${position}" == "-1"    BuiltIn.Fail    Missing else statement in defined expresion
131     ${varargs_if}    Collections.Get_Slice_From_List    ${varargs}    0    ${position}
132     ${varargs_else}    Collections.Get_Slice_From_List    ${varargs}    ${position+1}
133     ${args_if}    ${kwargs_if}    CompareStream__Convert_Input    @{varargs_if}
134     ${args_else}    ${kwargs_else}    CompareStream__Convert_Input    @{varargs_else}
135     ${resp}    BuiltIn.Run_Keyword_If    &{Stream_dict}[${ODL_STREAM}] >= &{Stream_dict}[${lower_bound}]    @{args_if}    &{kwargs_if}
136     ...    ELSE    @{args_else}    &{kwargs_else}
137     [Return]    ${resp}
138
139 Run_Keyword_If_At_Most
140     [Arguments]    ${upper_bound}    ${kw_name}    @{varargs}    &{kwargs}
141     [Documentation]    Compare ${upper_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is at most ${upper_bound},
142     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
143     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] <= &{Stream_dict}[${upper_bound}]    ${kw_name}    @{varargs}    &{kwargs}
144
145 Run_Keyword_If_At_Most_Else
146     [Arguments]    ${upper_bound}    @{varargs}
147     [Documentation]    Compare ${upper_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is at most ${upper_bound},
148     ...    run keyword defined before ELSE statement otherwise run keyword defined after ELSE statement and return its value.
149     ${position}    Collections.Get_Index_From_List    ${varargs}    \ELSE
150     BuiltIn.Run_Keyword_If    "${position}" == "-1"    BuiltIn.Fail    Missing else statement in defined expresion
151     ${varargs_if}    Collections.Get_Slice_From_List    ${varargs}    0    ${position}
152     ${varargs_else}    Collections.Get_Slice_From_List    ${varargs}    ${position+1}
153     ${args_if}    ${kwargs_if}    CompareStream__Convert_Input    @{varargs_if}
154     ${args_else}    ${kwargs_else}    CompareStream__Convert_Input    @{varargs_else}
155     ${resp}    BuiltIn.Run_Keyword_If    &{Stream_dict}[${ODL_STREAM}] >= &{Stream_dict}[${lower_bound}]    @{args_if}    &{kwargs_if}
156     ...    ELSE    @{args_else}    &{kwargs_else}
157     [Return]    ${resp}
158
159 Run_Keyword_If_More_Than
160     [Arguments]    ${lower_bound}    ${kw_name}    @{varargs}    &{kwargs}
161     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is more than ${lower_bound},
162     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
163     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] > &{Stream_dict}[${lower_bound}]    ${kw_name}    @{varargs}    &{kwargs}
164
165 Run_Keyword_If_Equals
166     [Arguments]    ${stream}    ${kw_name}    @{varargs}    &{kwargs}
167     [Documentation]    Compare ${stream} to ${ODL_STREAM} and in case ${ODL_STREAM} equals ${stream},
168     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
169     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] == &{Stream_dict}[${stream}]    ${kw_name}    @{varargs}    &{kwargs}
170
171 Run_Keyword_If_Equals_Else
172     [Arguments]    ${stream}    @{varargs}
173     [Documentation]    Compare ${stream} to ${ODL_STREAM} and in case ${ODL_STREAM} equals ${stream},
174     ...    run keyword defined before ELSE statement otherwise run keyword defined after ELSE statement and return its value.
175     ${position}    Collections.Get_Index_From_List    ${varargs}    \ELSE
176     BuiltIn.Run_Keyword_If    "${position}" == "-1"    BuiltIn.Fail    Missing else statement in defined expresion
177     ${varargs_if}    Collections.Get_Slice_From_List    ${varargs}    0    ${position}
178     ${varargs_else}    Collections.Get_Slice_From_List    ${varargs}    ${position+1}
179     ${args_if}    ${kwargs_if}    CompareStream__Convert_Input    @{varargs_if}
180     ${args_else}    ${kwargs_else}    CompareStream__Convert_Input    @{varargs_else}
181     ${resp}    BuiltIn.Run_Keyword_If    &{Stream_dict}[${ODL_STREAM}] == &{Stream_dict}[${stream}]    @{args_if}    &{kwargs_if}
182     ...    ELSE    @{args_else}    &{kwargs_else}
183     [Return]    ${resp}
184
185 Run_Keyword_If_Less_Than
186     [Arguments]    ${lower_bound}    ${kw_name}    @{varargs}    &{kwargs}
187     [Documentation]    Compare ${lower_bound} to ${ODL_STREAM} and in case ${ODL_STREAM} is less than ${lower_bound},
188     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
189     BuiltIn.Run_Keyword_And_Return_If    &{Stream_dict}[${ODL_STREAM}] < &{Stream_dict}[${lower_bound}]    ${kw_name}    @{varargs}    &{kwargs}
190
191 Run_Keyword_If_At_Least_Carbon
192     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
193     [Documentation]    Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is at least carbon,
194     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
195     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    carbon    ${kw_name}    @{varargs}    &{kwargs}
196
197 Run_Keyword_If_At_Least_Nitrogen
198     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
199     [Documentation]    Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is at least nitrogen,
200     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
201     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    nitrogen    ${kw_name}    @{varargs}    &{kwargs}
202
203 Run_Keyword_If_At_Least_Oxygen
204     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
205     [Documentation]    Compare oxygen to ${ODL_STREAM} and in case ${ODL_STREAM} is at least oxygen,
206     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
207     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    oxygen    ${kw_name}    @{varargs}    &{kwargs}
208
209 Run_Keyword_If_At_Least_Fluorine
210     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
211     [Documentation]    Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is at least fluorine,
212     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
213     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    fluorine    ${kw_name}    @{varargs}    &{kwargs}
214
215 Run_Keyword_If_At_Least_Neon
216     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
217     [Documentation]    Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is at least neon,
218     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
219     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    neon    ${kw_name}    @{varargs}    &{kwargs}
220
221 Run_Keyword_If_At_Least_Sodium
222     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
223     [Documentation]    Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is at least sodium,
224     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
225     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Least    sodium    ${kw_name}    @{varargs}    &{kwargs}
226
227 Run_Keyword_If_At_Most_Carbon
228     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
229     [Documentation]    Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most carbon,
230     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
231     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    carbon    ${kw_name}    @{varargs}    &{kwargs}
232
233 Run_Keyword_If_At_Most_Nitrogen
234     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
235     [Documentation]    Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is at most nitrogen,
236     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
237     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    nitrogen    ${kw_name}    @{varargs}    &{kwargs}
238
239 Run_Keyword_If_At_Most_Oxygen
240     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
241     [Documentation]    Compare oxygen to ${ODL_STREAM} and in case ${ODL_STREAM} is at most oxygen,
242     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
243     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    oxygen    ${kw_name}    @{varargs}    &{kwargs}
244
245 Run_Keyword_If_At_Most_Fluorine
246     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
247     [Documentation]    Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is at most fluroine,
248     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
249     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    fluorine    ${kw_name}    @{varargs}    &{kwargs}
250
251 Run_Keyword_If_At_Most_Neon
252     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
253     [Documentation]    Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is at most neon,
254     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
255     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    neon    ${kw_name}    @{varargs}    &{kwargs}
256
257 Run_Keyword_If_At_Most_Sodium
258     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
259     [Documentation]    Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is at most sodium,
260     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
261     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_At_Most    sodium    ${kw_name}    @{varargs}    &{kwargs}
262
263 Run_Keyword_If_More_Than_Carbon
264     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
265     [Documentation]    Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than carbon,
266     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
267     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    carbon    ${kw_name}    @{varargs}    &{kwargs}
268
269 Run_Keyword_If_More_Than_Nitrogen
270     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
271     [Documentation]    Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is more than nitrogen,
272     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
273     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    nitrogen    ${kw_name}    @{varargs}    &{kwargs}
274
275 Run_Keyword_If_More_Than_Oxygen
276     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
277     [Documentation]    Compare oxygen to ${ODL_STREAM} and in case ${ODL_STREAM} is more than oxygen,
278     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
279     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    oxygen    ${kw_name}    @{varargs}    &{kwargs}
280
281 Run_Keyword_If_More_Than_Fluorine
282     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
283     [Documentation]    Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is more than fluorine,
284     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
285     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    fluorine    ${kw_name}    @{varargs}    &{kwargs}
286
287 Run_Keyword_If_More_Than_Neon
288     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
289     [Documentation]    Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is more than neon,
290     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
291     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    neon    ${kw_name}    @{varargs}    &{kwargs}
292
293 Run_Keyword_If_More_Than_Sodium
294     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
295     [Documentation]    Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is more than sodium,
296     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
297     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_More_Than    sodium    ${kw_name}    @{varargs}    &{kwargs}
298
299 Run_Keyword_If_Less_Than_Carbon
300     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
301     [Documentation]    Compare carbon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than carbon,
302     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
303     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    carbon    ${kw_name}    @{varargs}    &{kwargs}
304
305 Run_Keyword_If_Less_Than_Nitrogen
306     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
307     [Documentation]    Compare nitrogen to ${ODL_STREAM} and in case ${ODL_STREAM} is less than nitrogen,
308     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
309     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    nitrogen    ${kw_name}    @{varargs}    &{kwargs}
310
311 Run_Keyword_If_Less_Than_Oxygen
312     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
313     [Documentation]    Compare oxygen to ${ODL_STREAM} and in case ${ODL_STREAM} is less than oxygen,
314     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
315     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    oxygen    ${kw_name}    @{varargs}    &{kwargs}
316
317 Run_Keyword_If_Less_Than_Fluorine
318     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
319     [Documentation]    Compare fluorine to ${ODL_STREAM} and in case ${ODL_STREAM} is less than fluorine,
320     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
321     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    fluorine    ${kw_name}    @{varargs}    &{kwargs}
322
323 Run_Keyword_If_Less_Than_Neon
324     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
325     [Documentation]    Compare neon to ${ODL_STREAM} and in case ${ODL_STREAM} is less than neon,
326     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
327     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    neon    ${kw_name}    @{varargs}    &{kwargs}
328
329 Run_Keyword_If_Less_Than_Sodium
330     [Arguments]    ${kw_name}    @{varargs}    &{kwargs}
331     [Documentation]    Compare sodium to ${ODL_STREAM} and in case ${ODL_STREAM} is less than sodium,
332     ...    run ${kw_name} @{varargs} &{kwargs} and return its value.
333     BuiltIn.Run_Keyword_And_Return    Run_Keyword_If_Less_Than    sodium    ${kw_name}    @{varargs}    &{kwargs}