automated-tests - 脚本内的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'))
});
我可以在脚本中添加一个部分吗?
解决方案
是的,您可以为此目的使用TestCafe 编程接口及其报告属性。
但是,我不确定您要添加哪个“部分”。请澄清这一点。
推荐阅读
- java - 用于 Http2 的仪表 Jetty HttpClient
- bash - linux中使用变量的基本方程
- ios - 如果我更改与 Apple Developer 帐户关联的 Apple ID,会发生什么情况?
- openstreetmap - 下载基于标签值并集的 OSM 网络(使用 OSMNx)过滤
- javascript - 打字稿-在非箭头类方法中未定义“this”
- mongodb - uniwind 创建只有不同值的行
- python - 在 Python 中使用 Compute Engine API 中的 securityPolicies
- r - 为什么 := 比 `:=`() 快?
- crystal-reports - CrystalReports 数据字段全部为空
- javascript - 我需要连接我的数据库,然后在网页上显示