如果5个作业正在运行Parellelly,如何获得合并的黄瓜报告
当前方案:我们在RT执行中有5个作业,每个作业都在5个不同的代理上运行。因此,我们有5个黄瓜报告。
预期的情况:我们需要所有5个工作的Cucumber HTML报告。
如何解决?我们正在Azure Devops工作。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Cucumber HTML报告是单页HTML应用程序。如果将其打开在编辑器中,您会发现它包含一系列消息。
这些消息也可以通过使用
消息来获得:target/toarge/messages.ndjson
插件。如果您可以在单个工作中获得每个并行作业的消息,则可以将它们合并,然后将它们传递到。要合并文件,您可能必须过滤一些消息。绝对需要编写一些代码,不要以前认为有人做过此操作,但不可能是不可能的。
The Cucumber Html report is a single page html application. If you open it up in an editor you'll see that it contains a an array of messages.
These messages can also be obtained by using the
messages:target/messages.ndjson
plugin. If you can obtain in a single job the messages from each parallel job you can then merge these and pass them to the html-formatter.To merge the files you may have to filter out some messages. Definitively requires writing some code, don't think anyone has done this before, but shouldn't be impossible.