5 new revisions:

Revision: 07a0e7684aa1
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 06:45:57 2013
Log:      new run: listener compatibility with old model
http://code.google.com/p/robotframework/source/detail?r=07a0e7684aa1

Revision: 8c4a62fb414a
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 06:56:18 2013
Log:      model: Tags.__repr__
http://code.google.com/p/robotframework/source/detail?r=8c4a62fb414a

Revision: fa042247cb4f
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:42:22 2013
Log:      better default for timeout
http://code.google.com/p/robotframework/source/detail?r=fa042247cb4f

Revision: 4a89a38a38db
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:42:45 2013
Log:      fixed error reporting in listener test
http://code.google.com/p/robotframework/source/detail?r=4a89a38a38db

Revision: 408edba2f5ed
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:44:24 2013
Log:      new run: support listeners (for most parts)
http://code.google.com/p/robotframework/source/detail?r=408edba2f5ed

==============================================================================
Revision: 07a0e7684aa1
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 06:45:57 2013
Log:      new run: listener compatibility with old model
http://code.google.com/p/robotframework/source/detail?r=07a0e7684aa1

Modified:
 /src/robot/common/model.py
 /src/robot/output/listeners.py

=======================================
--- /src/robot/common/model.py  Wed Jan  9 08:47:50 2013
+++ /src/robot/common/model.py  Mon May 27 06:45:57 2013
@@ -127,6 +127,10 @@
             count += suite.get_test_count()
         return count

+    @property
+    def test_count(self):
+        return self.get_test_count()
+
     def get_full_message(self):
         """Returns suite's message including statistics message"""
         stat_msg = self.get_stat_message()
=======================================
--- /src/robot/output/listeners.py      Tue Mar  6 00:46:30 2012
+++ /src/robot/output/listeners.py      Mon May 27 06:45:57 2013
@@ -83,7 +83,7 @@
                 attrs = self._get_start_attrs(suite, 'metadata')
                 attrs.update({'tests' : [t.name for t in suite.tests],
                               'suites': [s.name for s in suite.suites],
-                              'totaltests': suite.get_test_count(),
+                              'totaltests': suite.test_count,
                               'source': suite.source or ''})
                 li.call_method(li.start_suite, suite.name, attrs)


==============================================================================
Revision: 8c4a62fb414a
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 06:56:18 2013
Log:      model: Tags.__repr__
http://code.google.com/p/robotframework/source/detail?r=8c4a62fb414a

Modified:
 /src/robot/model/tags.py
 /utest/model/test_tags.py

=======================================
--- /src/robot/model/tags.py    Fri May 17 03:16:00 2013
+++ /src/robot/model/tags.py    Mon May 27 06:56:18 2013
@@ -48,6 +48,9 @@
     def __unicode__(self):
         return u'[%s]' % ', '.join(self)

+    def __repr__(self):
+        return repr(self._tags)
+
     def __str__(self):
         return unicode(self).encode('UTF-8')

=======================================
--- /utest/model/test_tags.py   Fri May 17 03:16:00 2013
+++ /utest/model/test_tags.py   Mon May 27 06:56:18 2013
@@ -93,6 +93,10 @@
         assert_equal(str(Tags(['y', "X'X"])), "[X'X, y]")
         assert_equal(str(Tags([u'\xe4', 'a'])), '[a, \xc3\xa4]')

+    def test_repr(self):
+        for tags in ([], ['y', "X'X"], [u'\xe4', 'a']):
+            assert_equal(repr(Tags(tags)), repr(sorted(tags)))
+
     def test__add__list(self):
         tags = Tags(['xx', 'yy'])
         new_tags = tags + ['zz', 'ee', 'XX']

==============================================================================
Revision: fa042247cb4f
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:42:22 2013
Log:      better default for timeout
http://code.google.com/p/robotframework/source/detail?r=fa042247cb4f

Modified:
 /src/robot/result/testcase.py

