Revision: 1e8ab254183c
Branch: default
Author: Pekka Klärck
Date: Tue Jan 21 21:39:33 2014 UTC
Log: Remote: Test that extra stuff in result dictionary is ignored.
Update issue 1628
Added explicit test that Remote library ignores extra stuff in the
result dictionary. This means that remote servers adding support for new
'continuable' and 'fatal' values don't need to worry about backwards
compatibility with RF < 2.8.4. Those versions obvisously won't recognize
these values, but they won't cause other problems.
http://code.google.com/p/robotframework/source/detail?r=1e8ab254183c
Modified:
/atest/robot/standard_libraries/remote/simple_server.txt
/atest/testdata/standard_libraries/remote/simple_server.txt
/atest/testdata/standard_libraries/remote/simpleserver.py
=======================================
--- /atest/robot/standard_libraries/remote/simple_server.txt Fri Jan 3
13:36:20 2014 UTC
+++ /atest/robot/standard_libraries/remote/simple_server.txt Tue Jan 21
21:39:33 2014 UTC
@@ -20,6 +20,9 @@
${tc} = Check Test Case ${TESTNAME}
Check Log Message ${tc.kws[0].msgs[0]} I can has logz?
Check Log Message ${tc.kws[0].msgs[1]} Yezz!! DEBUG
+
+Extra stuff in result dictionary is ignored
+ Check Test Case ${TESTNAME}
Keyword documentation
[Documentation] Library does not have `get_keyword_documentation`
method.
=======================================
--- /atest/testdata/standard_libraries/remote/simple_server.txt Tue Jan 21
13:16:05 2014 UTC
+++ /atest/testdata/standard_libraries/remote/simple_server.txt Tue Jan 21
21:39:33 2014 UTC
@@ -31,3 +31,6 @@
Logging
${ret} = Logging I can has logz? *DEBUG* Yezz!!
Should Be Equal ${ret} ${EMPTY}
+
+Extra stuff in result dictionary is ignored
+ Extra stuff in result dictionary
=======================================
--- /atest/testdata/standard_libraries/remote/simpleserver.py Mon Dec 16
09:39:37 2013 UTC
+++ /atest/testdata/standard_libraries/remote/simpleserver.py Tue Jan 21
21:39:33 2014 UTC
@@ -14,7 +14,8 @@
self.serve_forever()
def get_keyword_names(self):
- return ['Passing', 'Failing', 'Traceback', 'Returning', 'Logging']
+ return ['Passing', 'Failing', 'Traceback', 'Returning', 'Logging',
+ 'Extra stuff in result dictionary']
def run_keyword(self, name, args):
if name == 'Passing':
@@ -27,6 +28,8 @@
return {'status': 'PASS', 'return': ' '.join(args)}
if name == 'Logging':
return {'status': 'PASS', 'output': '\n'.join(args)}
+ if name == 'Extra stuff in result dictionary':
+ return {'status': 'PASS', 'extra': 'stuff', 'is': 'ignored'}
if __name__ == '__main__':
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.