首页 > 解决方案 > 执行者未显示在 Allure 报告中

问题描述

执行者没有显示在 Allure 报告中。我创建了一个executor.json文件,它只有 1 个属性,即 tester,我们可以看到下面的代码

执行器.json

{"Tester":"Suhail"}

当我生成报告时,我没有得到 Executor 字段,它显示为Unknow,您可以看到下面附上的屏幕截图

在此处输入图像描述

我正在使用 Allure version-2.13.2

谁能帮助我哪里出错了

标签: javatestngallure

解决方案


我正在经历这个并发现很有趣,所以将其发布为答案,如果有人对此有更多详细信息,请粘贴您的答案。

所以这是我的发现,

在 executor.json 文件中,我们需要有如下一般语法

{"name":"Suhail", // this will print the tester name on the report
"buildName":"Give the project Name", // if this attribute is not given that **Unknown** is displayed
"type":"jenkins" // if this attribute is not given we will be getting a user icon next to the name else a hat icon will be  displayed
}

我只能找到这么多,如果有人知道如何输入更多执行人记录,请告诉我。


推荐阅读