robot.running.builder.settings
¶
FixtureDict
¶
Bases: OptionalItems
Dictionary containing setup or teardown info.
:attr:args and :attr:lineno are optional.
TestDefaults
¶
|
Represents default values for test related settings set in init files.
Parsers parsing suite files can read defaults and parsers parsing init
files can set them. The easiest way to set defaults to a test is using
the :meth:set_to method.
This class is part of the public parser API__. When implementing parse
or parse_init method so that they accept two arguments, the second is
an instance of this class. If the class is needed as a type hint, it can
be imported via :mod:robot.running or :mod:robot.api.interfaces.
__ http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#parser-interface
Source code in src/robot/running/builder/settings.py
setup
property
writable
¶
|
Default setup as a Keyword object or None when not set.
Can be set also using a dictionary.
teardown
property
writable
¶
|
Default teardown as a Keyword object or None when not set.
Can be set also using a dictionary.
set_to
¶
Sets defaults to the given test.
Tags are always added to the test. Setup, teardown and timeout are set only if the test does not have them set initially.