from robot.api import ExecutionResult
result = ExecutionResult('output.xml')
stats = result.statistics
print(f"Number of Failed Tests: {stats.failed}")
print(f"Total number of Tests: {stats.passed}")
And I get the following error:
AttributeError: 'Statistics' object has no attribute 'failed'
Hello,
I just tried running the first example of Getting result statistics:
And I get the following error:
AttributeError: 'Statistics' object has no attribute 'failed'
It seems that the proper way to get these statistics are through the
total
attribute: