How to get a list of test cases in the Robot Framework without running actual tests?

I have a test.robot file with test cases.

How can I get a list of these test cases without activating the tests from the command line or python?

+5
source share
2 answers

You can check the testdoc tool . As explained in the document, "the generated documentation is in HTML format and includes the name, documentation, and other metadata of each test suite and test case."

+3
source

Robot sets are easily analyzed using a robot analyzer:

from robot.parsing.model import TestData suite = TestData(parent=None, source=path_to_test_suite) for testcase in suite.testcase_table: print(testcase.name) 
+5
source

All Articles