=======================================
--- /src/robot/result/testcase.py       Wed Mar 21 01:52:48 2012
+++ /src/robot/result/testcase.py       Mon May 27 07:42:22 2013
@@ -21,7 +21,7 @@
     __slots__ = ['status', 'message', 'starttime', 'endtime']
     keyword_class = Keyword

- def __init__(self, name='', doc='', tags=None, timeout='', status='FAIL', + def __init__(self, name='', doc='', tags=None, timeout=None, status='FAIL',
                  message='', starttime=None, endtime=None):
         """Results of a single test case.


==============================================================================
Revision: 4a89a38a38db
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:42:45 2013
Log:      fixed error reporting in listener test
http://code.google.com/p/robotframework/source/detail?r=4a89a38a38db

Modified:
 /atest/testresources/listeners/attributeverifyinglistener.py

=======================================
--- /atest/testresources/listeners/attributeverifyinglistener.py Wed Sep 12 15:17:39 2012 +++ /atest/testresources/listeners/attributeverifyinglistener.py Mon May 27 07:42:45 2013
@@ -46,7 +46,7 @@
             OUTFILE.write('PASSED | %s: %s\n' % (name, value))
         else:
             OUTFILE.write('FAILED | %s: %r, Expected: %s, Actual: %s\n'
-                          % (name, value, type(value), exp_type))
+                          % (name, value, exp_type, type(value)))

 def close():
     OUTFILE.close()

==============================================================================
Revision: 408edba2f5ed
Branch:   default
Author:   Robot Framework Developers (robotframew...@gmail.com)
Date:     Mon May 27 07:44:24 2013
Log:      new run: support listeners (for most parts)
http://code.google.com/p/robotframework/source/detail?r=408edba2f5ed

Modified:
 /src/robot/output/listeners.py
 /src/robot/result/testsuite.py

=======================================
--- /src/robot/output/listeners.py      Mon May 27 06:45:57 2013
+++ /src/robot/output/listeners.py      Mon May 27 07:44:24 2013
@@ -17,6 +17,7 @@

 from robot import utils
 from robot.errors import DataError
+from robot.model import Tags

 from .loggerhelper import AbstractLoggerProxy
 from .logger import LOGGER
@@ -102,11 +103,12 @@
         self._running_test = True
         for li in self._listeners:
             if li.version == 1:
- li.call_method(li.start_test, test.name, test.doc, test.tags)
+                li.call_method(li.start_test, test.name, test.doc,
+                               list(test.tags))
             else:
                 attrs = self._get_start_attrs(test, 'tags')
                 attrs['critical'] = 'yes' if test.critical else 'no'
-                attrs['template'] = test.template or ''
+ attrs['template'] = getattr(test, 'template', None) or '' # TODO: Doesn't work correctly with new run
                 li.call_method(li.start_test, test.name, attrs)

     def end_test(self, test):
@@ -117,7 +119,7 @@
             else:
                 attrs = self._get_end_attrs(test, 'tags')
                 attrs['critical'] = 'yes' if test.critical else 'no'
-                attrs['template'] = test.template or ''
+ attrs['template'] = getattr(test, 'template', None) or '' # TODO: Doesn't work correctly with new run
                 li.call_method(li.end_test, test.name, attrs)

     def start_keyword(self, kw):
@@ -200,7 +202,7 @@
     def _take_copy_of_mutable_value(self, value):
         if isinstance(value, (dict, utils.NormalizedDict)):
             return dict(value)
-        if isinstance(value, list):
+        if isinstance(value, (list, tuple, Tags)):
             return list(value)
         return value

=======================================
--- /src/robot/result/testsuite.py      Fri May 24 06:03:27 2013
+++ /src/robot/result/testsuite.py      Mon May 27 07:44:24 2013
@@ -96,3 +96,6 @@
     @property
     def critical(self):
         return self.criticality
+
+    def get_stat_message(self):
+        return self.statistics.message

--

--- 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 robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to