有没有办法将“范围报告结果”输出到唯一目录?

时间:2017-04-13 12:00:44

标签: junit cucumber extent

有没有办法将“范围报告结果”输出到唯一目录?

例如,假设我第一次执行my Cucumber框架>将使用列出的相关html报告创建输出文件夹: enter image description here

但是有没有办法输出执行时捕获的唯一报告的唯一文件夹,其中包含以下内容:

enter image description here

我有以下Extent配置:

    <?xml version="1.0" encoding="UTF-8"?>
<extentreports>
    <configuration>
        <encoding>UTF-8</encoding>
        <documentTitle>Cucumber Extent Reports - v3.0.5</documentTitle>
        <reportName>Automation Framework Cucumber Report</reportName>
        <reportHeadline> - v3.0.5</reportHeadline>
    </configuration>
</extentreports>

1 个答案:

答案 0 :(得分:0)

Use the appropriate constructor of ExtentHtmlReporter...

ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(OUTPUT_FOLDER + FILE_NAME);

Set up folder name to whatever you desire.

相关问题