Is it possible to integrate Katalon reports in GitLab CI like Unit test reports?

Hello friends,

I’m about to setup a GitLab CI pipeline and just asked myself if there is already a possibility to get the Katalon test-reports visualized inside of gitlab, like it is possible with unit tests:

[...]
artifacts:
    when: always
    paths:
      - rspec.xml
    reports:
      junit: rspec.xml

… if not, it would be really cool, if sth similar will be possible in future :slight_smile:

[...]
artifacts:
    when: always
    paths:
      - rspec.xml
    reports:
      katalon: rspec.xml

Thanks,
Simon

As far as I know, you should view your test report in TestOps as GitLab Integration | Katalon Docs.

Alongisde other formats (html, csv etc) Katalon produce also a file named JUnit_Report.xml in the Reports / blah_blah folder, which is in junit format.
So tune your pipeline accordingly to locate it and upload it.
Since the path where the reports are stored is dynamic, you have to use a glob matcher.
Somethink like this may work:

    reports:
      junit: **/JUnit_Report.xml
1 Like

Cool! This looks like exactly what I needed.
As soon as I can continue on this task, I will test it out.

Thank you,
Simon

As the the path to the junit.xml looks like so
Reports/20230607_102519/NameOfTestSuite/20230607_102519/JUnit_Report.xml

I finally got it working:

  artifacts:
    expire_in: 1 week
    paths:
      - Reports/
    reports:
      junit:
        - 'Reports/*/NameOfTestSuite/*/JUnit_Report.xml'

Thanks!

1 Like