reportportal / examples-java

Java examples of Report Portal usage
https://reportportal.io/
Apache License 2.0
20 stars 55 forks source link

Logs are getting into wrongs tests #27

Closed omkarnathsingh closed 4 years ago

omkarnathsingh commented 4 years ago

I tried the sample suite provided at https://github.com/reportportal/examples-java/blob/master/example-testng-log4j/suites/logging_tests.xml

But I made it more practical, meaning in real work we have a tag with multiple classes, Now all data in logs gets ordered in any random tests. Its causing huge trouble in using v5 at this moment.

Example Suite file:

<suite name="Logging Tests" parallel="classes" thread-count="10">

    <listeners>
        <listener
            class-name="com.epam.reportportal.testng.ReportPortalTestNGListener" />
    </listeners>

    <test verbose="1" name="Clubbed Tests">
        <classes>
            <class
                name="com.epam.reportportal.example.testng.log4j.logging.LuckyPugTest" />
            <class
                name="com.epam.reportportal.example.testng.log4j.logging.XmlLoggingTest" />
            <class
                name="com.epam.reportportal.example.testng.log4j.logging.XmlLoggingBetterTest" />
            <class
                name="com.epam.reportportal.example.testng.log4j.logging.JsonLoggingTest" />
            <class
                name="com.epam.reportportal.example.testng.log4j.logging.LoggingTest" />
            <class
                name="com.epam.reportportal.example.testng.log4j.parametrized.ParametrizedTest" />
        </classes>
    </test>

</suite>
HardNorth commented 4 years ago

Please use the latest agents version 5.0.0-BETA-9

omkarnathsingh commented 4 years ago

Thanks @HardNorth . Working fine now. Please update the same in example also.