I have ever done similar thing in my VisualTestingInKatalonStudio. It was a lot of effort.
My design looks something like this:
- create a Test Suite Collection “TSC” which comprises with 2 Test Suites “TS_visit” and “TS_report”.
- TS_visit does WebUI testing and creates reports.
- TS_report reads the report files created by TS_visit and does something (mangling files, copying them, etc)
Here arises a problem.
How a test case script in the TS_report can be informed of the name (or path) of the reports created by the preceding TS_visit?
Katalon Studio does NOT provide any method to pass information across the boundary between 2 Test Suites. Therefore I had to persist the information into a JSON file with fixed path in the project. I wrote that codes in the TestListener.
As you can see, the code is complicated. I am reluctant to talk about it. I would not recommend you to follow what I have done.