【问题标题】:selenium-jupiter - Unable to find screenshot fileselenium-jupiter - 找不到屏幕截图文件
【发布时间】:2020-06-05 14:02:12
【问题描述】:

当我尝试使用 JUnit 5 运行以下命令时

mvn clean install -DskipTests && mvn clean test -pl=test-insight -Dtest="com.myproject.automation.test.settings.**" -Dspring.profiles.active="live" -Dsel.jup.screenshot.at.the.end.of.tests=whenfailure -Dsel.jup.screenshot.format=png -Dsel.jup.output.folder=target/screenshot

之后,我看不到屏幕截图已创建。有人帮我解决我的问题吗? 谢谢

【问题讨论】:

    标签: selenium-jupiter


    【解决方案1】:

    我认为您需要启用 surfire-reports。

    【讨论】:

    • 嗨@Laura,我启用了surefire-report,但它不起作用。请看代码mvn clean install -DskipTests && mvn clean test -pl=test-insight -Dtest="com.myproject.automation.test.settings.**" -Dspring.profiles.active="live" -Dsel.jup.screenshot.at.the.end.of.tests=whenfailure -Dsel.jup.screenshot.format=png -Dsel.jup.output.folder=target/screenshot surefire-report:report-only
    • 我此时使用了另一个报告Allure报告作为临时解决方案。我将查看我的脚本以找出根本原因。无论如何,非常感谢。
    猜你喜欢
    • 2017-06-26
    • 1970-01-01
    • 1970-01-01
    • 2017-02-28
    • 1970-01-01
    • 2011-10-13
    • 2016-02-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多