18 from .stats
import TotalStat
19 from .visitor
import SuiteVisitor
31 visitor.visit_total_statistics(self.
_stat_stat)
40 return self.
_stat_stat.total
46 return self.
_stat_stat.passed
52 return self.
_stat_stat.skipped
58 return self.
_stat_stat.failed
73 test_or_task =
'test' if not self.
_rpa_rpa
else 'task'
74 total, end, passed, failed, skipped = self.
_get_counts_get_counts()
75 template =
'%d %s%s, %d passed, %d failed'
77 return ((template +
', %d skipped')
78 % (total, test_or_task, end, passed, failed, skipped))
79 return template % (total, test_or_task, end, passed, failed)
82 ending =
's' if self.
totaltotaltotal != 1
else ''
Stores statistic values for a test run.
def __init__(self, suite=None, rpa=False)
def visit_test(self, test)
Implements traversing through tests.
def visit_keyword(self, kw)
Implements traversing through keywords.
Container for total statistics.
def __init__(self, rpa=False)
message
String representation of the statistics.
Interface to ease traversing through a test suite structure.
def test_or_task(str text, bool rpa)
Replace 'test' with 'task' in the given text depending on rpa.