-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Suite name is coming for each run inside launch #102
Comments
@shishirdwivedi2008 We can not help without details. |
Version of RP: 5.0.0 Steps To Reproduce:
Do let me know if you need any other info. |
It depends on how you initialize ReportPortal listener. We recommend do that once in a 'testng.xml' file. If you initialize the listener in classes with an annotation, then TestNG creates several listener instances, which lead to the situation. |
@HardNorth I am initializing ReportPortal Listener in my pom.xml file and executing test cases using mvn clean test. <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<suiteXmlFiles>
<!--suppress UnresolvedMavenProperty -->
<suiteXmlFile>${testNgXml}</suiteXmlFile>
</suiteXmlFiles>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value> <!-- disabling default listeners is optional -->
</property>
<!-- Report Portal Listner. Report will only be send to portal when run through mvn
command -->
<property>
<name>listener</name>
<value>com.epam.reportportal.testng.ReportPortalTestNGListener</value>
</property>
</properties>
</configuration>
</plugin> |
@shishirdwivedi2008 for RPv5 you should use agents starting with 5.x https://bintray.com/epam/reportportal/agent-java-testng/5.0.0-BETA-9 (for TestNG 7) |
@shishirdwivedi2008 Can you provide an example project which reproduces the issue? |
Abandoned |
Hello Team,
For my every run , I see two suite name(duplicate) inside the launch. One is always in interrupted state and another one contains all my test cases with a log. Seems like duplicate suite name is logged into the report.
I am attaching a screenshot for the same. Do let me know if any logs are required for this.
Also, Launch contains logs for after method. As per my understanding after method logs should be inside the test method log only because after execution of after method a test case will complete.
I am also attaching a screenshot for that. Kindly advice.
The text was updated successfully, but these errors were encountered: