Revision: 4266
Author: pekka.klarck
Date: Tue Oct 26 06:42:29 2010
Log: format + use ${TESTNAME} variable when checking executed tests
http://code.google.com/p/robotframework/source/detail?r=4266

Added:
 /trunk/atest/robot/variables/list_variable_as_scalar.txt
 /trunk/atest/testdata/variables/list_variable_as_scalar.txt
Deleted:
 /trunk/atest/robot/variables/list_variable_as_scalar.html
 /trunk/atest/testdata/variables/list_variable_as_scalar.html

=======================================
--- /dev/null
+++ /trunk/atest/robot/variables/list_variable_as_scalar.txt Tue Oct 26 06:42:29 2010
@@ -0,0 +1,18 @@
+*** Settings ***
+Suite Setup     Run Tests  ${EMPTY}  variables/list_variable_as_scalar.txt
+Force Tags      pybot  jybot  regression
+Resource        atest_resource.txt
+
+*** Test Cases ***
+Using List Variable As Scalar
+    Check Test Case  ${TESTNAME}
+
+List Variable As Scalar With Extended Syntax
+    Check Test Case  ${TESTNAME}
+
+Access and Modify List Variable With Keywords From Collections Library
+    Check Test Case  ${TESTNAME}
+
+Modifications To List Variables Live Between Test Cases
+    Check Test Case  ${TESTNAME}
+
=======================================
--- /dev/null
+++ /trunk/atest/testdata/variables/list_variable_as_scalar.txt Tue Oct 26 06:42:29 2010
@@ -0,0 +1,34 @@
+*** Settings ***
+Library         Collections
+
+*** Variables ***
+...@{list}  spam  eggs  ${21}
+...@{scalar}  spam  eggs  ${21}
+
+*** Test Cases ***
+Using List Variable As Scalar
+    Log  ${LIST}
+    Should Be Equal  ${LIST}  ${SCALAR}
+    Should Be True  @{LIST} == ${LIST}
+    Length Should Be  ${LIST}  3
+
+List Variable As Scalar With Extended Syntax
+    Should Be Equal  ${LIST[0]} and ${LIST[1]}  spam and eggs
+    Should Be Equal  ${list [2] * 2}  ${42}
+    Should Be Equal  ${LIST.__len__()}  ${3}
+
+Access and Modify List Variable With Keywords From Collections Library
+    Lists Should Be Equal  ${LIST}  ${SCALAR}
+    Append To List  ${LIST}  new value
+    List Should Contain Value  ${LIST}  new value
+    Remove Values From List  ${LIST}  eggs
+    Set List Value  ${LIST}  0  ham
+    Should Be True  ${LIST} == ['ham', 21, 'new value']
+    Reverse List  ${LIST}
+    Should Be Equal  @{LIST}[0]  new value
+    Should Be Equal  @{LIST}[1]  ${21}
+    Should Be Equal  @{LIST}[-1]  ham
+
+Modifications To List Variables Live Between Test Cases
+    Should Be True  ${LIST} == ['new value', 21, 'ham']
+
=======================================
--- /trunk/atest/robot/variables/list_variable_as_scalar.html Mon Apr 12 05:17:10 2010
+++ /dev/null
@@ -1,178 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-<meta name="generator" content="HTML Tidy for Cygwin (vers 1st September 2004), see www.w3.org">
-<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;
-}
-/* required for IE */
-th {
-  font-style: normal;
-}
-</style>
-<title>Robot Test Cases</title></head>
-
-<body>
-<h1>Robot Test Cases</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>Force Tags</td>
-<td>pybot</td>
-<td>jybot</td>
-<td>regression</td>
-<td></td>
-</tr>
-<tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Resource</td><td>atest_resource.txt</td><td></td><td></td><td></td></tr><tr>
-<td>Suite Setup</td>
-<td>Run Tests</td>
-<td></td>
-<td>variables${/}list_variable_as_scalar.html</td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<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>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<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>Argument</th>
-<th>Argument</th>
-<th>Argument</th>
-</tr>
-</thead>
-<tbody>
-<tr><td>Using List Variable As Scalar</td><td>Check Test Case</td><td>Using List Variable As Scalar</td><td></td><td></td><td></td><td></td></tr><tr><td>List Variable As Scalar With Extended Syntax</td><td>Check Test Case</td><td>List Variable As Scalar With Extended Syntax</td><td></td><td></td><td></td><td></td></tr><tr> -<td>Access and Modify List Variable With Keywords From Collections Library</td>
-<td>Check Test Case</td>
-<td>Access and Modify List Variable With Keywords From Collections Library</td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr>
-<td>Modifications To List Variables Live Between Test Cases</td>
-<td>Check Test Case</td>
-<td>Modifications To List Variables Live Between Test Cases</td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<table border="1">
-<colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
-<thead>
-<tr>
-<th>Keyword</th>
-<th>Action</th>
-<th>Argument</th>
-<th>Argument</th>
-<th>Argument</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-</body></html>
=======================================
--- /trunk/atest/testdata/variables/list_variable_as_scalar.html Thu Oct 2 05:45:25 2008
+++ /dev/null
@@ -1,178 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html><head>
-<meta name="generator" content="HTML Tidy for Cygwin (vers 1st September 2004), see www.w3.org">
-<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;
-}
-/* required for IE */
-th {
-  font-style: normal;
-}
-</style>
-<title>Robot Test Cases</title></head>
-
-<body>
-<h1>Robot Test Cases</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>Library</td>
-<td>Collections</td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<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>@{LIST}</td>
-<td>spam</td>
-<td>eggs</td>
-<td>${21}</td>
-<td></td>
-</tr>
-<tr><td>@{SCALAR}</td><td>spam</td><td>eggs</td><td>${21}</td><td></td></tr><tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<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>Argument</th>
-<th>Argument</th>
-<th>Argument</th>
-</tr>
-</thead>
-<tbody>
-<tr><td>Using List Variable As Scalar</td><td>Log</td><td>${LIST}</td><td></td><td></td><td></td><td></td></tr><tr>
-<td></td>
-<td>Should Be Equal</td>
-<td>${LIST}</td>
-<td>${SCALAR}</td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr>
-<td></td>
-<td>Should Be True</td>
-<td>@{LIST} == ${LIST}</td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr><tr><td></td><td>Length Should Be</td><td>${LIST}</td><td>3</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>List Variable As Scalar With Extended Syntax</td><td>Should Be Equal</td><td>${LIST[0]} and ${LIST[1]}</td><td>spam and eggs</td><td></td><td></td><td></td></tr><tr><td></td><td>Should Be Equal</td><td>${list [2] * 2}</td><td>${42}</td><td></td><td></td><td></td></tr><tr><td></td><td>Should Be Equal</td><td>${LIST.__len__()}</td><td>${3}</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Access and Modify List Variable With Keywords From Collections Library</td><td>Lists Should Be Equal</td><td>${LIST}</td><td>${SCALAR}</td><td></td><td></td><td></td></tr><tr><td></td><td>Append To List</td><td>${LIST}</td><td>new value</td><td></td><td></td><td></td></tr><tr><td></td><td>List Should Contain Value</td><td>${LIST}</td><td>new value</td><td></td><td></td><td></td></tr><tr><td></td><td>Remove Values From List</td><td>${LIST}</td><td>eggs</td><td></td><td></td><td></td></tr><tr><td></td><td>Set List Value</td><td>${LIST}</td><td>0</td><td>ham</td><td></td><td></td></tr><tr><td></td><td>Should Be True</td><td>${LIST} == ['ham', 21, 'new value']</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Reverse List</td><td>${LIST}</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Should Be Equal</td><td>@{LIST}[0]</td><td>new value</td><td></td><td></td><td></td></tr><tr><td></td><td>Should Be Equal</td><td>@{LIST}[1]</td><td>${21}</td><td></td><td></td><td></td></tr><tr><td></td><td>Should Be Equal</td><td>@{LIST}[-1]</td><td>ham</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Modifications To List Variables Live Between Test Cases</td><td>Should Be True</td><td>${LIST} == ['new value', 21, 'ham']</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
-</tbody>
-</table>
-<table border="1">
-<colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
-<thead>
-<tr>
-<th>Keyword</th>
-<th>Action</th>
-<th>Argument</th>
-<th>Argument</th>
-<th>Argument</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-</body></html>

Reply via email to