gpt4 book ai didi

java - 如何使用maven和junit通过eclipse调试selenium webdriver

转载 作者:行者123 更新时间:2023-12-01 14:07:41 25 4
gpt4 key购买 nike

我在 eclipse 中有一堆 selenium webdriver 测试。如何通过 Eclipse 在 Debug模式下运行它们,以便我可以正确调试它们,而不仅仅是将内容输出到日志中?

当我运行测试时,我使用以下命令行:

mvn -Dtest=*testName* test -Dconf=MyPropertis.properties

但我不知道如何通过 eclipse 来做到这一点。

最佳答案

对于您的问题,我建议在 Eclipse 中以 Debug模式运行 JUnit 测试 (1) 并调整配置以添加所需的系统属性 (2)。

enter image description here

关于java - 如何使用maven和junit通过eclipse调试selenium webdriver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18766803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com