29 self.
teststests.append(test.longname)
35 class GatherFailedSuites(SuiteVisitor):
41 if any(
not test.passed
for test
in suite.tests):
42 self.
suitessuites.append(suite.longname)
52 if output.upper() ==
'NONE':
54 gatherer = GatherFailedTests()
55 tests_or_tasks =
'tests or tasks'
59 tests_or_tasks =
'tests' if not suite.rpa
else 'tasks'
60 if not gatherer.tests:
61 raise DataError(
'All %s passed.' % tests_or_tasks)
63 raise DataError(
"Collecting failed %s from '%s' failed: %s"
69 if output.upper() ==
'NONE':
74 if not gatherer.suites:
77 raise DataError(
"Collecting failed suites from '%s' failed: %s"
79 return gatherer.suites
def start_suite(self, suite)
def visit_keyword(self, kw)
def visit_test(self, test)
def visit_test(self, test)
def visit_keyword(self, kw)
Used when variable does not exist.
def gather_failed_suites(output)
def gather_failed_tests(output)
def ExecutionResult(*sources, **options)
Factory method to constructs :class:~.executionresult.Result objects.
def get_error_message()
Returns error message of the last occurred exception.