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 tests in launch/lanch does not fininsh #66

Closed
Baivalr opened this issue Dec 3, 2019 · 9 comments
Closed

Duplicate tests in launch/lanch does not fininsh #66

Baivalr opened this issue Dec 3, 2019 · 9 comments
Assignees

Comments

@Baivalr
Copy link

Baivalr commented Dec 3, 2019

I added reportportal to my project following the instructions here > https://github.com/reportportal/example-java-TestNG and using the @listeners annotation. The launches appear in reportportal and everything looks fine until the test runs end. The launch in RP never finishes and has to be forced to finish. The launches have duplicate suites, one of which finishes as expected, the other never finishes. This happens whether we run it locally/manually or use Jenkins. Does anyone have nay thoughts on why this is and how I can fix it? This is a selenium/java project ultimately running from a jenkins pipeline job.

Thx

@ihar-kahadouski
Copy link
Contributor

It seems you have registered a few listeners. Check it please in pom.xml

@evjlobanova
Copy link

@Baivalr Does it help you?

@DzmitryHumianiuk
Copy link
Member

@Baivalr please share you pom.xml and suites.xml
listener can also be defined there.

And plz let us know about the multi threading, do you use it?

@Baivalr
Copy link
Author

Baivalr commented Dec 19, 2019

no multithreading.
`
4.0.0

----
web-automation
0.0.1-SNAPSHOT

s-release-regression

<properties>
	<s-release-regression.skip.tests>true</s-release-regression.skip.tests>
	<skipTests>${s-release-regression.skip.tests}</skipTests>
</properties>

<build>
	<plugins>
		<!-- used to copy web drivers into final jar -->
		<plugin>
			<artifactId>maven-remote-resources-plugin</artifactId>
			<version>${version.plugin.remote-resources}</version>
			<executions>
				<execution>
					<id>process-remote-resources</id>
					<goals>
						<goal>process</goal>
					</goals>
					<configuration>
						<resourceBundles>
							<resourceBundle>---:web-automation-core:${project.version}</resourceBundle>
						</resourceBundles>
					</configuration>
				</execution>
			</executions>
		</plugin>

        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.3</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
	</plugins>
</build>

<profiles>
	<profile>
		<id>RunTestSuite</id>
		<activation>
			<activeByDefault>false</activeByDefault>
			<property>
				<name>suite</name>
			</property>
		</activation>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>${version.plugin.surefire}</version>
					<configuration>
                        <testFailureIgnore>true</testFailureIgnore>
						<suiteXmlFiles>
							<suiteXmlFile>src/test/resources/testng-suites/${suite}.xml</suiteXmlFile>
						</suiteXmlFiles>
					</configuration>
				</plugin>
			</plugins>
		</build>
	</profile>
</profiles>

<dependencies>

	<dependency>
		<groupId>org.testng</groupId>
		<artifactId>testng</artifactId>
		<version>${version.dependency.testng}</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>com.---</groupId>
		<artifactId>ats-page-objects</artifactId>
		<version>0.0.1-SNAPSHOT</version>
	</dependency>

	<dependency>
		<groupId>---</groupId>
		<artifactId>web-automation-core</artifactId>
		<version>0.0.1-SNAPSHOT</version>
	</dependency>

	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>4.5.1</version>
	</dependency>

	<dependency>
		<groupId>com.jayway.restassured</groupId>
		<artifactId>rest-assured</artifactId>
		<version>2.8.0</version>
	</dependency>

	<dependency>
		<groupId>com.jayway.restassured</groupId>
		<artifactId>json-path</artifactId>
		<version>2.8.0</version>
	</dependency>

	<dependency>
		<groupId>org.json</groupId>
		<artifactId>json</artifactId>
		<version>20151123</version>
	</dependency>
</dependencies>
` ` `

@Baivalr
Copy link
Author

Baivalr commented Dec 19, 2019

and `

`

@ihar-kahadouski
Copy link
Contributor

@Baivalr check please your XML files with sutes structure if they have <listeners> attribute

@evjlobanova
Copy link

@Baivalr Could you please tell us if it helped?

@Baivalr
Copy link
Author

Baivalr commented Dec 30, 2019

report portal listener is not defined in any suite xml.

@HardNorth
Copy link
Member

obsolete

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

5 participants