首先,我尝试了“ ReportPortal监听器”
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<properties>
<property>
<name>listener</name>
<value>com.epam.reportportal.junit.ReportPortalListener</value>
</property>
</properties>
</configuration>
</plugin>
但是测试给了我错误
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
然后我尝试写
@RunWith(com.epam.reportportal.junit.CustomJUnitRunner.class)
但是系统找不到并导入com.epam.reportportal.junit.CustomJUnitRunner.class
也许有人知道如何进行这种集成?
答案 0 :(得分:0)
@noPainNoGain,我们在bintray上托管软件包。
也添加存储库
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-epam-reportportal</id>
<name>bintray</name>
<url>http://dl.bintray.com/epam/reportportal</url>
</repository>
</repositories>
<dependency>
<groupId>com.epam.reportportal</groupId>
<artifactId>agent-java-testng</artifactId>
<version>3.0.0</version>
</dependency>
<!-- TODO Leave only one dependency, depends on what logger you use: -->
<dependency>
<groupId>com.epam.reportportal</groupId>
<artifactId>logger-java-logback</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>com.epam.reportportal</groupId>
<artifactId>logger-java-log4j</artifactId>
<version>3.0.0</version>
</dependency>
https://github.com/reportportal/agent-java-testNG#dependencies