|
1 | 1 | *** Settings ***
|
2 |
| -Documentation Tests for checking that library initialization arguments are handled correctly. Taking libraries without arguments is not tested here, because almost every other suite does that. |
3 |
| -Suite Setup Run Tests ${EMPTY} test_libraries/java_library_imports_with_args.robot |
4 |
| -Force Tags require-jython |
5 |
| -Resource resource_for_importing_libs_with_args.robot |
6 |
| -Test Template Library import should have been successful |
7 |
| - |
| 2 | +Documentation Tests for checking that library initialization arguments are handled correctly. |
| 3 | +... Taking libraries without arguments is not tested here, because almost every other suite does that. |
| 4 | +Suite Setup Run Tests ${EMPTY} test_libraries/java_library_imports_with_args.robot |
| 5 | +Force Tags require-jython |
| 6 | +Test Template Library import should have been successful |
| 7 | +Resource resource_for_importing_libs_with_args.robot |
8 | 8 |
|
9 | 9 | *** Test Cases ***
|
10 | 10 | Mandatory arguments
|
11 |
| - MandatoryArgs first arg another arg |
| 11 | + MandatoryArgs first arg another arg |
12 | 12 |
|
13 | 13 | Default values
|
14 |
| - DefaultArgs m1 |
15 |
| - DefaultArgs m2 d1 |
16 |
| - DefaultArgs m3 1 2 |
| 14 | + DefaultArgs m1 |
| 15 | + DefaultArgs m2 d1 |
| 16 | + DefaultArgs m3 1 2 |
17 | 17 |
|
18 | 18 | Variables containing objects
|
19 |
| - MandatoryArgs 42 The name of the JavaObject |
20 |
| - MandatoryArgs {key: value} True |
| 19 | + MandatoryArgs 42 The name of the JavaObject |
| 20 | + MandatoryArgs {key: value} True |
21 | 21 |
|
22 | 22 | Too Few Arguments
|
23 |
| - [Template] Library import should have failed |
| 23 | + [Template] Library import should have failed |
24 | 24 | MandatoryArgs 2 arguments, got 1.
|
25 |
| - DefaultArgs 1 to 3 arguments, got 0. |
| 25 | + DefaultArgs 1 to 3 arguments, got 0. |
26 | 26 |
|
27 | 27 | Too Many Arguments
|
28 |
| - [Template] Library import should have failed |
| 28 | + [Template] Library import should have failed |
29 | 29 | MandatoryArgs 2 arguments, got 4.
|
30 |
| - DefaultArgs 1 to 3 arguments, got 5. |
| 30 | + DefaultArgs 1 to 3 arguments, got 5. |
31 | 31 |
|
32 | 32 | Non-existing variables
|
33 | 33 | [Template]
|
34 |
| - Check syslog contains Variable '\${NON EXISTING}' not found. |
35 |
| - |
36 |
| - |
37 |
| -***Keywords*** |
| 34 | + Check syslog contains Variable '\${NON EXISTING}' not found. |
38 | 35 |
|
| 36 | +*** Keywords *** |
39 | 37 | Library import should have been successful
|
40 |
| - [Arguments] ${lib} @{params} |
41 |
| - Check Test Case ${TEST NAME} |
42 |
| - ${par} = Catenate SEPARATOR=${SPACE}|${SPACE} @{params} |
43 |
| - Check Syslog Contains Imported test library class '${lib}' from unknown location. |
44 |
| - Check Syslog Contains Imported library '${lib}' with arguments [ ${par} ] |
| 38 | + [Arguments] ${lib} @{params} |
| 39 | + Check Test Case ${TEST NAME} |
| 40 | + ${par} = Catenate SEPARATOR=${SPACE}|${SPACE} @{params} |
| 41 | + Check Syslog Contains Imported test library class '${lib}' from unknown location. |
| 42 | + Check Syslog Contains Imported library '${lib}' with arguments [ ${par} ] |
45 | 43 |
|
46 | 44 | Library import should have failed
|
47 |
| - [Arguments] ${lib} ${err} |
48 |
| - Check Syslog Contains Test Library '${lib}' expected ${err} |
| 45 | + [Arguments] ${lib} ${err} |
| 46 | + Check Syslog Contains Test Library '${lib}' expected ${err} |
0 commit comments