Wedriver.io不包括在我的Allure Report
wdio.conf.ci.js附加了以下内容。
afterTest: function(test, context, { error, result, duration, passed, retries }) {
if (passed){
browser.takeScreenshot();
}
wdio.conf.ci.js has the following appended.
afterTest: function(test, context, { error, result, duration, passed, retries }) {
if (passed){
browser.takeScreenshot();
}
},
Screenshot of the Report, in bottom right corner I am expecting Screenshot Attachment. Please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的
wdio.conf.ts
中因此我建议将您的屏幕截图逻辑放在 sptep 挂钩之后,而不是在测试之后挂钩。
对于Allure-Reporter Config(如果您使用此服务,但我希望您确实使用):
in my
wdio.conf.ts
I haveSo I recommend putting your screen shot logic in the afterStep hook and not in a afterTest hook.
And for allure-reporter config (if you use this service, but I expect you do) use: