简体   繁体   中英

Executor is not displayed in Allure reports

Executor is not getting displayed in Allure reports. I have created a executor.json file which has only 1 attribute ie, tester as we can see the code below

executor.json

{"Tester":"Suhail"}

when I generate the report I am not getting Executor field it is showing as Unknow as you can see the screenshot attached below

在此处输入图片说明

I am using Allure version-2.13.2

can anyone help me where I am going wrong

I was going through this and found out interesting so posting it as an answer,if anyone has more details on this please paste your answer.

So here is my findings,

in executor.json file, we need to have general syntax like below

{"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
}

I could find only this much, if anyone know how to enter more records of executors then please let me know.

As you already found out the Executor is display if you have a executor.json file in your allure-results folder when you generate your report.

This file is usually generated by your builder, for example Jenkins with the plugin allure.

If you want to manually add theses informations here what the file look like: executor.json

{
  "name": "Jenkins",
  "type": "jenkins",
  "url": "http://example.org",
  "buildOrder": 13,
  "buildName": "allure-report_deploy#13",
  "buildUrl": "http://example.org/build#13",
  "reportUrl": "http://example.org/build#13/AllureReport",
  "reportName": "Demo allure report"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM