Revision: 4002
Author: pekka.klarck
Date: Tue Aug 31 02:49:23 2010
Log: fixed warnings after cleanups
http://code.google.com/p/robotframework/source/detail?r=4002

Modified:
 /trunk/atest/robot/keywords/keyword_namespaces.txt
 /trunk/atest/robot/variables/variable_table.txt

=======================================
--- /trunk/atest/robot/keywords/keyword_namespaces.txt Mon May 24 13:23:25 2010 +++ /trunk/atest/robot/keywords/keyword_namespaces.txt Tue Aug 31 02:49:23 2010
@@ -24,12 +24,12 @@

 Keyword From User Library Overrides Keywords From Standard Library
Check Test Case Keyword From User Library Overrides Keywords From Standard Library - Check Log Message ${ERRORS.msgs[0]} Keyword 'Comment' found both from a user created test library 'MyLibrary1' and Robot Framework standard library 'BuiltIn'. The user created keyword is used. To select explicitly, and to get rid of this warning, use full format i.e. either 'MyLibrary1.Comment' or 'BuiltIn.Comment'. WARN - Check Log Message ${ERRORS.msgs[1]} Keyword 'Copy Directory' found both from a user created test library 'MyLibrary1' and Robot Framework standard library 'OperatingSystem'. The user created keyword is used. To select explicitly, and to get rid of this warning, use full format i.e. either 'MyLibrary1.Copy Directory' or 'OperatingSystem.Copy Directory'. WARN
+    Verify Override Message  ${ERRORS.msgs[0]}  Comment  BuiltIn
+ Verify Override Message ${ERRORS.msgs[1]} Copy Directory OperatingSystem

Keyword From User Library Overrides Keywords From Standard Library Even When Std Lib Imported With Different Name Check Test Case Keyword From User Library Overrides Keywords From Standard Library Even When Std lib imported with Different Name - Check Log Message ${ERRORS.msgs[2]} Keyword 'Replace String' found both from a user created test library 'MyLibrary1' and Robot Framework standard library 'String'. The user created keyword is used. To select explicitly, and to get rid of this warning, use full format i.e. either 'MyLibrary1.Replace String' or 'Std Lib With Custom Name.Replace String'. WARN + Verify Override Message ${ERRORS.msgs[2]} Replace String String Std Lib With Custom Name

No Warning When User Library Keyword Is Registered As RunKeyword Variant And It Has Same Name As Std Keyword Check Test Case No Warning when User Library Keyword Is Registered As RunKeyword Variant And It Has Same Name As Std Keyword
@@ -40,3 +40,13 @@
Check Test Case Keyword in More than one user library and standard library
     Check Syslog does Not Contain  BuiltIn.Noop

+
+***Keywords***
+Verify override message  [Arguments]  ${msg}  ${kw}  ${stdlib}  ${custom}=
+    ${stdlib2} =  Set Variable If  "${custom}"  ${custom}  ${stdlib}
+    ${expected} =  Catenate
+    ...  Keyword '${kw}' found both from a user created test library
+    ...  'MyLibrary1' and Robot Framework standard library '${stdlib}'.
+ ... The user created keyword is used. To select explicitly, and to get rid + ... of this warning, use either 'MyLibrary1.${kw}' or '${stdlib2}.${kw}'.
+    Check Log Message  ${msg}  ${expected}  WARN
=======================================
--- /trunk/atest/robot/variables/variable_table.txt     Thu Aug 26 03:46:00 2010
+++ /trunk/atest/robot/variables/variable_table.txt     Tue Aug 31 02:49:23 2010
@@ -66,7 +66,7 @@
 Syslog Contains Deprecation Warning About Variable
     [Arguments]  ${name}
     Check Syslog Contains Regexp
- ... Creating scalar variable with more than one value is deprecated and - ... this functionality will be removed in Robot Framework 2\\.6\\. Create
-    ...  a list variable '@\\{${name}}' and use it as a scalar variable
-    ...  '\\$\\{${name}}' instead in file '.*'\\.
+ ... Creating a scalar variable with a list value in the Variable table is + ... deprecated and this functionality will be removed in Robot Framework + ... 2\\.6\\. Create a list variable '@\\{${name}}' and use it as a scalar
+    ...  variable '\\$\\{${name}}' instead in file '.*'\\.

Reply via email to