Revision: 3424
Author: pekka.klarck
Date: Mon May 24 08:27:30 2010
Log: fixed and cleaned up tests, moved invalid syntax test to the same
suite with rest of the tests (there were some invalid syntax tests there
already)
http://code.google.com/p/robotframework/source/detail?r=3424
Deleted:
/trunk/atest/testdata/keywords/return_values_invalid.html
Modified:
/trunk/atest/robot/keywords/return_values.txt
/trunk/atest/testdata/keywords/return_values.txt
=======================================
--- /trunk/atest/testdata/keywords/return_values_invalid.html Tue Apr 13
03:19:23 2010
+++ /dev/null
@@ -1,2079 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <style type="text/css">
-html { font-family: Arial,Helvetica,sans-serif;
-background-color: white;
-color: black;
-}
-p { max-width: 60em;
-}
-table { border-collapse: collapse;
-empty-cells: show;
-margin: 1em 0em;
-border: 0.1em solid black;
-}
-th, td {
-border-style: solid;
-border-width: 0.05em 0.1em;
-border-color: black;
-padding: 0.1em 0.2em;
-height: 1.5em;
-}
-th {
-background-color: rgb(192, 192, 192);
-color: black;
-border-width: 0.1em;
-font-weight: bold;
-text-align: center;
-text-transform: capitalize;
-letter-spacing: 0.1em;
-}
-/* Widths of named columns */
-col.name {
-width: 10em;
-}
-.action , .value, .arg {
-width: 15em;
-}
-/* Properties for the name column - td:first-child should work in CSS 2.1
avare browsers (tested in Firefox)
-- col.name is against specs but works in IE
-*/
-td:first-child, col.name {
-background-color: rgb(240, 240, 240);
-text-transform: capitalize;
-letter-spacing: 0.1em;
-}
-th { font-style: normal; } /* required for IE */
- </style>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <title>Robot Test Cases</title><link type="text/css"
href="resources/css/testdata.css" rel="stylesheet"></head>
-<body>
-
-
-
-
-
-
-
-
-
-
-<h1>Robot Test Cases for Return Values</h1>
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="value"
span="4"></colgroup> <thead>
- <tr>
-
-
-
-
-
-
-
-
-
-
- <th>Setting</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- <th>value</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
-
- </thead> <tbody>
-
-
-
-
-
-
-
-
-
-
-
- <tr>
-
-
-
-
-
-
-
-
-
-
- <td align="undefined" valign="undefined">Library</td>
-
-
-
-
-
-
-
-
-
-
- <td align="undefined" valign="undefined">ExampleLibrary</td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
- <tr>
-
-
-
-
-
-
-
-
-
- <td>Library</td>
-
-
-
-
-
-
-
-
-
- <td>ExampleJavaLibrary</td>
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </tbody>
-</table>
-
-
-
-
-
-
-
-
-
-
-<br>
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="value"
span="4"></colgroup> <thead>
- <tr>
-
-
-
-
-
-
-
-
-
-
- <th>Variable</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- <th>Value</th>
-
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
-
- </thead> <tbody>
-
-
-
-
-
-
-
-
-
-
- <tr>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- <td></td>
-
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </tbody>
-</table>
-
-
-
-
-
-
-
-
-
-
-<br>
-
-
-
-
-
-
-
-
-
-
-<table border="1">
-
-
-
-
-
-
-
-
-
-
- <colgroup span="99"><col class="name"><col class="action"><col
class="arg" span="3"></colgroup>
- <thead> <tr>
-
-
-
-
-
-
-
-
-
-
- <th>Test Case</th>
-
-
-
-
-
-
-
-
-
-
- <th>Action</th>
-
-
-
-
-
-
-
-
-
-
- <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
- <th>Argument</th>
-
-
-
-
-
-
-
-
-
-
- <th>Arg</th>
-
-
-
-
-
-
-
-
-
-
- <th>Arg</th>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </tr>
-
-
-
-
-
-
-
-
-
-
- </thead> <tbody>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <tr>
-
-
- <td align="undefined" valign="undefined">Set With = Mark Invalid
Syntax 1</td>
-
-
- <td align="undefined" valign="undefined">[ Document ]</td>
-
-
- <td align="undefined" valign="undefined">FAIL</td>
-
-
- <td align="undefined" valign="undefined">Syntax error: Only the last
variable can have '=' mark</td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
-
-
-
-
-
-
- </tr>
-
-
- <tr>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined">${v1} =</td>
-
-
- <td align="undefined" valign="undefined">${v2}</td>
-
-
- <td align="undefined" valign="undefined">Create List</td>
-
-
- <td align="undefined" valign="undefined">a</td>
-
-
- <td align="undefined" valign="undefined">b</td>
-
-
-
-
-
-
-
-
- </tr>
-
-
- <tr>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
- <td align="undefined" valign="undefined"></td>
-
-
-
-
-
-
-
-
- </tr>
-
***The diff for this file has been truncated for email.***
=======================================
--- /trunk/atest/robot/keywords/return_values.txt Tue Apr 13 03:19:23 2010
+++ /trunk/atest/robot/keywords/return_values.txt Mon May 24 08:27:30 2010
@@ -1,124 +1,119 @@
*** Settings ***
Documentation Tests for return values from keywords. Tests include e.g.
setting different return values for variables and checking messages that
are automatically logged when variables are set. Setting different return
values got from Java libraries are tested thoroughly in java_libraries.html.
-Suite Setup Run Tests ${EMPTY} keywords/return_values.txt
keywords/return_values_invalid.html
+Suite Setup Run Tests ${EMPTY} keywords/return_values.txt
Force Tags regression pybot jybot
Resource atest_resource.txt
*** Test Cases ***
-Set Simple Scalar Variable
- ${test} = Check Test Case Set Simple Scalar Variable
+Simple Scalar Variable
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \${setvar} = BuiltIn.Set Variable
Check Log Message ${test.kws[0].msgs[0]} \${setvar} = this value is
set
-Set Empty Scalar Variable
- ${test} = Check Test Case Set Empty Scalar Variable
+Empty Scalar Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${setvar} =
-Set List To Scalar Variable
- ${test} = Check Test Case Set List to Scalar Variable
+List To Scalar Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${setvar} = [ a | b | c ]
-Set Multible Scalar Variables
- ${test} = Check Test Case Set Multible Scalar Variables
+Multible Scalar Variables
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \${var1}, \${var2} =
BuiltIn.Create List
Check Log Message ${test.kws[0].msgs[0]} \${var1} = one
Check Log Message ${test.kws[0].msgs[1]} \${var2} = two
-Set With = Mark
- Check Test Case Set With = Mark
-
-Invalid Syntax When Using = Mark
- ${test} = Check Test Case Set With = Mark Invalid Syntax 1
- Should Be Equal ${test.kws[0].name} \${v1} = \${v2} Create List a b
- ${test} = Check Test Case Set With = Mark Invalid Syntax 2
- Should Be Equal ${test.kws[0].name} \${v1} = \${v2} = Create List a b
-
-Set Python Object To Scalar Variable
- ${test} = Check Test Case Set Python Object to Scalar Variable
+Optional = Mark
+ Check Test Case ${TEST NAME}
+
+Optional = Mark With Multiple Variables
+ Check Test Case ${TEST NAME}
+
+Python Object To Scalar Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${var} = This is my name
-Set None To Scalar Variable
- ${test} = Check Test Case Set None To Scalar Variable
+None To Scalar Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${var} = None
-Set List Variable
- ${test} = Check Test Case Set List Variable
+List Variable
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \...@{listvar} = BuiltIn.Create List
Check Log Message ${test.kws[0].msgs[0]} \...@{listvar} = [ h | e | ll
| o ]
-Set List Variable From Custom Iterable
- ${test} = Check Test Case Set List Variable From Custom Iterable
+List Variable From Custom Iterable
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \...@{listvar} =
ExampleLibrary.Return Custom Iterable
Check Log Message ${test.kws[0].msgs[0]} \...@{listvar} = [ Keijo |
Mela ]
-Set List Variable From List Subclass
- ${test} = Check Test Case Set List Variable From List Subclass
+List Variable From List Subclass
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \...@{listvar} =
ExampleLibrary.Return List Subclass
Check Log Message ${test.kws[0].msgs[0]} \...@{listvar} = [ Keijo |
Mela ]
-Set Long String To Scalar Variable
- [Documentation] Tests that message lenght is 200 characters.
- ${test} = Check Test Case Set Long String To Scalar variable
+Long String To Scalar Variable
+ [Documentation] Long assing messages should be cut.
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${var_300} = 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 1234567890123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 1234567890...
-Set Long Values To List Variable
- [Documentation] Tests that message lenght is 200 characters.
- ${test} = Check Test Case Set Long Values To List variable
+Long Values To List Variable
+ [Documentation] Long assing messages should be cut.
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[1].msgs[0]} \...@{listvar} = [ 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 1234567890 | 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 12345...
-Set Scalar Variables With More Values Than Variables
- ${test} = Check Test Case Set Scalar Variables With More Values Than
Variables
+Scalar Variables With More Values Than Variables
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${a} = a
Check Log Message ${test.kws[0].msgs[1]} \${b} = b
Check Log Message ${test.kws[0].msgs[2]} \${c} = [ c | d | e | f ]
-Set Multiple Scalars With Too Few Values
- ${test} = Check Test Case Set Multiple Scalars with too few values
- Check Log Message ${test.kws[0].msgs[0]} Cannot assign return value
of keyword 'BuiltIn.Create List' to variables '\${a}', '\${b}' and '\${c}':
Need more values than 2 FAIL
-
-Set Multiple Scalars When No List Returned
- ${test} = Check Test Case Set Multiple Scalars When No List Returned
- Check Log Message ${test.kws[0].msgs[0]} Cannot assign return value
of keyword 'BuiltIn.Set Variable' to variables '\${a}' and '\${b}':
Expected list, got string instead FAIL
-
-Set List When No List Returned
- ${test} = Check Test Case Set List When No List Returned
- Check Log Message ${test.kws[0].msgs[0]} Cannot assign return value
of keyword 'BuiltIn.Set Variable' to variable '\...@{list}': Expected list,
got integer instead FAIL
-
-Set List To Scalar And List Varibles
- ${test} = Check Test Case Set List to Scalar and list varibles
+Multiple Scalars With Too Few Values
+ ${test} = Check Test Case ${TEST NAME}
+
+Multiple Scalars When No List Returned
+ ${test} = Check Test Case ${TEST NAME}
+
+List When No List Returned
+ ${test} = Check Test Case ${TEST NAME}
+
+List To Scalar And List Varibles
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \${a}, \${b}, \...@{c} =
BuiltIn.Create List
Check Log Message ${test.kws[0].msgs[0]} \${a} = 1
Check Log Message ${test.kws[0].msgs[1]} \${b} = 2
Check Log Message ${test.kws[0].msgs[2]} \...@{c} = [ c | d | e | f ]
-Assigning One None To Multiple Variables
- ${test} = Check Test Case Assigning One None To Multiple Variables
+One None To Multiple Variables
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${x} = None
Check Log Message ${test.kws[0].msgs[1]} \${y} = None
-Assigning None To List Variable
- ${test} = Check Test Case Assigning None To List Variable
+One None To List Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[1]} \...@{list} = [ ]
-Assigning One None To Scalar Variables And List Variable
- ${test} = Check Test Case Assigning One None To Scalar Variables And
List Variable
+One None To Scalar Variables And List Variable
+ ${test} = Check Test Case ${TEST NAME}
Check Log Message ${test.kws[0].msgs[0]} \${a} = None
Check Log Message ${test.kws[0].msgs[1]} \${b} = None
Check Log Message ${test.kws[0].msgs[2]} \${c} = None
Check Log Message ${test.kws[0].msgs[3]} \...@{d} = [ ]
List Variable Can Be Only Last
- ${test} = Check Test Case List Variable Can Be Only Last 1
- Should Be Equal ${test.kws[0].name} \...@{list} \...@{list2} Set Variable
1 2 3 4
- ${test} = Check Test Case List Variable Can Be Only Last 2
- Should Be Equal ${test.kws[0].name} \...@{list} \${scal} Set Variable 1
2 3 4
+ ${test} = Check Test Case ${TEST NAME} 1
+ Should Be Equal ${test.kws[0].name} \...@{list}, \...@{list2} =
BuiltIn.Set Variable
+ ${test} = Check Test Case ${TEST NAME} 2
+ Should Be Equal ${test.kws[0].name} \...@{list}, \${scalar} =
BuiltIn.Set Variable
No Keyword
- ${test} = Check Test Case No Keyword
- Should Be Equal ${test.kws[0].name} \${nokeyword}
-
-Failing Set Keyword
- ${test} = Check Test Case Failing Set Keyword
+ ${test} = Check Test Case ${TEST NAME}
+ Should Be Equal ${test.kws[0].name} \${nokeyword} =${SPACE}
+
+Failing keyword
+ ${test} = Check Test Case ${TEST NAME}
Should Be Equal ${test.kws[0].name} \${ret} = BuiltIn.Fail
- Check Test Case Failing Set Keyword And Teardown
-
+
+Failing keyword and teardown
+ Check Test Case ${TEST NAME}
=======================================
--- /trunk/atest/testdata/keywords/return_values.txt Tue Apr 13 03:19:23
2010
+++ /trunk/atest/testdata/keywords/return_values.txt Mon May 24 08:27:30
2010
@@ -2,72 +2,78 @@
Library ExampleLibrary
*** Test Cases ***
-Set Simple Scalar Variable
+Simple Scalar Variable
${setvar} = Set Variable this value is set
Should Be Equal ${setvar} this value is set
-Set Empty Scalar Variable
+Empty Scalar Variable
${setvar} = Set Variable ${EMPTY}
Should Be Equal ${setvar} ${EMPTY}
-Set List To Scalar Variable
+List To Scalar Variable
${setvar} = Create List a b c
Should Be Equal ${setvar[0]} a
Should Be Equal ${setvar[1]} b
Should Be Equal ${setvar[2]} c
-Set Multible Scalar Variables
+Multible Scalar Variables
${var1} ${var2} = Create List one two
Should Be Equal ${var1} one
Should Be Equal ${var2} two
-Set With = Mark
- ${var} = Se TV Ari able hello
+Optional = Mark
+ ${var} = Set Variable hello
Should Be Equal ${var} hello
- ${v1} ${v2} = Set hi you
+ ${v1} ${v2} = Set Variable hi you
Should Be Equal ${v1} hi
Should Be Equal ${v2} you
- @{list} = Set a b c
+ @{list}= Set Variable a b c
Should Be Equal @{list}[0] @{list}[1] @{list}[2] a b c
-Set Python Object To Scalar Variable
+Optional = Mark With Multiple Variables
+ ${v1}= ${v2}= @{list}= Set Variable a b c
+ Should Be Equal ${v1} a
+ Should Be Equal ${v2} b
+ Should Be Equal @{list} c
+
+Python Object To Scalar Variable
${var} = Return Object This is my name
Should Be Equal ${var.name} This is my name
-Set None To Scalar Variable
+None To Scalar Variable
${var} = Evaluate None
Fail Unless ${var} is None
Fail If Equal ${var} None
-Set List Variable
+List Variable
@{listvar} = Create List h e ll o
Should Be Equal @{listvar}[0] h
Should Be Equal @{listvar}[1] e
Should Be Equal @{listvar}[2] ll
Should Be Equal @{listvar}[3] o
-Set List Variable From Custom Iterable
+List Variable From Custom Iterable
@{listvar} = Return Custom Iterable Keijo Mela
Should Be Equal @{listvar}[0] Keijo
Should Be Equal @{listvar}[1] Mela
-Set List Variable From List Subclass
+List Variable From List Subclass
@{listvar} = Return List Subclass Keijo Mela
Should Be Equal @{listvar}[0] Keijo
Should Be Equal @{listvar}[1] Mela
-Set Long String To Scalar Variable
+Long String To Scalar Variable
${var_300} = Set Variable 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 1234567890123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789 1234567890123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 1234567890
Should Be Equal 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 1234567890123456789 123456789
123456789 123456789 123456789 123456789 123456789 123456789 123456789
1234567890123456789 123456789 123456789 123456789 123456789 123456789
123456789 123456789 123456789 1234567890 ${var_300}
-Set Long Values To List Variable
+Long Values To List Variable
${100_marks} = Set Variable 123456789 123456789 123456789 123456789
123456789 123456789 123456789 123456789 123456789 1234567890
@{listvar} = Create List ${100_marks} ${100_marks} ${100_marks}
Should Be Equal ${100_marks} @{listvar}[0]
Should Be Equal ${100_marks} @{listvar}[1]
Should Be Equal ${100_marks} @{listvar}[2]
-Set Scalar Variables With More Values Than Variables
+Scalar Variables With More Values Than Variables
[Documentation] Extra string variables are added to last scalar
variable as list
${a} ${b} ${c} = List a b c d
... e f
@@ -75,50 +81,58 @@
Should Be True '${b}' == 'b'
Should Be True ${c} == ['c', 'd', 'e', 'f']
-Set Multiple Scalars With Too Few Values
- [Documentation] FAIL Cannot assign return value of
keyword 'BuiltIn.Create List' to variables '\${a}', '\${b}' and '\${c}':
Need more values than 2
+Multiple Scalars With Too Few Values
+ [Documentation] FAIL Cannot assign return values: Need more values
than 2.
${a} ${b} ${c} = Create List a b
-Set Multiple Scalars When No List Returned
- [Documentation] FAIL Cannot assign return value of
keyword 'BuiltIn.Set Variable' to variables '\${a}' and '\${b}': Expected
list, got string instead
+Multiple Scalars When No List Returned
+ [Documentation] FAIL Cannot assign return values: Expected list-like
object, got string instead.
${a} ${b} = Set Variable This is not list
-Set List When No List Returned
- [Documentation] FAIL Cannot assign return value of
keyword 'BuiltIn.Set Variable' to variable '\...@{list}': Expected list, got
integer instead
+List When No List Returned
+ [Documentation] FAIL Cannot assign return values: Expected list-like
object, got integer instead.
@{list} = Set Variable ${42}
-Set List To Scalar And List Varibles
+List To Scalar And List Varibles
${a} ${b} @{c} = Create List 1 2 c d
... e f
Should Be True ${a} + ${b} == 3
Should Be True @{c} == ['c', 'd', 'e', 'f']
Should Be Equal @{c}...@{c}[2]@{c}[3] @{c}[3]oo(@{c}[0]): print
@{c}[0] def foo(c): print c
-Assigning One None To Multiple Variables
+One None To Multiple Variables
${x} ${y} = Run Keyword If False Not Executed
Should Be Equal ${x} ${None}
Should Be Equal ${y} ${None}
-Assigning None To List Variable
+One None To List Variable
@{list} = Log This returns None
Should Be True @{list} == []
-Assigning One None To Scalar Variables And List Variable
+One None To Scalar Variables And List Variable
${a} ${b} ${c} @{d} = No Operation
Should Be Equal ${a} ${None}
Should Be Equal ${b} ${None}
Should Be Equal ${c} ${None}
Should Be True @{d} == []
+List Variable Can Be Only Last 1
+ [Documentation] FAIL Only the last variable to assign can be a list
variable.
+ @{list} @{list2} = Set Variable 1 2
+
+List Variable Can Be Only Last 2
+ [Documentation] FAIL Only the last variable to assign can be a list
variable.
+ @{list} ${scalar} = Set Variable 1 2
+
No Keyword
- [Documentation] FAIL Syntax error: No keyword specified
+ [Documentation] FAIL No keyword with name '' found.
${nokeyword}
-Failing Set Keyword
+Failing Keyword
[Documentation] FAIL Failing instead of returning
${ret} = Fail Failing instead of returning
-Failing Set Keyword And Teardown
+Failing Keyword And Teardown
[Documentation] FAIL Failing, again, instead of returning\n \n Also
teardown failed:\n Teardown fails but it is executed normally
${ret} = Fail Failing, again, instead of returning
[Teardown] Fail Teardown fails but it is executed normally