Module Expr Str ImportFrom alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body Return Call NameLoad NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list Return NameLoad decorator_list
N/A N/A Implements test data parsing.

Classes :class:`~.model.TestCaseFile`, :class:`~.model.TestDataDirectory`
and :class:`~.model.ResourceFile` represented parsed test data. Objects
of these classes can be modified and saved back to disk. In addition,
a convenience factory function :func:`~.model.TestData` can be used to
parse a test case file or directory to a corresponding object.

Aforementioned classes and functions are part of the public API. It is
recommended that they are imported through the :mod:`robot.api` package
like in the example below.

This package is likely to change radically in Robot Framework 2.9. The main
motivation for the planned changes is making the data easier to use for
external tools that use these modules.

Example
-------

::

    import sys
    from robot.api import TestData

    def print_suite(suite):
        print 'Suite:', suite.name
        for test in suite.testcase_table:
            print '-', test.name
        for child in suite.children:
            print_suite(child)

    suite = TestData(source=sys.argv[1])
    print_suite(suite)
 model TestData TestCaseFile TestDataDirectory ResourceFile N/A populators N/A VALID_EXTENSIONS N/A tuple N/A populators READERS disable_curdir_processing N/A N/A method N/A N/A N/A Decorator to disable processing `${CURDIR}` variable. decorated N/A N/A N/A args kwargs N/A N/A original N/A populators PROCESS_CURDIR N/A N/A populators PROCESS_CURDIR False N/A N/A N/A N/A method args kwargs N/A N/A N/A populators PROCESS_CURDIR original N/A N/A decorated N/A