【问题标题】:CSV File Generation for Selenium Test CasesSelenium 测试用例的 CSV 文件生成
【发布时间】:2017-05-23 10:15:26
【问题描述】:

有什么方法可以生成一个 CSV 文件来存储所有 selenium 脚本的测试用例结果。测试用例通过或测试用例失败。我正在使用 TestNG 执行 Selenium 测试用例。

【问题讨论】:

  • 您可以考虑与我们分享您的作品吗?谢谢

标签: csv selenium testing automation testng


【解决方案1】:

如果您使用的是 TestNG,那么可以直接通过查看输出文件夹来查看通过或失败的测试用例数量,例如:

\workspace\proj_name\test-output\index.html

它给出了测试用例的所有详细描述。

如果您想将结果写入文件,则可以参考以下链接:

http://seleniummaster.com/sitecontent/index.php/selenium-web-driver-menu/selenium-test-automation-with-java/167-write-selenium-webdriver-testng-result-to-excel-file

希望对你有所帮助。

【讨论】:

    猜你喜欢
    • 2012-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-14
    • 2011-05-05
    • 1970-01-01
    • 2023-01-18
    • 1970-01-01
    相关资源
    最近更新 更多