PAX测试用例运行失败

时间:2020-04-21 16:09:22

标签: java eclipse maven pax-exam pax-runner

我正在运行PAX测试用例以测试某些功能,但是每次测试运行在某个位置挂起并且半小时后测试运行失败。

如下:

[shaded.org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] : Using manager SimpleLocalRepositoryManager with priority 0.0 for C:\Maven\repository Ignored FQCN: shaded.org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory$Slf4jLoggerEx
[org.ops4j.pax.url.mvn.internal.AetherBasedResolver] : Resolved (org.apache.karaf:apache-karaf:zip:4.1.4) as C:\Maven\repository\org\apache\karaf\apache-karaf\4.1.4\apache-karaf-4.1.4.zip
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Log file should not be modified by the test framework
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Found 0 options when requesting OverrideJUnitBundlesOption.class
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : you're trying to add an additional value to a config file; you're current value will be replaced.
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Test Container started in 20 millis
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Wait for test container to finish its initialization [ RelativeTimeout value = 14400000 ]
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote bundle context.. on 21000 name: bf67ae07-0952-48c8-9cbb-141f337cd0db timout: [ RelativeTimeout value = 14400000 ]
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : Connection manager is shutting down Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : Connection manager shut down Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog

半小时后,抛出构建失败错误,如下所示:

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:00 h
[INFO] Finished at: 2020-04-21T20:46:33+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project testcases: There was a timeout or other error in the fork -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我们在项目中使用的是org.ops4j.pax.exam版本4.12.0。

建议我如何解决此问题并运行测试用例。

0 个答案:

没有答案