使用maven-soapui-extension-plugin时错误,ASSERTION FAILED - > XPathContains断言失败

时间:2016-06-10 16:35:03

标签: maven soapui maven-plugin

我使用SoapUI插件进行一些测试:

我想将此测试与Maven / Jenkins集成。我使用SoapUI工具时测试没问题。但是当我使用下面的pom文件时

<plugin>
  <groupId>com.github.redfish4ktc.soapui</groupId>
  <artifactId>maven-soapui-extension-plugin</artifactId>
  <version>4.6.4.2</version>
  <executions>
    <execution>
      <id>SoapUITestOnDITx</id>
      <phase>integration-test</phase>
      <goals>
        <goal>test-multi</goal>
      </goals>
      <configuration>
        <projectFiles>
          <scan>
            <baseDirectory>src/test/ressources</baseDirectory>
            <includes>
              <include>*.xml</include>
            </includes>
            <excludes>
              <exclude>*ToExclude*.xml</exclude>
            </excludes>
          </scan>
        </projectFiles>
        <outputFolder>target/soapui/</outputFolder>
        <junitReport>true</junitReport>
        <useOutputFolderPerProject>true</useOutputFolderPerProject>
        <exportAll>true</exportAll>
        <junitHtmlReport>false</junitHtmlReport>
        <testFailIgnore>true</testFailIgnore>
        <host>${soapui.host}</host>
        <username>${soapui.username}</username>
        <password>${soapui.password}</password>
      </configuration>
    </execution>
  </executions>
</plugin>

但是当我用maven运行我的测试时,我收到了以下错误:

  

ASSERTION FAILED - &gt;路径的XPathContains断言失败[count(// initialInfos / item)&gt; 0]:RuntimeException:尝试XBeans路径引擎...尝试XQRL ...尝试委派路径引擎...   计数失败(// initialInfos / item)&gt; 0

而我的回答是好的(回复中至少有一个项目)

似乎缺少依赖,但依赖是什么?

0 个答案:

没有答案