减少Allure报告中生成的json文件数量,以上传到s3

问题描述 投票:0回答:2

我有一个应用程序,它使用allure-commandline从webdriver.io创建的倾城数据生成倾城报告。然后将报告上传到s3。

问题是报告中有数百万个小json文件。

上传到s3时,这意味着每个文件有一个PUT对象请求。我的目标是减少对s3的API调用次数。

由于s3不提供此服务,因此无法在s3上压缩,上传和提取。

我能想到的唯一选择是以某种方式减少诱惑中生成的文件数量。这可能吗?有替代解决方案吗?

amazon-s3 webdriver-io allure
2个回答
0
投票

您可以禁用报告迭代wdio和selenium网格。它将显着减少报告中的json文件。

请参阅disableWebdriverStepsReporting中的https://github.com/webdriverio/wdio-allure-reporter/#configuration


0
投票

在wdio.conf.js中尝试以下配置

这将仅生成失败的屏幕截图。它适用于WDIO V4.14.2和wdio-allure-reporter V 0.8.3

exports.config = {
....
...
 reporters: ['dot', 'allure'],
 reporterOptions: {
        outputDir: 'allure-results',
        disableWebdriverStepsReporting: true,
        disableWebdriverScreenshotsReporting: false,
    },
....
....
}
© www.soinside.com 2019 - 2024. All rights reserved.