|
1 | 1 | *** Settings *** |
2 | 2 | Resource resource.txt |
3 | | -Library Collections |
| 3 | +Variables arguments.py |
4 | 4 |
|
5 | 5 | *** Test Cases *** |
6 | 6 | String As Argument |
7 | | - Argument Should Accepted String As Argument 'Hello, world!' |
| 7 | + String As Argument ${BYTE STRING} |
8 | 8 |
|
9 | | -Unicode String As Argument |
10 | | - Unicode String As Argument ${UNICODE} |
| 9 | +Non-ASCII String As Argument |
| 10 | + Unicode String As Argument ${UNICODE STRING} |
| 11 | + |
| 12 | +Control Char As Argument |
| 13 | + [Documentation] This may also fail with ExpatError |
| 14 | + Control Char As Argument ${CONTROL CHAR} |
11 | 15 |
|
12 | 16 | Empty String As Argument |
13 | | - Argument Should Accepted Empty String As Argument '' |
| 17 | + Empty String As Argument ${EMPTY} |
14 | 18 |
|
15 | 19 | Integer As Argument |
16 | | - Argument Should Accepted Integer As Argument 42 |
17 | | - Argument Should Accepted Negative Integer As Argument -1 |
| 20 | + Integer As Argument ${42} |
| 21 | + Negative Integer As Argument ${-1} |
18 | 22 |
|
19 | 23 | Float As Argument |
20 | | - Argument Should Accepted Float As Argument 3.14 |
21 | | - Argument Should Accepted Negative Float As Argument -0.5 |
| 24 | + Float As Argument ${3.14} |
| 25 | + Negative Float As Argument ${-0.5} |
22 | 26 |
|
23 | 27 | Zero As Argument |
24 | | - Argument Should Accepted Zero As Argument 0 |
| 28 | + Zero As Argument ${0} |
25 | 29 |
|
26 | 30 | Boolean As Argument |
27 | | - Argument Should Accepted Boolean True As Argument True |
28 | | - Argument Should Accepted Boolean False As Argument False |
| 31 | + Boolean True As Argument ${True} |
| 32 | + Boolean False As Argument ${False} |
29 | 33 |
|
30 | 34 | None As Argument |
31 | | - [Documentation] None/null is not supported by all XML-RPC versions and thus it is converted to a string |
32 | | - Argument Should Accepted None As Argument None |
| 35 | + [Documentation] None is converted to empty string because it is not supported by all XML-RPC versions. |
| 36 | + None As Argument ${None} |
33 | 37 |
|
34 | 38 | Arbitrary Object As Argument |
35 | | - [Documentation] Arbitrary objects cannot be transferred over XML-RPC and thus only their string presentation is used |
36 | | - Object As Argument ${MyObject()} |
| 39 | + [Documentation] Arbitrary objects cannot be transferred over XML-RPC and thus only their string presentation is used |
| 40 | + Object As Argument ${MyObject()} |
37 | 41 |
|
38 | 42 | List As Argument |
39 | | - Argument Should Accepted List As Argument ['One', -2, False] |
40 | | - Argument Should Accepted Empty List As Argument [] |
| 43 | + List As Argument ${LIST} |
| 44 | + Empty List As Argument ${EMPTY LIST} |
41 | 45 |
|
42 | 46 | List Containing None As Argument |
43 | | - Argument Should Accepted List Containing None As Argument [None] |
| 47 | + List Containing None As Argument ${LIST WITH NONE} |
44 | 48 |
|
45 | 49 | List Containing Arbitrary Objects As Argument |
46 | | - List Containing Objects As Argument ${LIST_WITH_OBJECTS} |
| 50 | + List Containing Objects As Argument ${LIST WITH OBJECTS} |
47 | 51 |
|
48 | 52 | Nested List As Argument |
49 | | - Nested List As Argument ${NESTED_LIST} |
| 53 | + Nested List As Argument ${NESTED LIST} |
50 | 54 |
|
51 | 55 | Tuple As Argument |
52 | | - [Documentation] Tuples are converted to lists |
53 | | - Argument Should Accepted List As Argument ('One', -2, False) |
54 | | - Argument Should Accepted Empty List As Argument () |
55 | | - Nested List As Argument ${NESTED_TUPLE} |
| 56 | + [Documentation] Tuples are converted to lists |
| 57 | + List As Argument ${TUPLE} |
| 58 | + Empty List As Argument ${EMPTY TUPLE} |
| 59 | + Nested List As Argument ${NESTED TUPLE} |
56 | 60 |
|
57 | 61 | Dictionary As Argument |
58 | | - Argument Should Accepted Dictionary As Argument {'one': 1, 'spam': 'eggs'} |
59 | | - Argument Should Accepted Empty Dictionary As Argument {} |
| 62 | + Dictionary As Argument ${DICT} |
| 63 | + Empty Dictionary As Argument ${EMPTY DICT} |
60 | 64 |
|
61 | 65 | Dictionary With Non-String Keys As Argument |
62 | | - [Documentation] XML-RPC supports only strings as keys so must convert them |
63 | | - Argument Should Accepted Dictionary With Non String Keys As Argument {1: 2, None: True} |
| 66 | + [Documentation] XML-RPC supports only strings as keys so must convert them |
| 67 | + Dictionary With Non String Keys As Argument ${DICT WITH NON STRING KEYS} |
64 | 68 |
|
65 | 69 | Dictionary Containing None As Argument |
66 | | - Argument Should Accepted Dictionary Containing None As Argument {'As value': None, None: 'As key'} |
| 70 | + Dictionary Containing None As Argument ${DICT WITH NONE} |
67 | 71 |
|
68 | 72 | Dictionary Containing Objects As Argument |
69 | | - Dictionary Containing Objects As Argument ${DICT_WITH_OBJECTS} |
| 73 | + Dictionary Containing Objects As Argument ${DICT WITH OBJECTS} |
70 | 74 |
|
71 | 75 | Nested Dictionary As Argument |
72 | | - Nested Dictionary As Argument ${NESTED_DICT} |
73 | | - |
74 | | -Control Char As Argument |
75 | | - [Documentation] In this situation the received error is not that good FAIL REGEXP: .*ExpatError.* |
76 | | - ${arg} = Evaluate '\\x01' |
77 | | - String As Argument ${arg} |
78 | | - |
79 | | -*** Keywords *** |
80 | | -Argument Should Accepted |
81 | | - [Arguments] ${keyword} ${argument} |
82 | | - ${argument} = Evaluate ${argument} |
83 | | - Run Keyword ${keyword} ${argument} |
84 | | - |
| 76 | + Nested Dictionary As Argument ${NESTED DICT} |
0 commit comments