简体   繁体   English

运行Arquillian测试的间歇性故障

[英]Intermittent failure running arquillian tests

I am running arquillian tests on Red Hat EAP 6.4 (JBoss AS 7) but I am getting intermittent failures. 我在Red Hat EAP 6.4(JBoss AS 7)上运行Arquillian测试,但遇到间歇性故障。 About half of the time, everything runs through to the end as expected. 大约一半的时间,一切都按预期进行到最后。 The other half of the time I notice that "arquillian-service" does not get deployed to the app server, which results in the following error when the war is deployed: 在另一半时间里,我注意到“ arquillian-service”没有部署到应用程序服务器,这导致在部署战争时出现以下错误:

{"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.module.service.\"deployment.myapp.war\".main is missing [jboss.module.spec.service.\"deployment.arquillian-service\".main, module.resolved.service.\"deployment.myapp.war\".main]",
"jboss.module.resolve.phase.\"deployment.myapp.war\".main.1 is missing [jboss.module.spec.service.\"deployment.arquillian-service\".main]"]}

Environment 环境

  • Windows 7 Windows 7的
  • EAP 6.4 running in a docker container 在Docker容器中运行的EAP 6.4
  • Oracle Java 1.8 甲骨文Java 1.8

Relevant Dependencies (Arquillian container version 7.2.0.Final) 相关依赖关系(Arquillian容器版本7.2.0.Final)

    <dependency>
      <groupId>org.jboss.as</groupId>
      <artifactId>jboss-as-arquillian-container-remote</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss.arquillian.protocol</groupId>
      <artifactId>arquillian-protocol-servlet</artifactId>
      <scope>test</scope>
    </dependency>

arquillian.xml: arquillian.xml:

<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

  <container qualifier="jboss-remote" default="true">
    <configuration>
      <property name="managementAddress">${jboss.host}</property>
      <property name="username">${jboss.admin.user}</property>
      <property name="password">${jboss.admin.password}</property>

      <!-- Management port must be 9999 -->
      <property name="managementPort">9999</property>
    </configuration>
    <protocol type="Servlet 3.0">
      <property name="host">${jboss.host}</property>
      <property name="port">${jboss.host.port}</property>
    </protocol>

  </container>

</arquillian>

in your list of relevant dependencies, there isn't the most important dependency: 在相关依赖项列表中,没有最重要的依赖项:

<dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> </dependency>

didn't you forget to add it there? 您是否忘了将其添加到那里?

在Windows上这似乎是一个问题,我无法在Linux上重现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM