Bases: object
Builder to construct TestSuite
objects based on data on the disk.
The build()
method constructs executable TestSuite
objects based on test data files or directories. There are two main use cases for this API:
Execute the created suite by using its run()
method. The suite can be modified before execution if needed.
Inspect the suite to see, for example, what tests it has or what tags tests have. This can be more convenient than using the lower level parsing
APIs.
Both modifying the suite and inspecting what data it contains are easiest done by using the visitor
interface.
This class is part of the public API and should be imported via the robot.api
package. An alternative is using the TestSuite.from_file_system
classmethod that uses this class internally.
included_suites – This argument used to be used for limiting what suite file to parse. It is deprecated and has no effect starting from RF 6.1. Use the new included_files
argument or filter the created suite after parsing instead.
included_extensions – List of extensions of files to parse. Same as --extension
.
included_files – List of names, paths or directory paths of files to parse. All files are parsed by default. Same as –parse-include. New in RF 6.1.
custom_parsers – Custom parsers as names or paths (same as --parser
) or as parser objects. New in RF 6.1.
defaults – Possible test specific defaults from suite initialization files. New in RF 6.1.
rpa – Explicit execution mode. True
for RPA and False
for test automation. By default, mode is got from data file headers. Same as --rpa
or --norpa
.
lang – Additional languages to be supported during parsing. Can be a string matching any of the supported language codes or names, an initialized Language
subclass, a list containing such strings or instances, or a Languages
instance.
allow_empty_suite – Specify is it an error if the built suite contains no tests. Same as --runemptysuite
.
process_curdir – Control processing the special ${CURDIR}
variable. It is resolved already at parsing time by default, but that can be changed by giving this argument False
value.
paths – Paths to test data files or directories.
TestSuite
instance.
Bases: SuiteStructureVisitor
Bases: object
Bases: ABC
Bases: Parser
Bases: RobotParser
Bases: Parser
Bases: Parser
Bases: Parser
Bases: TypedDict
Bases: OptionalItems
Dictionary containing setup or teardown info.
Bases: object
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 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 robot.running
or robot.api.interfaces
.
Default setup as a Keyword
object or None
when not set.
Can be set also using a dictionary.
Default teardown as a Keyword
object or None
when not set.
Can be set also using a dictionary.
Default tags. Can be set also as a sequence.
Default timeout.
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.
Bases: object
Bases: FileSettings
Bases: ModelVisitor
Bases: ModelVisitor
Bases: ModelVisitor
Bases: ModelVisitor
Bases: BodyBuilder
Bases: BodyBuilder
Bases: BodyBuilder
Bases: BodyBuilder
Bases: BodyBuilder
Bases: BodyBuilder
Bases: BodyBuilder
Bases: ModelVisitor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4