[Hildon-test-aut-commits] r252 - trunk/dogtail/dogtail
suanand at garage.maemo.org
suanand at garage.maemo.org
Mon Aug 20 16:59:39 EEST 2007
Author: suanand
Date: 2007-08-20 16:59:36 +0300 (Mon, 20 Aug 2007)
New Revision: 252
Modified:
trunk/dogtail/dogtail/rocknrole.py
Log:
Overriding shortDescription to print all the teststeps
Modified: trunk/dogtail/dogtail/rocknrole.py
===================================================================
--- trunk/dogtail/dogtail/rocknrole.py 2007-08-20 12:19:06 UTC (rev 251)
+++ trunk/dogtail/dogtail/rocknrole.py 2007-08-20 13:59:36 UTC (rev 252)
@@ -307,13 +307,13 @@
self.__doer(action, self.node)
def __doer(self, action, nodeon=None):
- """ Maps the actions to dogtail's tree module or rawinput module
+ """ Maps the actions to dogtail's tree module or rawinput module
posclick_x_y - maps to rawclick(from dogtail's rawinput module) on the node's x,y co-ords, the offsets can be optionally specified with "_x"
e.g. posclick_5_10 - rawclicks on the node's (x+5,y+10) co-ord, or posclick_10 rawclicks to the node's (x+10,y) co-ord
doubleclick - rawinput's doubleClick
rawClick - tree module's rawClick
<anythingElse> - doAction(...) from tree
- """
+ """
if not nodeon : nodeon=self.RRlastItem
if nodeon :
if action == 'rawclick' :
@@ -544,6 +544,10 @@
class testCaseR(unittest.TestCase):
+ def shortDescription(self):
+ """Overriding shortDescription to print all lines in docstring """
+ return "\t#### Test " + self.__class__.__name__ + '_' + self._TestCase__testMethodName + '\n\t' + str(self._TestCase__testMethodDoc) + '\n'
+
## TODO : Should override setUp and tearDown to do device-specific activity : syslog-snippets, checking-for-cores etc.
""" Asserts if infobanner comes up; may not work properly if infobanner goes off before the node is stored as an RNR object's attribute """
More information about the Hildon-test-aut-commits
mailing list