【发布时间】:2019-05-08 11:08:41
【问题描述】:
当我的 testcafe 测试正在运行时,我试图通过休息 API (Zephyr) 将测试标记为通过/失败。我想知道是否可以在 after 或 afterEach 挂钩中知道测试是否通过/失败,以便我可以根据结果运行一些脚本。
类似:
test(...)
.after(async t => {
if(testFailed === true) { callApi('my test failed'); }
})
【问题讨论】:
标签: automated-tests hook e2e-testing testcafe