Skip to content
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

Closed
shishirdwivedi2008 opened this issue Apr 30, 2020 · 7 comments
Closed

Comments

@shishirdwivedi2008
Copy link

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.

image

image

@evjlobanova
Copy link

@shishirdwivedi2008 We can not help without details.
Version of RP
Client: name/version
Agent: name/version
Example to reproduce

@shishirdwivedi2008
Copy link
Author

Version of RP: 5.0.0
Agent: Java Testng / 4.2.1
OS: ubuntu 16.04 / Docker Deployment

Steps To Reproduce:

  1. Execute Test Suite
  2. Go to Launch and select particular launch
  3. After opening launch, two same suite names will come. first one having status interrupted and the second one having actual test cases.

Do let me know if you need any other info.

@HardNorth
Copy link
Member

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 HardNorth transferred this issue from reportportal/reportportal May 1, 2020
@shishirdwivedi2008
Copy link
Author

shishirdwivedi2008 commented May 4, 2020

@HardNorth I am initializing ReportPortal Listener in my pom.xml file and executing test cases using mvn clean test.
Below is a snippet of my pom.xml

<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>

@DzmitryHumianiuk
Copy link
Member

@HardNorth
Copy link
Member

@shishirdwivedi2008 Can you provide an example project which reproduces the issue?

@HardNorth
Copy link
Member

Abandoned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants