【问题标题】:reportng report overwrites previous one if run multiple test suites如果运行多个测试套件,reportng 报告会覆盖前一个
【发布时间】:2014-12-04 00:19:37
【问题描述】:

例如,如果我运行 testng.xml 并且它包含多个测试套件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Master Suite">
    <suite-files>
        <suite-file path="test_1.xml"></suite-file>
        <suite-file path="test_2.xml"></suite-file>
    </suite-files>
</suite>

之后,我检查了报告报告,它没有显示两个测试套件报告,而只显示最后一个。如何避免覆盖之前的测试报告?

请帮忙

【问题讨论】:

    标签: webdriver reportng


    【解决方案1】:

    不要在套件文件中添加监听器,在你的 testng.xml 中添加监听器

    这将解决你的问题。

    【讨论】:

    • 你的意思是从套件标签中删除监听器吗?
    • 不要将监听器放在 test_1.xml 中,而 test_2.xml 只放在 testng.xml 中
    猜你喜欢
    • 2016-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多