-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macaca 导出的报告、截图在哪,以及相应文档。 #85
Comments
@zenzhu 提供个示例代码,可以写截图文件到当前目录 |
macaca run -o 会默认保存到 macaca-test 目录下面。 |
@zenzhu 看了一下 网页是纯log输出,和terminal 下是一样的。 |
@lemonadam 失败截图的话。可以在每个测试用例 promise chain 的最后加一个 catch 语句,其中添加driver.takeScreenshot(), 就相当于在失败的情况下进行截图。
或者直接把 base64 字符串打印成 img 标签,这样的问题是终端会看到过长的字符串,但 html 上会显示成图片。
saveScreenshot(path) 是可以将截图保存到指定的地址。 |
@zenzhu 非常感谢。我试试 |
@zenzhu |
@lemonadam 谢谢分享~ |
@lemonadam @zenzhu @xudafeng 看了你们关于测试用例运行失败 截图的问题,我有一个疑问,如果在自动化测试过程中,app 发生 crash ,此时 如何捕获当前 app 崩溃的时机并截图?请问这个可以实现吗?对nodejs 不是很熟悉,如果能实现,请问在测试用例里面该怎么写? 在此 多谢啦 |
@lemonadam @xudafeng @zenzhu 请问一下,因为对 nodejs不是很熟悉,那么如何在每个测试用例 promise chain 的最后加一个 catch 语句?能不能说的具体一点? 多谢啦 |
之前连接里的内容:#13
已经不支持观看了。对应文档 http://macacajs.github.io/macaca/client-usage.html 是404
求报告如何导出,以及截图如果看到。
The text was updated successfully, but these errors were encountered: