Generate report and integrate it with jenkins

时光毁灭记忆、已成空白 提交于 2021-01-28 12:15:42

问题


I am new in Karate but know almost all the basics. I want to generate a report for my test cases which will be kept in the folder for history purposes. currently, I am using the HTML report which overrides or updates every time I run my test cases.

If you can recommend me a step-by-step tutorial or a link, or simply give me a hint on how to approach this.

I have tried to use the allure framework and I am struggling to set it up. Thought it would be the best approach to solve my problem.

Attached is my HTML report I am talking about. Thanks in advance

enter image description here


回答1:


The JUnit HTML report which you have referred to as an image is designed for easy development, so when working on a test, you re-run and re-fresh the browser.

What we recommend is to use the parallel runner reports. Most of the time, 3rd party frameworks will solve this problem for you - especially if you use them integrated with CI. See this for example.

But finally, Karate will output the industry-standard Cucumber JSON report format, so you can always write a reporting solution yourself. Note that others have had success integrating Allure - so please refer this answer: https://stackoverflow.com/a/54527955/143475



来源:https://stackoverflow.com/questions/55827982/generate-report-and-integrate-it-with-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!