Revision: 3544
Author: janne.t.harkonen
Date: Wed May 26 03:23:42 2010
Log: Some more tests for metadata
http://code.google.com/p/robotframework/source/detail?r=3544

Modified:
 /trunk/atest/robot/cli/runner/suite_name_doc_and_metadata.txt
 /trunk/atest/robot/core/suite_metadata.txt
 /trunk/atest/testdata/core/suite_metadata.txt

=======================================
--- /trunk/atest/robot/cli/runner/suite_name_doc_and_metadata.txt Tue May 25 05:32:35 2010 +++ /trunk/atest/robot/cli/runner/suite_name_doc_and_metadata.txt Wed May 26 03:23:42 2010
@@ -14,11 +14,14 @@
     Should Be Equal  ${SUITE.metadata['Something']}  My Value

 Overriding Name, Doc & Metadata And Escaping
- Run Tests -N this_is_overridden_next --name my_COOL_Name.EXEX. --doc Even_cooooler_docEXQU --metadata something:new --metadata Two_Parts:three_part_VALUE -M esc:STQUDOAMHAEXEX --escape star:ST -E quest:QU -E dollar:DO -E amp:AM -E hash:HA -E exclam:EX ${TESTFILE} + Run Tests -l log.html -N this_is_overridden_next --name my_COOL_Name.EXEX. --doc Even_cooooler_docEXQU --metadata something:new --metadata Two_Parts:three_part_VALUE -M esc:STQUDOAMHAEXEX --escape star:ST -E quest:QU -E dollar:DO -E amp:AM -E hash:HA -E exclam:EX ${TESTFILE}
     Check Names  ${SUITE}  my COOL Name.!!.
     Check Names  ${SUITE.tests[0]}  First One  my COOL Name.!!..
     Check Names  ${SUITE.tests[1]}  Second One  my COOL Name.!!..
     Should Be Equal  ${SUITE.doc}  Even cooooler doc!?
-    Should Be Equal  ${SUITE.metadata['something']}  new
+    Should Be Equal  ${SUITE.metadata['Something']}  new
     Should Be Equal  ${SUITE.metadata['Two Parts']}  three part VALUE
     Should Be Equal  ${SUITE.metadata['esc']}  *?$&#!!
+    Check File Contains  ${OUTDIR}/log.html  Something
+    Check File Does Not Contain  ${OUTDIR}/log.html  something
+
=======================================
--- /trunk/atest/robot/core/suite_metadata.txt  Tue May 25 05:38:17 2010
+++ /trunk/atest/robot/core/suite_metadata.txt  Wed May 26 03:23:42 2010
@@ -10,9 +10,6 @@
 Metadata
     Should be Equal  ${suite.metadata['Name']}  Value

-Metadata Names Are Case Sensitive
-    Should be Equal  ${suite.metadata['name']}  names are case sensitive
-
 Metadata In Multiple Columns
Should be Equal ${suite.metadata['Multiple columns']} Value in multiple columns

=======================================
--- /trunk/atest/testdata/core/suite_metadata.txt       Tue May 25 05:38:17 2010
+++ /trunk/atest/testdata/core/suite_metadata.txt       Wed May 26 03:23:42 2010
@@ -2,7 +2,6 @@
 Resource  resources.html

 Metadata  Name  Value
-Metadata  name  names are case sensitive
 MetadatA  Multiple columns  Value in  multiple  columns
 Meta data  multiple lines  Value in  multiple lines  '\n\n'   and with
 ...  real newlines
@@ -11,7 +10,7 @@
 Metadata  Value from CLI  ${META_VALUE_FROM_CLI}
 Metadata  Escaping   Three backslashes \\\\\\
 Metadata  Overridden  first value
-Metadata  Overridden  This overrides first value
+Metadata  over ridden  This overrides first value
 Meta: old style meta  some value

 *** Variables ***

Reply via email to