robot.result package¶
Implements parsing execution results from XML output files.
The main public API of this package consists of the ExecutionResult()
factory method, that returns Result
objects, and of the
ResultVisitor
abstract class, that eases further processing
the results.
The model objects in the model
module can also be considered to be
part of the public API, because they can be found inside the Result
object. They can also be inspected and modified as part of the normal test
execution by pre-Rebot modifiers and listeners.
It is highly recommended to import the public entry-points via the
robot.api
package like in the example below. In those rare cases
where the aforementioned model objects are needed directly, they can be
imported from this package.
This package is considered stable.
Example¶
#!/usr/bin/env python
"""Usage: check_test_times.py seconds inpath [outpath]
Reads test execution result from an output XML file and checks that no test
took longer than given amount of seconds to execute.
Optional `outpath` specifies where to write processed results. If not given,
results are written over the original file.
"""
import sys
from robot.api import ExecutionResult, ResultVisitor
class ExecutionTimeChecker(ResultVisitor):
def __init__(self, max_seconds):
self.max_milliseconds = max_seconds * 1000
def visit_test(self, test):
if test.status == 'PASS' and test.elapsedtime > self.max_milliseconds:
test.status = 'FAIL'
test.message = 'Test execution took too long.'
def check_tests(seconds, inpath, outpath=None):
result = ExecutionResult(inpath)
result.visit(ExecutionTimeChecker(float(seconds)))
result.save(outpath)
if __name__ == '__main__':
try:
check_tests(*sys.argv[1:])
except TypeError:
print(__doc__)
Submodules¶
robot.result.configurer module¶
-
class
robot.result.configurer.
SuiteConfigurer
(remove_keywords=None, log_level=None, start_time=None, end_time=None, **base_config)[source]¶ Bases:
robot.model.configurer.SuiteConfigurer
Result suite configured.
Calls suite’s
remove_keywords()
andfilter_messages()
methods and sets its start and end time based on the given named parameters.base_config
is forwarded torobot.model.SuiteConfigurer
that will do further configuration based on them.-
visit_suite
(suite)[source]¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
robot.result.executionerrors module¶
robot.result.executionresult module¶
-
class
robot.result.executionresult.
Result
(source=None, root_suite=None, errors=None, rpa=None)[source]¶ Bases:
object
Test execution results.
Can be created based on XML output files using the
ExecutionResult()
factory method. Also returned by therobot.running.TestSuite.run
method.-
source
= None¶ Path to the XML file where results are read from.
-
errors
= None¶ Execution errors as an
ExecutionErrors
object.
-
statistics
¶ Test execution statistics.
Statistics are an instance of
Statistics
that is created based on the containedsuite
and possibleconfiguration
.Statistics are created every time this property is accessed. Saving them to a variable is thus often a good idea to avoid re-creating them unnecessarily:
from robot.api import ExecutionResult result = ExecutionResult('output.xml') result.configure(stat_config={'suite_stat_level': 2, 'tag_stat_combine': 'tagANDanother'}) stats = result.statistics print(stats.total.failed) print(stats.total.passed) print(stats.tags.combined[0].total)
-
return_code
¶ Return code (integer) of test execution.
By default returns the number of failed tests (max 250), but can be
configured
to always return 0.
-
configure
(status_rc=True, suite_config=None, stat_config=None)[source]¶ Configures the result object and objects it contains.
Parameters: - status_rc – If set to
False
,return_code
always returns 0. - suite_config – A dictionary of configuration options passed
to
configure()
method of the containedsuite
. - stat_config – A dictionary of configuration options used when
creating
statistics
.
- status_rc – If set to
-
save
(path=None)[source]¶ Save results as a new output XML file.
Parameters: path – Path to save results to. If omitted, overwrites the original file.
-
visit
(visitor)[source]¶ An entry point to visit the whole result object.
Parameters: visitor – An instance of ResultVisitor
.Visitors can gather information, modify results, etc. See
result
package for a simple usage example.Notice that it is also possible to call
result.suite.visit
if there is no need to visit the containedstatistics
orerrors
.
-
-
class
robot.result.executionresult.
CombinedResult
(results=None)[source]¶ Bases:
robot.result.executionresult.Result
Combined results of multiple test executions.
-
configure
(status_rc=True, suite_config=None, stat_config=None)¶ Configures the result object and objects it contains.
Parameters: - status_rc – If set to
False
,return_code
always returns 0. - suite_config – A dictionary of configuration options passed
to
configure()
method of the containedsuite
. - stat_config – A dictionary of configuration options used when
creating
statistics
.
- status_rc – If set to
-
handle_suite_teardown_failures
()¶ Internal usage only.
-
return_code
¶ Return code (integer) of test execution.
By default returns the number of failed tests (max 250), but can be
configured
to always return 0.
-
save
(path=None)¶ Save results as a new output XML file.
Parameters: path – Path to save results to. If omitted, overwrites the original file.
-
set_execution_mode
(other)¶ Set execution mode based on other result. Internal usage only.
-
statistics
¶ Test execution statistics.
Statistics are an instance of
Statistics
that is created based on the containedsuite
and possibleconfiguration
.Statistics are created every time this property is accessed. Saving them to a variable is thus often a good idea to avoid re-creating them unnecessarily:
from robot.api import ExecutionResult result = ExecutionResult('output.xml') result.configure(stat_config={'suite_stat_level': 2, 'tag_stat_combine': 'tagANDanother'}) stats = result.statistics print(stats.total.failed) print(stats.total.passed) print(stats.tags.combined[0].total)
-
visit
(visitor)¶ An entry point to visit the whole result object.
Parameters: visitor – An instance of ResultVisitor
.Visitors can gather information, modify results, etc. See
result
package for a simple usage example.Notice that it is also possible to call
result.suite.visit
if there is no need to visit the containedstatistics
orerrors
.
-
robot.result.flattenkeywordmatcher module¶
robot.result.keywordremover module¶
-
class
robot.result.keywordremover.
AllKeywordsRemover
[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
visit_keyword
(keyword)[source]¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_for
(for_)[source]¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_if
(if_)[source]¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
-
class
robot.result.keywordremover.
PassedKeywordRemover
[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
start_suite
(suite)[source]¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_test
(test)[source]¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
visit_keyword
(keyword)[source]¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
-
class
robot.result.keywordremover.
ByNameKeywordRemover
(pattern)[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
start_keyword
(kw)[source]¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
-
class
robot.result.keywordremover.
ByTagKeywordRemover
(pattern)[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
start_keyword
(kw)[source]¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
-
class
robot.result.keywordremover.
ForLoopItemsRemover
[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
start_for
(for_)[source]¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
-
class
robot.result.keywordremover.
WaitUntilKeywordSucceedsRemover
[source]¶ Bases:
robot.result.keywordremover._KeywordRemover
-
start_keyword
(kw)[source]¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
-
class
robot.result.keywordremover.
WarningAndErrorFinder
[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
start_suite
(suite)[source]¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)[source]¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)[source]¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_message
(msg)[source]¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
robot.result.merger module¶
-
class
robot.result.merger.
Merger
(result, rpa=False)[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
start_suite
(suite)[source]¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_test
(test)[source]¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
robot.result.messagefilter module¶
-
class
robot.result.messagefilter.
MessageFilter
(loglevel=None)[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
start_keyword
(keyword)[source]¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
robot.result.model module¶
Module implementing result related model objects.
During test execution these objects are created internally by various runners. At that time they can inspected and modified by listeners.
When results are parsed from XML output files after execution to be able to
create logs and reports, these objects are created by the
ExecutionResult()
factory method.
At that point they can be inspected and modified by pre-Rebot modifiers.
The ExecutionResult()
factory method can also be used
by custom scripts and tools. In such usage it is often easiest to inspect and
modify these objects using the visitor interface
.
-
class
robot.result.model.
Body
(parent=None, items=None)[source]¶ Bases:
robot.model.body.Body
-
filter
(keywords=None, fors=None, ifs=None, messages=None, predicate=None)[source]¶ Filter body items based on type and/or custom predicate.
To include or exclude items based on types, give matching arguments
True
orFalse
values. For example, to include only keywords, usebody.filter(keywords=True)
and to exclude FOR and IF constructs usebody.filter(fors=False, ifs=False)
. Including and excluding by types at the same time is not supported.Custom
predicate
is a calleble getting each body item as an argument that must returnTrue/False
depending on should the item be included or not.Selected items are returned as a list and the original body is not modified.
-
append
(item)¶
-
clear
()¶
-
count
(item)¶
-
create
¶
-
extend
(items)¶
-
index
(item, *start_and_end)¶
-
insert
(index, item)¶
-
pop
(*index)¶
-
remove
(item)¶
-
reverse
()¶
-
sort
()¶
-
visit
(visitor)¶
-
-
class
robot.result.model.
ForIterations
(parent=None, items=None)[source]¶ Bases:
robot.result.model.Body
-
for_iteration_class
¶ alias of
ForIteration
-
keyword_class
= None¶
-
if_class
= None¶
-
for_class
= None¶
-
append
(item)¶
-
clear
()¶
-
count
(item)¶
-
create
¶
-
create_for
(*args, **kwargs)¶
-
create_if
(*args, **kwargs)¶
-
create_keyword
(*args, **kwargs)¶
-
create_message
(*args, **kwargs)¶
-
extend
(items)¶
-
filter
(keywords=None, fors=None, ifs=None, messages=None, predicate=None)¶ Filter body items based on type and/or custom predicate.
To include or exclude items based on types, give matching arguments
True
orFalse
values. For example, to include only keywords, usebody.filter(keywords=True)
and to exclude FOR and IF constructs usebody.filter(fors=False, ifs=False)
. Including and excluding by types at the same time is not supported.Custom
predicate
is a calleble getting each body item as an argument that must returnTrue/False
depending on should the item be included or not.Selected items are returned as a list and the original body is not modified.
-
index
(item, *start_and_end)¶
-
insert
(index, item)¶
-
pop
(*index)¶
-
classmethod
register
(item_class)¶
-
remove
(item)¶
-
reverse
()¶
-
sort
()¶
-
visit
(visitor)¶
-
-
class
robot.result.model.
IfBranches
(parent=None, items=None)[source]¶ Bases:
robot.result.model.Body
,robot.model.body.IfBranches
-
append
(item)¶
-
clear
()¶
-
count
(item)¶
-
create
¶
-
create_for
(*args, **kwargs)¶
-
create_if
(*args, **kwargs)¶
-
create_keyword
(*args, **kwargs)¶
-
create_message
(*args, **kwargs)¶
-
extend
(items)¶
-
filter
(keywords=None, fors=None, ifs=None, messages=None, predicate=None)¶ Filter body items based on type and/or custom predicate.
To include or exclude items based on types, give matching arguments
True
orFalse
values. For example, to include only keywords, usebody.filter(keywords=True)
and to exclude FOR and IF constructs usebody.filter(fors=False, ifs=False)
. Including and excluding by types at the same time is not supported.Custom
predicate
is a calleble getting each body item as an argument that must returnTrue/False
depending on should the item be included or not.Selected items are returned as a list and the original body is not modified.
-
index
(item, *start_and_end)¶
-
insert
(index, item)¶
-
pop
(*index)¶
-
classmethod
register
(item_class)¶
-
remove
(item)¶
-
reverse
()¶
-
sort
()¶
-
visit
(visitor)¶
-
-
class
robot.result.model.
Message
(message='', level='INFO', html=False, timestamp=None, parent=None)[source]¶ Bases:
robot.model.message.Message
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
SETUP
= 'SETUP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
html
¶
-
html_message
¶ Returns the message content as HTML.
-
id
¶
-
level
¶
-
message
¶
-
parent
¶
-
repr_args
= ('message', 'level')¶
-
timestamp
¶
-
type
= 'MESSAGE'¶
-
visit
(visitor)[source]¶ Visitor interface
entry-point.
-
-
class
robot.result.model.
StatusMixin
[source]¶ Bases:
object
-
PASS
= 'PASS'¶
-
FAIL
= 'FAIL'¶
-
SKIP
= 'SKIP'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
elapsedtime
¶ Total execution time in milliseconds.
-
passed
¶ True
whenstatus
is ‘PASS’,False
otherwise.
-
failed
¶ True
whenstatus
is ‘FAIL’,False
otherwise.
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
-
class
robot.result.model.
ForIteration
(variables=None, status='FAIL', starttime=None, endtime=None, doc='', parent=None)[source]¶ Bases:
robot.model.body.BodyItem
,robot.result.model.StatusMixin
,robot.result.modeldeprecation.DeprecatedAttributesMixin
-
type
= 'FOR ITERATION'¶
-
repr_args
= ('variables',)¶
-
variables
¶
-
parent
¶
-
status
¶
-
starttime
¶
-
endtime
¶
-
doc
¶
-
body
¶
-
name
¶ Deprecated.
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FAIL
= 'FAIL'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SETUP
= 'SETUP'¶
-
SKIP
= 'SKIP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
args
¶ Deprecated.
-
assign
¶ Deprecated.
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
elapsedtime
¶ Total execution time in milliseconds.
-
id
¶ Item id in format like
s1-t3-k1
.See
TestSuite.id
for more information.
-
kwname
¶ Deprecated.
-
libname
¶ Deprecated.
-
message
¶ Deprecated.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
Deprecated.
-
timeout
¶ Deprecated.
-
-
class
robot.result.model.
For
(variables=(), flavor='IN', values=(), status='FAIL', starttime=None, endtime=None, doc='', parent=None)[source]¶ Bases:
robot.model.control.For
,robot.result.model.StatusMixin
,robot.result.modeldeprecation.DeprecatedAttributesMixin
-
body_class
¶ alias of
ForIterations
-
status
¶
-
starttime
¶
-
endtime
¶
-
doc
¶
-
name
¶ Deprecated.
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FAIL
= 'FAIL'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SETUP
= 'SETUP'¶
-
SKIP
= 'SKIP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
args
¶ Deprecated.
-
assign
¶ Deprecated.
-
body
¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
elapsedtime
¶ Total execution time in milliseconds.
-
flavor
¶
-
id
¶ Item id in format like
s1-t3-k1
.See
TestSuite.id
for more information.
-
kwname
¶ Deprecated.
-
libname
¶ Deprecated.
-
message
¶ Deprecated.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
parent
¶
-
repr_args
= ('variables', 'flavor', 'values')¶
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
Deprecated.
-
timeout
¶ Deprecated.
-
type
= 'FOR'¶
-
values
¶
-
variables
¶
-
-
class
robot.result.model.
If
(parent=None, status='FAIL', starttime=None, endtime=None, doc='')[source]¶ Bases:
robot.model.control.If
,robot.result.model.StatusMixin
,robot.result.modeldeprecation.DeprecatedAttributesMixin
-
body_class
¶ alias of
IfBranches
-
status
¶
-
starttime
¶
-
endtime
¶
-
doc
¶
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FAIL
= 'FAIL'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SETUP
= 'SETUP'¶
-
SKIP
= 'SKIP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
args
¶ Deprecated.
-
assign
¶ Deprecated.
-
body
¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
elapsedtime
¶ Total execution time in milliseconds.
-
id
¶ Root IF/ELSE id is always
None
.
-
kwname
¶ Deprecated.
-
libname
¶ Deprecated.
-
message
¶ Deprecated.
-
name
¶ Deprecated.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
parent
¶
-
repr_args
= ()¶
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
Deprecated.
-
timeout
¶ Deprecated.
-
type
= 'IF/ELSE ROOT'¶
-
-
class
robot.result.model.
IfBranch
(type='IF', condition=None, status='FAIL', starttime=None, endtime=None, doc='', parent=None)[source]¶ Bases:
robot.model.control.IfBranch
,robot.result.model.StatusMixin
,robot.result.modeldeprecation.DeprecatedAttributesMixin
-
status
¶
-
starttime
¶
-
endtime
¶
-
doc
¶
-
name
¶ Deprecated.
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FAIL
= 'FAIL'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SETUP
= 'SETUP'¶
-
SKIP
= 'SKIP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
args
¶ Deprecated.
-
assign
¶ Deprecated.
-
body
¶
-
condition
¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
elapsedtime
¶ Total execution time in milliseconds.
-
id
¶ Branch id omits the root IF/ELSE object from the parent id part.
-
kwname
¶ Deprecated.
-
libname
¶ Deprecated.
-
message
¶ Deprecated.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
parent
¶
-
repr_args
= ('type', 'condition')¶
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
Deprecated.
-
timeout
¶ Deprecated.
-
type
¶
-
-
class
robot.result.model.
Keyword
(kwname='', libname='', doc='', args=(), assign=(), tags=(), timeout=None, type='KEYWORD', status='FAIL', starttime=None, endtime=None, parent=None, sourcename=None)[source]¶ Bases:
robot.model.keyword.Keyword
,robot.result.model.StatusMixin
Represents results of a single keyword.
See the base class for documentation of attributes not documented here.
-
kwname
¶ Name of the keyword without library or resource name.
-
libname
¶ Name of the library or resource containing this keyword.
-
status
¶ Execution status as a string.
PASS
,FAIL
,SKIP
orNOT RUN
.
-
starttime
¶ Keyword execution start time in format
%Y%m%d %H:%M:%S.%f
.
-
endtime
¶ Keyword execution end time in format
%Y%m%d %H:%M:%S.%f
.
-
message
¶ Keyword status message. Used only if suite teardowns fails.
-
sourcename
¶ Original name of keyword with embedded arguments.
-
messages
¶ Keyword’s messages.
Starting from Robot Framework 4.0 this is a list generated from messages in
body
.
-
children
¶ List of child keywords and messages in creation order.
Deprecated since Robot Framework 4.0. Use :att:`body` instead.
-
name
¶ Keyword name in format
libname.kwname
.Just
kwname
iflibname
is empty. In practice that is the case only with user keywords in the same file as the executed test case or test suite.Cannot be set directly. Set
libname
andkwname
separately instead.
-
ELSE
= 'ELSE'¶
-
ELSE_IF
= 'ELSE IF'¶
-
FAIL
= 'FAIL'¶
-
FOR
= 'FOR'¶
-
FOR_ITERATION
= 'FOR ITERATION'¶
-
IF
= 'IF'¶
-
IF_ELSE_ROOT
= 'IF/ELSE ROOT'¶
-
KEYWORD
= 'KEYWORD'¶
-
MESSAGE
= 'MESSAGE'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SETUP
= 'SETUP'¶
-
SKIP
= 'SKIP'¶
-
TEARDOWN
= 'TEARDOWN'¶
-
args
¶
-
assign
¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
doc
¶
-
elapsedtime
¶ Total execution time in milliseconds.
-
id
¶ Item id in format like
s1-t3-k1
.See
TestSuite.id
for more information.
-
not_run
¶ True
whenstatus
is ‘NOT RUN’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
parent
¶
-
repr_args
= ('name', 'args', 'assign')¶
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
Keyword tags as a
Tags
object.
-
teardown
¶ Keyword teardown as a
Keyword
object.This attribute is a
Keyword
object also when a keyword has no teardown but in that case its truth value isFalse
.Teardown can be modified by setting attributes directly:
keyword.teardown.name = 'Example' keyword.teardown.args = ('First', 'Second')
Alternatively the
config()
method can be used to set multiple attributes in one call:keyword.teardown.config(name='Example', args=('First', 'Second'))
The easiest way to reset the whole teardown is setting it to
None
. It will automatically recreate the underlyingKeyword
object:keyword.teardown = None
New in Robot Framework 4.0. Earlier teardown was accessed like
keyword.keywords.teardown
.
-
timeout
¶
-
type
¶
-
visit
(visitor)[source]¶ Visitor interface
entry-point.
-
-
class
robot.result.model.
TestCase
(name='', doc='', tags=None, timeout=None, status='FAIL', message='', starttime=None, endtime=None)[source]¶ Bases:
robot.model.testcase.TestCase
,robot.result.model.StatusMixin
Represents results of a single test case.
See the base class for documentation of attributes not documented here.
-
message
¶ Test message. Typically a failure message but can be set also when test passes.
-
starttime
¶ Test case execution start time in format
%Y%m%d %H:%M:%S.%f
.
-
endtime
¶ Test case execution end time in format
%Y%m%d %H:%M:%S.%f
.
-
not_run
¶
-
critical
¶
-
FAIL
= 'FAIL'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SKIP
= 'SKIP'¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
doc
¶
-
elapsedtime
¶ Total execution time in milliseconds.
-
id
¶ Test case id in format like
s1-t3
.See
TestSuite.id
for more information.
-
longname
¶ Test name prefixed with the long name of the parent suite.
-
name
¶
-
parent
¶
-
repr_args
= ('name',)¶
-
setup
¶ Test setup as a
Keyword
object.This attribute is a
Keyword
object also when a test has no setup but in that case its truth value isFalse
.Setup can be modified by setting attributes directly:
test.setup.name = 'Example' test.setup.args = ('First', 'Second')
Alternatively the
config()
method can be used to set multiple attributes in one call:test.setup.config(name='Example', args=('First', 'Second'))
The easiest way to reset the whole setup is setting it to
None
. It will automatically recreate the underlyingKeyword
object:test.setup = None
New in Robot Framework 4.0. Earlier setup was accessed like
test.keywords.setup
.
-
skipped
¶ True
whenstatus
is ‘SKIP’,False
otherwise.Setting to
False
value is ambiguous and raises an exception.
-
source
¶
Test tags as a
Tags
object.
-
timeout
¶
-
visit
(visitor)[source]¶ Visitor interface
entry-point.
-
-
class
robot.result.model.
TestSuite
(name='', doc='', metadata=None, source=None, message='', starttime=None, endtime=None, rpa=False)[source]¶ Bases:
robot.model.testsuite.TestSuite
,robot.result.model.StatusMixin
Represents results of a single test suite.
See the base class for documentation of attributes not documented here.
-
message
¶ Possible suite setup or teardown error message.
-
starttime
¶ Suite execution start time in format
%Y%m%d %H:%M:%S.%f
.
-
endtime
¶ Suite execution end time in format
%Y%m%d %H:%M:%S.%f
.
-
passed
¶ True
if no test has failed but some have passed,False
otherwise.
-
failed
¶ True
if any test has failed,False
otherwise.
-
skipped
¶ True
if there are no passed or failed tests,False
otherwise.
-
not_run
¶
-
status
¶ ‘PASS’, ‘FAIL’ or ‘SKIP’ depending on test statuses.
- If any test has failed, status is ‘FAIL’.
- If no test has failed but at least some test has passed, status is ‘PASS’.
- If there are no failed or passed tests, status is ‘SKIP’. This covers both the case when all tests have been skipped and when there are no tests.
-
statistics
¶ Suite statistics as a
TotalStatistics
object.Recreated every time this property is accessed, so saving the results to a variable and inspecting it is often a good idea:
stats = suite.statistics print(stats.failed) print(stats.total) print(stats.message)
-
full_message
¶ Combination of
message
andstat_message
.
-
FAIL
= 'FAIL'¶
-
NOT_RUN
= 'NOT RUN'¶
-
NOT_SET
= 'NOT SET'¶
-
PASS
= 'PASS'¶
-
SKIP
= 'SKIP'¶
-
config
(**attributes)¶ Configure model object with given attributes.
obj.config(name='Example', doc='Something')
is equivalent to settingobj.name = 'Example'
andobj.doc = 'Something'
.New in Robot Framework 4.0.
-
copy
(**attributes)¶ Return shallow copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.copy(name='New name')
.See also
deepcopy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
deepcopy
(**attributes)¶ Return deep copy of this object.
Parameters: attributes – Attributes to be set for the returned copy automatically. For example, test.deepcopy(name='New name')
.See also
copy()
. The difference between these two is the same as with the standardcopy.copy
andcopy.deepcopy
functions that these methods also use internally.
-
doc
¶
-
filter
(included_suites=None, included_tests=None, included_tags=None, excluded_tags=None)[source]¶ Select test cases and remove others from this suite.
Parameters have the same semantics as
--suite
,--test
,--include
, and--exclude
command line options. All of them can be given as a list of strings, or when selecting only one, as a single string.Child suites that contain no tests after filtering are automatically removed.
Example:
suite.filter(included_tests=['Test 1', '* Example'], included_tags='priority-1')
-
has_tests
¶
-
id
¶ An automatically generated unique id.
The root suite has id
s1
, its child suites have idss1-s1
,s1-s2
, …, their child suites get idss1-s1-s1
,s1-s1-s2
, …,s1-s2-s1
, …, and so on.The first test in a suite has an id like
s1-t1
, the second has an ids1-t2
, and so on. Similarly keywords in suites (setup/teardown) and in tests get ids likes1-k1
,s1-t1-k1
, ands1-s4-t2-k5
.
-
longname
¶ Suite name prefixed with the long name of the parent suite.
-
metadata
¶ Free test suite metadata as a dictionary.
-
name
¶ Test suite name. If not set, constructed from child suite names.
-
parent
¶
-
remove_empty_suites
(preserve_direct_children=False)[source]¶ Removes all child suites not containing any tests, recursively.
-
repr_args
= ('name',)¶
-
rpa
¶
Add and/or remove specified tags to the tests in this suite.
Parameters: - add – Tags to add as a list or, if adding only one, as a single string.
- remove – Tags to remove as a list or as a single string.
Can be given as patterns where
*
and?
work as wildcards. - persist – Add/remove specified tags also to new tests added to this suite in the future.
-
setup
¶ Suite setup as a
Keyword
object.This attribute is a
Keyword
object also when a suite has no setup but in that case its truth value isFalse
.Setup can be modified by setting attributes directly:
suite.setup.name = 'Example' suite.setup.args = ('First', 'Second')
Alternatively the
config()
method can be used to set multiple attributes in one call:suite.setup.config(name='Example', args=('First', 'Second'))
The easiest way to reset the whole setup is setting it to
None
. It will automatically recreate the underlyingKeyword
object:suite.setup = None
New in Robot Framework 4.0. Earlier setup was accessed like
suite.keywords.setup
.
-
source
¶
-
stat_message
¶ String representation of the
statistics
.
-
suites
¶ Child suites as a
TestSuites
object.
-
test_count
¶ Number of the tests in this suite, recursively.
-
visit
(visitor)[source]¶ Visitor interface
entry-point.
-
elapsedtime
¶ Total execution time in milliseconds.
-
remove_keywords
(how)[source]¶ Remove keywords based on the given condition.
Parameters: how – What approach to use when removing keywords. Either ALL
,PASSED
,FOR
,WUKS
, orNAME:<pattern>
.For more information about the possible values see the documentation of the
--removekeywords
command line option.
-
configure
(**options)[source]¶ A shortcut to configure a suite using one method call.
Can only be used with the root test suite.
Parameters: options – Passed to SuiteConfigurer
that will then set suite attributes, callfilter()
, etc. as needed.Example:
suite.configure(remove_keywords='PASSED', doc='Smoke test results.')
Not to be confused with
config()
method that suites, tests, and keywords have to make it possible to set multiple attributes in one call.
-
robot.result.modeldeprecation module¶
robot.result.resultbuilder module¶
-
robot.result.resultbuilder.
ExecutionResult
(*sources, **options)[source]¶ Factory method to constructs
Result
objects.Parameters: - sources – XML source(s) containing execution results. Can be specified as paths, opened file objects, or strings/bytes containing XML directly. Support for bytes is new in RF 3.2.
- options – Configuration options.
Using
merge=True
causes multiple results to be combined so that tests in the latter results replace the ones in the original. Settingrpa
either toTrue
(RPA mode) orFalse
(test automation) sets execution mode explicitly. By default it is got from processed output files and conflicting modes cause an error. Other options are passed directly to theExecutionResultBuilder
object used internally.
Returns: Result
instance.Should be imported by external code via the
robot.api
package. See therobot.result
package for a usage example.
-
class
robot.result.resultbuilder.
ExecutionResultBuilder
(source, include_keywords=True, flattened_keywords=None)[source]¶ Bases:
object
Builds
Result
objects based on output files.Instead of using this builder directly, it is recommended to use the
ExecutionResult()
factory method.Parameters: - source – Path to the XML output file to build
Result
objects from. - include_keywords – Boolean controlling whether to include keyword information in the result or not. Keywords are not needed when generating only report. Although the the option name has word “keyword”, it controls also including FOR and IF structures.
- flatten_keywords – List of patterns controlling what keywords to
flatten. See the documentation of
--flattenkeywords
option for more details.
- source – Path to the XML output file to build
-
class
robot.result.resultbuilder.
RemoveKeywords
[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
start_suite
(suite)[source]¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_test
(test)[source]¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
robot.result.suiteteardownfailed module¶
-
class
robot.result.suiteteardownfailed.
SuiteTeardownFailureHandler
[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
visit_test
(test)[source]¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
visit_keyword
(keyword)[source]¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
-
class
robot.result.suiteteardownfailed.
SuiteTeardownFailed
(message, skipped=False)[source]¶ Bases:
robot.model.visitor.SuiteVisitor
-
visit_test
(test)[source]¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
visit_keyword
(keyword)[source]¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
robot.result.visitor module¶
Visitors can be used to easily traverse result structures.
This module contains ResultVisitor
for traversing the whole
Result
object. It extends
SuiteVisitor
that contains visiting logic
for the test suite structure.
-
class
robot.result.visitor.
ResultVisitor
[source]¶ Bases:
robot.model.visitor.SuiteVisitor
Abstract class to conveniently travel
Result
objects.A visitor implementation can be given to the
visit()
method of a result object. This will cause the result object to be traversed and the visitor’svisit_x()
,start_x()
, andend_x()
methods to be called for each suite, test, keyword and message, as well as for errors, statistics, and other information in the result object. See methods below for a full list of available visitor methods.See the
result package level
documentation for more information about handling results and a concrete visitor example. For more information about the visitor algorithm see documentation inrobot.model.visitor
module.-
end_for
(for_)¶ Called when FOR loop ends. Default implementation does nothing.
-
end_for_iteration
(iteration)¶ Called when FOR loop iteration ends. Default implementation does nothing.
-
end_if
(if_)¶ Called when IF/ELSE structure ends. Default implementation does nothing.
-
end_if_branch
(branch)¶ Called when IF/ELSE branch ends. Default implementation does nothing.
-
end_keyword
(keyword)¶ Called when keyword ends. Default implementation does nothing.
-
end_message
(msg)¶ Called when message ends. Default implementation does nothing.
-
end_suite
(suite)¶ Called when suite ends. Default implementation does nothing.
-
end_test
(test)¶ Called when test ends. Default implementation does nothing.
-
start_for
(for_)¶ Called when FOR loop starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_for_iteration
(iteration)¶ Called when FOR loop iteration starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if
(if_)¶ Called when IF/ELSE structure starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_if_branch
(branch)¶ Called when IF/ELSE branch starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_keyword
(keyword)¶ Called when keyword starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_message
(msg)¶ Called when message starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_suite
(suite)¶ Called when suite starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
start_test
(test)¶ Called when test starts. Default implementation does nothing.
Can return explicit
False
to stop visiting.
-
visit_for
(for_)¶ Implements traversing through FOR loops.
Can be overridden to allow modifying the passed in
for_
without callingstart_for()
orend_for()
nor visiting body.
-
visit_for_iteration
(iteration)¶ Implements traversing through single FOR loop iteration.
This is only used with the result side model because on the running side there are no iterations.
Can be overridden to allow modifying the passed in
iteration
without callingstart_for_iteration()
orend_for_iteration()
nor visiting body.
-
visit_if
(if_)¶ Implements traversing through IF/ELSE structures.
Notice that
if_
does not have any data directly. Actual IF/ELSE branches are in itsbody
and visited usingvisit_if_branch()
.Can be overridden to allow modifying the passed in
if_
without callingstart_if()
orend_if()
nor visiting branches.
-
visit_if_branch
(branch)¶ Implements traversing through single IF/ELSE branch.
Can be overridden to allow modifying the passed in
branch
without callingstart_if_branch()
orend_if_branch()
nor visiting body.
-
visit_keyword
(kw)¶ Implements traversing through keywords.
Can be overridden to allow modifying the passed in
kw
without callingstart_keyword()
orend_keyword()
nor visiting child keywords.
-
visit_message
(msg)¶ Implements visiting messages.
Can be overridden to allow modifying the passed in
msg
without callingstart_message()
orend_message()
.
-
visit_suite
(suite)¶ Implements traversing through suites.
Can be overridden to allow modifying the passed in
suite
without callingstart_suite()
orend_suite()
nor visiting child suites, tests or keywords (setup and teardown) at all.
-
visit_test
(test)¶ Implements traversing through tests.
Can be overridden to allow modifying the passed in
test
without callingstart_test()
orend_test()
nor visiting keywords.
-
robot.result.xmlelementhandlers module¶
-
class
robot.result.xmlelementhandlers.
XmlElementHandler
(execution_result, root_handler=None)[source]¶ Bases:
object
-
class
robot.result.xmlelementhandlers.
ElementHandler
[source]¶ Bases:
object
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
tag
= None¶
-
children
= frozenset([])¶
-
-
class
robot.result.xmlelementhandlers.
RootHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
children
= frozenset(['robot'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
tag
= None¶
-
-
class
robot.result.xmlelementhandlers.
RobotHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'robot'¶
-
children
= frozenset(['suite', 'statistics', 'errors'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
SuiteHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'suite'¶
-
children
= frozenset(['status', 'doc', 'meta', 'kw', 'test', 'suite', 'metadata'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
TestHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'test'¶
-
children
= frozenset(['status', 'for', 'tags', 'doc', 'tag', 'kw', 'timeout', 'msg', 'if'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
KeywordHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'kw'¶
-
children
= frozenset(['status', 'for', 'tags', 'doc', 'msg', 'tag', 'kw', 'arguments', 'timeout', 'arg', 'var', 'assign', 'if'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
ForHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'for'¶
-
children
= frozenset(['status', 'doc', 'iter', 'msg', 'value', 'var'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
ForIterationHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'iter'¶
-
children
= frozenset(['status', 'for', 'doc', 'msg', 'kw', 'var', 'if'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
IfHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'if'¶
-
children
= frozenset(['status', 'msg', 'branch'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
IfBranchHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'branch'¶
-
children
= frozenset(['status', 'msg', 'kw', 'for', 'if'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
MessageHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'msg'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
StatusHandler
(set_status=True)[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'status'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
DocHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'doc'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
MetadataHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'metadata'¶
-
children
= frozenset(['item'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
MetadataItemHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'item'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
MetaHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'meta'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
TagsHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'tags'¶
-
children
= frozenset(['tag'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
TagHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'tag'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
TimeoutHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'timeout'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
AssignHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'assign'¶
-
children
= frozenset(['var'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
VarHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'var'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
ArgumentsHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'arguments'¶
-
children
= frozenset(['arg'])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
ArgumentHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'arg'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
ValueHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'value'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
-
class
robot.result.xmlelementhandlers.
ErrorsHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'errors'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
classmethod
register
(handler)¶
-
-
class
robot.result.xmlelementhandlers.
ErrorMessageHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
get_child_handler
(tag)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-
tag
= None¶
-
-
class
robot.result.xmlelementhandlers.
StatisticsHandler
[source]¶ Bases:
robot.result.xmlelementhandlers.ElementHandler
-
tag
= 'statistics'¶
-
children
= frozenset([])¶
-
element_handlers
= {'arg': <robot.result.xmlelementhandlers.ArgumentHandler object>, 'arguments': <robot.result.xmlelementhandlers.ArgumentsHandler object>, 'assign': <robot.result.xmlelementhandlers.AssignHandler object>, 'branch': <robot.result.xmlelementhandlers.IfBranchHandler object>, 'doc': <robot.result.xmlelementhandlers.DocHandler object>, 'errors': <robot.result.xmlelementhandlers.ErrorsHandler object>, 'for': <robot.result.xmlelementhandlers.ForHandler object>, 'if': <robot.result.xmlelementhandlers.IfHandler object>, 'item': <robot.result.xmlelementhandlers.MetadataItemHandler object>, 'iter': <robot.result.xmlelementhandlers.ForIterationHandler object>, 'kw': <robot.result.xmlelementhandlers.KeywordHandler object>, 'meta': <robot.result.xmlelementhandlers.MetaHandler object>, 'metadata': <robot.result.xmlelementhandlers.MetadataHandler object>, 'msg': <robot.result.xmlelementhandlers.MessageHandler object>, 'robot': <robot.result.xmlelementhandlers.RobotHandler object>, 'statistics': <robot.result.xmlelementhandlers.StatisticsHandler object>, 'status': <robot.result.xmlelementhandlers.StatusHandler object>, 'suite': <robot.result.xmlelementhandlers.SuiteHandler object>, 'tag': <robot.result.xmlelementhandlers.TagHandler object>, 'tags': <robot.result.xmlelementhandlers.TagsHandler object>, 'test': <robot.result.xmlelementhandlers.TestHandler object>, 'timeout': <robot.result.xmlelementhandlers.TimeoutHandler object>, 'value': <robot.result.xmlelementhandlers.ValueHandler object>, 'var': <robot.result.xmlelementhandlers.VarHandler object>}¶
-
end
(elem, result)¶
-
classmethod
register
(handler)¶
-
start
(elem, result)¶
-