大炮:如何将大炮html报告图表发布到Azure DevOps CI/CD管道中? [英] Artillery: How to publish artillery html report charts into Azure DevOps CI/CD pipeline?

查看:160
本文介绍了大炮:如何将大炮html报告图表发布到Azure DevOps CI/CD管道中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一项要求,必须使用大炮工具生成负载测试报告,并将报告统计信息发布到我们的Azure DevOps管道中.

I am working on a requirement where I have to generate the load test report using artillery tool and publish the report stats into our Azure DevOps pipeline.

炮兵将报告生成为html格式,并且我想将其显示到Azure DevOps管道中.我该怎么办?

Artillery generates the report into html format and same I want to show into Azure DevOps pipeline. How can i do it?

我知道Azure管道仅支持Junit报告,但是仍然可以发布炮兵HTML报告吗?

I know Azure pipeline supports only Junit reports but still is there a way I can publish the artillery HTML report?

推荐答案

如果到目前为止,如果没有任何插件或扩展支持,则HTML报告将无法成功编译,然后

If without any plugin or extension support, until now, the HTML report would not be compiled successfully, then map corresponding attributes into pipeline directly. As you know, until now, it only support the format: TRX, JUnit, NUnit2, NUnit3, xUnit2, CTest.

解决方法是,您可以定义自定义的扩展名.使用此扩展,首先将一个新部分添加到管道中,使用任务将该HTML报告发布到该新部分中,然后将其属性映射并显示到该部分中.

As work around, you can define your customized extension. With this extension, add one new section into pipeline first, use task to publish this HTML report into this new section, then map and display its attributes into this section.

有一个示例扩展可以供您参考: vsts-publish-html-人工产物.

There has a sample extension can for you refer to: vsts-publish-html-artifact.

注意:

由于此扩展程序是4年前编写的,现在不再维护,因此我们的大多数官方文档内容也已更新为最新语法,例如类别等.我修改了johnwalley的脚本,因此您现在可以直接使用它.由于我的github资料库: Merlin扩展.

Since this extension programmed 4 years ago and no longer maintained now, also most of our official doc content has been updated with the latest grammar, such as categories and etc. I modify johnwalley's script, thus you can directly use it now. Due to my github repository: Merlin-Extension.

您还可以根据自己的需要添加脚本来扩展此扩展程序的功能.请参阅此文档以获取编写的扩展脚本:

You can also extend the functionality of this extension by adding scripts based on your individual needs. Refer to this doc for extension script written: https://docs.microsoft.com/en-us/azure/devops/extend/get-started/node?view=azure-devops

我上面提供的解决方法只能视为一种临时方法.由于Xml报告太基础,而html在许多情况下/工具中更有用,因此我也期待在管道中发布HTML报告的功能可以扩展到Azure Devops.

The work around I provide above can only consider as a temporarily method. Since Xml reports are too basic and html is more useful in many cases/ tools, I also looking forward to the feature for HTML report Published in pipeline can be expanded into Azure Devops.

这里有一个功能建议票存在于我们的官方论坛上.我们可以对其进行投票和评论,以使其具有广泛的社区影响力,也将改善Azure Devops的体验.因此,我们的产品组将考虑将此功能纳入我们的开发路线图.

Here has a feature suggestion ticket exists on our official forum. We can vote and comment it there to make it has a broad community impact, also will improve the Azure Devops experience. Thus our product group will consider to take this feature into our develop roadmap.

这篇关于大炮:如何将大炮html报告图表发布到Azure DevOps CI/CD管道中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