- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试使用在
上找到的 allure 记者我创建了运行者:
const createTestCafe = require('testcafe');
let testcafe = null;
createTestCafe('localhost', 1337, 1338)
.then(tc => {
testcafe = tc;
const runner = testcafe.createRunner();
return runner
.src(['tests/fixture1.js', 'tests/ingo1.js'])
.browsers(['chrome'])
.reporter('allure')
.run();
})
.then(failedCount => {
console.log('Tests failed: ' + failedCount);
testcafe.close();
});
启动脚本时,我收到消息“Allure reporter started”,完成后收到“Allure reporter finished”。但是在我的根文件夹中,我没有收到任何诱惑报告。我也尝试使用自己的配置文件
const DOC_ALLURE_CONFIG = {
CLEAN_REPORT_DIR: true,
COPY_HISTORY: true,
RESULT_DIR: '/allure/allure-results',
REPORT_DIR: '/allure/allure-report',
META: {
STORY_ID: 'STORY',
TEST_ID: 'ID',
SEVERITY: 'SEVERITY',
TEST_RUN: 'TEST_RUN'
},
STORY_LABEL: 'JIRA Story Link',
STORY_URL: 'https://jira.example.ca/browse/{{ID}}',
TEST_LABEL: 'JIRA Test Link',
TEST_URL: 'https://jira.example.ca/secure/Tests.jspa#/testCase/{{ID}}',
labels: {
screenshotLabel: 'Screenshot',
browserLabel: 'Browser',
userAgentLabel: 'User Agent',
allureStartMessage: 'Allure Ingo reporter started...',
allureClosedMessage: 'Allure Ingo reporter closed...'
}
};
module.exports = DOC_ALLURE_CONFIG;
这也行不通。不显示自定义消息,仅显示默认消息。看起来 allure 插件忽略了所有内容并且无法很好地识别我的节点模块。
我错过了什么设置才能在我的项目根目录中获取 allure 报告?
(也尝试使用 npm 链接...)
最佳答案
testcafe-allure-reporter 文件夹存储相对于安装此模块的路径生成的报告。因此,尝试在本地将 testcafe-allure-reporter 安装到您的项目并执行脚本。之后,allure/allure-results 文件夹应该出现在您的项目根目录中。
关于javascript - Testcafe 和 allure 记者,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56628927/
帮助解决以下问题:通过命令 ./gradlew luma_magento_ui: test 进行测试运行报告生成成功,但测试用例中没有出现Step。 @Step("registration us
当我启动 allure ,服务器总是尝试启动浏览器: $ /home/allure/allure-2.3.4/bin/allure serve target/allure-results -p 501
我有一个用于参数化 JUnit 5 和 Selenium 测试的 Allure 步骤方法,它接收一个包含参数化测试的所有测试数据的测试数据对象。 这个主要步骤方法调用其他子步骤方法。仅当其参数不为空时
获取可通过电子邮件发送的 HTML 诱惑报告的任何方式,我可以在执行 Jenkins 后发送这些报告。我需要这个,但我对其他报告选项的吸引力太大了 最佳答案 Allure 报告不是静态报告。解决方法是
下面附有通过 allure 生成的 allure 报告图像。想要使用我自己的标题和 Logo 而不是 ALLURE REPORT 和默认 Logo 来自定义报告标题和 Logo (图像突出显示为黄色)
我使用 Rest Assured、TestNg、Gradle 和 Allure 报告创建了自动化。现在我能够生成引诱报告,但我正在寻找可以在电子邮件中发送引诱报告的地方。无论这是任何可用的插件还是正在
我将 allure 报告与我们的 testng 自动化框架集成。而且,我们正在尝试以这样的方式定制吸引力报告,以便我们能够获得优先级 1 测试用例的通过百分比。目前,诱惑报告仅包含失败、损坏、取消、待
我无法使用 allure-maven 插件生成 Allure 测试 html 报告。我正在使用相同版本的 testNG-adapter 和 allure maven 插件 (1.4.0.RC8)。但我
我目前正在使用Allure Reports来捕获我的放心测试的结果,我遇到了一个挑战。。具体来说,我有麻烦过滤或列入黑名单的标题信息。当我使用.filters(新的AllureRestAssured(
当我尝试通过 allure-jenkins-plugin 创建 allure 报告时,出现这样的错误: ERROR: Publisher ru.yandex.qatools.allure.jenkin
当深入研究 Allure 报告的测试时,我们看到 No information about test exection is available 未列出任何步骤。 (我们确实看到了测试,但没有看到测试
我想使用 pytest adaptor 自定义我的诱惑测试报告.例如,在概览页面上添加环境详细信息。在概览屏幕上更改报告名称。 我尝试在 conftest.py 中添加环境详细信息按照文档中的建议,但
我尝试将 Allure 固定到我的测试中。我开始按照文档说明 ( https://github.com/allure-framework/allure-core/wiki#getting-starte
倾城2.12.1在处理 allure @Step 时遇到内存不足问题对于大数组 byte[] @Step public void test(String s, byte[] b){} 这是堆栈跟踪:
我刚刚将 Allure 报告连接到我的 TestNG 测试和 Maven 构建。一切工作正常,报告也非常酷。只有一件事 - @Step 注释不起作用。步骤未出现在报告中。我遵循了这些例子。 最佳答案
是否可以将Allure [测试报告工具]集成到Atlassian Bitbucket Pipelines CI中? 最佳答案 是的,但是您必须手动执行很多操作。我们的设置是: 测试保存结果 allur
我正在尝试将Allure报告集成到Gradle构建中。似乎没有对Gradle整体(所有Maven)的直接支持,而只有最近对TestNG的支持。进一步挖掘,我发现Gradle不支持JUnit侦听器,但是
如标题所述,我不能强制Allure 2在本地计算机上为我生成报告。 我从Google尝试了很多东西,但没有任何帮助。我使用Kotlin + Selenide + TestNG编写测试,如果有帮助的话:
我正在尝试用图表填充我的吸引力报告,但仅显示默认值(严重性和持续时间)。 我查看了 allure-reports/widgets,json 文件在那里,但仍然没有显示在网页上。 graph for c
我们有一个基于maven框架的测试套件,由多模块组成。使用的模块 - 项目 [无代码] test [@Test类包含在/src/main/java下,testng.xml中/src/main/reso
我是一名优秀的程序员,十分优秀!