karatelabs / karate

Test Automation Made Simple
https://karatelabs.github.io/karate
MIT License
8.26k stars 1.94k forks source link

Cucumber-JVM plugin generates JUnit XML with proprietary modifications to support Zephyr #2605

Closed Siddh010 closed 1 month ago

Siddh010 commented 2 months ago

Support Cucmber plugin option to generates JUnit XML with proprietary modifications to support Zephyr Please find details in below link https://github.com/SmartBear/cucumber-jvm-zephyr-xml

ptrthomas commented 2 months ago

@Siddh010 sorry this is not clear at all, what are you asking for ?

Siddh010 commented 2 months ago

We are able to generate Zephyr xml by adding below cucumber plugin code in Test Runner for Cucumber UI Automation @RunWith(Cucumber.class) @CucumberOptions(plugin = {"io.cucumber.zephyr.ZephyrXMLFormatter:target/zephyr.xml"}) More details about this plugin here https://github.com/SmartBear/cucumber-jvm-zephyr-xml

Since in Karate we are using Results results = Runner.path( ).. in Test Runner file. So is there any way to add "io.cucumber.zephyr.ZephyrXMLFormatter:target/zephyr.xml" plugin in Karate Runner.

ptrthomas commented 2 months ago

@Siddh010 no there isn't. the ask sounds similar to this issue: https://github.com/karatelabs/karate/issues/1902

this is not a priority, and you are the first to ask for this - so the best option is for you or someone else to contribute. I'll leave this issue open for a while, if there is interest

note that it might be easy to add the integration yourself, refer: https://stackoverflow.com/a/54527955/143475

ptrthomas commented 1 month ago

closing for now