【问题标题】:play auto-test selenium test failed, no test-result TEST-{testname}.xml file generated播放自动测试 selenium 测试失败,没有生成测试结果 TEST-{testname}.xml 文件
【发布时间】:2012-04-17 13:12:30
【问题描述】:

我们有一个通过我们的 Teamcity 服务器自动测试的 Play (1.2.4) 应用程序。常规 (JUnit) 测试在使用时会在 /test-result/ 目录中返回一个 Test-{classname}.xml 数据文件

play.bat 自动测试

但硒测试没有。他们只生成一个 /test-result/{testname}.test.html.failed.html 或 ...succes.html

这很烦人,因为我无法从 Teamcity 中轻松显示哪个 selenium 测试失败。我必须查看日志文件/工件并查看存在哪个 failed.html 文件,打开它并查看哪个测试用例失败。烦人!

如何让 play 1.2.4 生成一个数据文件/xml,我可以对其进行解析以查看哪个 selenium 测试失败?

【问题讨论】:

    标签: selenium playframework playframework-1.x


    【解决方案1】:

    因为我找不到任何信息,也不知道如何完成它,所以我编写了自己的 Selenium HTML 测试结果文件解析器。我已经在 github 上发布了它,源代码在 GPL 下:https://github.com/crunchie84/play-seleniumresults-parser

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-05
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      • 2016-04-06
      相关资源
      最近更新 更多