Hi,
I'm trying to write a prerun-modifier to support the parsing of HTML/TSV suites while using RF >= 3.2.x.
The aim of the tool is to allow a smooth migration to RF >= 3.2.x for users that have been using HTML and TSV for years, accumulating repos of thousands of suites.
Note: despite tidy, I'm in the unfortunate the case where a big bang migration to .robot will be a serious deterrent for the user.
The idea of the prerun-modifier is to leverage the TestSuiteBuilder of RF 3.1.2 (loaded as separate module with renamed namespaces) to build the legacy suites, and then converts them to the new RF types for populating the tests-tree.
Note: I've used on the version 3.1.2 of RF to also leverage the deprecation warnings thrown for the HTML format, as anyway the direction must be .robot.
The logic of the prerun-modifier is in attachment (I've always worked with Java + RF/Jython, so please ignore any smells of the code).
The prerun-modifier seems to work, however I'm having an issue with the management of resources: given a suite that imports a resource in .html format, I get the error like:
Error in file '...': Invalid resource file extension '.html'. Supported extensions are '.resource', '.robot', '.txt', '.tsv', '.rst' and '.rest'.
That is: it seems that the resource is loaded only after the processing of my prerun-modifier, by the RF 3.2.x runtime, which of course rejects the format.
How could I handle this case? Am I missing something or this is a show-stopper?
Thank you for your help.
Best Regards,
Paolo
--
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/a4b98a60-28bb-46e7-a8ee-62fccb014370n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/d355ae85-e8c9-4bb6-b31c-d7a398a83b3bn%40googlegroups.com.