gpt4 book ai didi

selenium - 在 Eclipse 之外运行 TestNG Selenium 测试时,不会创建 'test-output' 文件夹

转载 作者:行者123 更新时间:2023-12-04 15:57:10 26 4
gpt4 key购买 nike

  • 我们使用 Eclipse 创建了一些 Java 代码(selenium webdriver 脚本)。
  • 在我的项目中,我使用了 selenium jar文件和 TestNG jar
  • 在运行这些脚本时,我们会在 Eclipse 中测试输出文件夹。
  • 然后我们创建了一个可执行文件 jar从我们生成的脚本中,在运行这个生成的 jar 时,我们没有得到 TestNG 测试输出 文件夹。

  • 请建议我们如何创建 测试输出 运行我们的可执行文件时的文件夹 jar .

    最佳答案

    运行脚本后,只需刷新项目即可。
    【右键项目->属性->点击刷新】
    您现在可以在 Eclipse 中看到 test-output 文件夹。

    关于selenium - 在 Eclipse 之外运行 TestNG Selenium 测试时,不会创建 'test-output' 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28608975/

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