forked from robotframework/PythonLibCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.robot
53 lines (42 loc) · 1.48 KB
/
tests.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
42
43
44
45
46
47
48
49
50
51
52
53
*** Settings ***
Library ${LIBRARY}.py
*** Variables ***
${LIBRARY} DynamicLibrary
*** Test Cases ***
Keyword Names
Keyword In Main
Function
FUNCTION
Method
Custom Name
Cust Omna Me
IF "$LIBRARY" == "ExtendExistingLibrary" Keyword In Extending Library
Method Without @keyword Are Not Keyowrds
[Documentation] FAIL GLOB: No keyword with name 'Not Keyword' found.*
Not Keyword
Arguments
[Template] Return value should be
'foo', 'bar' Mandatory foo bar
'foo', 'default', 3 Defaults foo
'foo', 2, 3 Defaults foo ${2}
'a', 'b', 'c' Defaults a b c
Named Arguments
[Template] Return value should be
'foo', 'bar' Mandatory foo arg2=bar
'1', 2 Mandatory arg2=${2} arg1=1
'x', 'default', 'y' Defaults x arg3=y
Varargs And Kwargs
[Template] Return value should be
${EMPTY} Varargs and kwargs
'a', 'b', 'c' Varargs and kwargs a b c
a\='1', b\=2 Varargs and kwargs a=1 b=${2}
'a', 'b\=b', c\='c' Varargs and kwargs a b\=b c=c
Embedded Arguments
[Documentation] FAIL Work But This Fails
Embedded Arguments "work"
EmbeDded ArgumeNtS "Work But This Fails"
*** Keywords ***
Return Value Should Be
[Arguments] ${expected} ${keyword} @{args} &{kwargs}
${result} Run Keyword ${keyword} @{args} &{kwargs}
Should Be Equal ${result} ${expected}