我有一个包含 3 个测试用例(.xls 文件)的测试套件。使用 ant 脚本,我正在运行测试套件,但 junit 报告使用 TEST-excelfw_firefox.xml(/temp/junit/..) 生成所有 xml。所以最后我只得到一个 .xml 文件而不是 3 个。如何在 Sahi 中使用 ant 生成具有不同名称的 .xml?
最佳答案
我刚刚将 .\userdata\config\reports\junit\report.properties 文件中的 script_file.name=TEST-scriptName.xml 更改为 script_file.name=TEST-reportId.xml 。现在我的 xml 正在生成带有时间戳。
关于testing - 无法在 Sahi 中生成 junit 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12142742/