robot.output.console package

robot.output.console.ConsoleOutput(type='verbose', width=78, colors='AUTO', markers='AUTO', stdout=None, stderr=None)[source]

Submodules

robot.output.console.dotted module

class robot.output.console.dotted.DottedOutput(width=78, colors='AUTO', stdout=None, stderr=None)[source]

Bases: object

start_suite(suite)[source]
end_test(test)[source]
end_suite(suite)[source]
message(msg)[source]
output_file(name, path)[source]
class robot.output.console.dotted.StatusReporter(stream, width)[source]

Bases: robot.model.visitor.SuiteVisitor

report(suite)[source]
visit_test(test)[source]

Implements traversing through the test and its keywords.

Can be overridden to allow modifying the passed in test without calling start_test() or end_test() nor visiting keywords.

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_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_keyword(kw)

Implements traversing through the keyword and its child keywords.

Can be overridden to allow modifying the passed in kw without calling start_keyword() or end_keyword() nor visiting child keywords.

visit_message(msg)

Implements visiting the message.

Can be overridden to allow modifying the passed in msg without calling start_message() or end_message().

visit_suite(suite)

Implements traversing through the suite and its direct children.

Can be overridden to allow modifying the passed in suite without calling start_suite() or end_suite() nor visiting child suites, tests or keywords (setup and teardown) at all.

robot.output.console.highlighting module

class robot.output.console.highlighting.HighlightingStream(stream, colors='AUTO')[source]

Bases: object

write(text, flush=True)[source]
flush()[source]
highlight(text, status=None, flush=True)[source]
error(message, level)[source]
robot.output.console.highlighting.Highlighter(stream)[source]
class robot.output.console.highlighting.AnsiHighlighter(stream)[source]

Bases: object

green()[source]
red()[source]
yellow()[source]
reset()[source]
class robot.output.console.highlighting.NoHighlighting(stream)[source]

Bases: robot.output.console.highlighting.AnsiHighlighter

green()
red()
reset()
yellow()
class robot.output.console.highlighting.DosHighlighter(stream)[source]

Bases: object

green()[source]
red()[source]
yellow()[source]
reset()[source]

robot.output.console.quiet module

class robot.output.console.quiet.QuietOutput(colors='AUTO', stderr=None)[source]

Bases: object

message(msg)[source]
class robot.output.console.quiet.NoOutput[source]

Bases: object

robot.output.console.verbose module

class robot.output.console.verbose.VerboseOutput(width=78, colors='AUTO', markers='AUTO', stdout=None, stderr=None)[source]

Bases: object

start_suite(suite)[source]
end_suite(suite)[source]
start_test(test)[source]
end_test(test)[source]
start_keyword(kw)[source]
end_keyword(kw)[source]
message(msg)[source]
output_file(name, path)[source]
class robot.output.console.verbose.VerboseWriter(width=78, colors='AUTO', markers='AUTO', stdout=None, stderr=None)[source]

Bases: object

info(name, doc, start_suite=False)[source]
suite_separator()[source]
test_separator()[source]
status(status, clear=False)[source]
message(message)[source]
keyword_marker(status)[source]
error(message, level, clear=False)[source]
output(name, path)[source]
class robot.output.console.verbose.KeywordMarker(highlighter, markers)[source]

Bases: object

mark(status)[source]
reset_count()[source]