首页 > 解决方案 > 脚本内的Testcafe记者

问题描述

是否可以将记者添加到 TestCafe js 文件?常见的用法是:

testcafe chrome 'path/to/test/file.js' --reporter allure

但是是否也可以将其添加到脚本本身?在我的脚本中,我有

import { Selector } from 'testcafe';

fixture `Ordner erstellen`
    .page `https://bc3-channel.cliplister.com/`;

//It is absolutely necessary that the names are completely unique for finding elements.


test('Create and Delete Folder', async t => {
   .click(Selector('span').withText('Login'))
});

我可以在脚本中添加一个部分吗?

标签: automated-testsreportinge2e-testingweb-testingtestcafe

解决方案


是的,您可以为此目的使用TestCafe 编程接口及其报告属性。

但是,我不确定您要添加哪个“部分”。请澄清这一点。


推荐阅读