Hello,
Joseph already proposed using the parsing API and that certainly
works. Using the execution model is probably easier, though:
from robot.api import TestSuiteBuilder, SuiteVisitor
class TestPrinter(SuiteVisitor):
def visit_test(self, test):
print
test.name
suite = TestSuiteBuilder().build('path/to/tests.robot')
suite.filter(included_tags=['list', 'of', 'includes'],
excluded_tags=['excludes'])
suite.visit(TestPrinter())
For more information about the APIs used above see
http://robot-framework.readthedocs.org/.
Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
robotframework-u...@googlegroups.com.
> To post to this group, send email to
robotframe...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/robotframework-users.
> For more options, visit
https://groups.google.com/d/optout.
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org