Maven Jenkins SoapUI测试的构建-未找到测试套件

Maven Jenkins SoapUI测试的构建-未找到测试套件,maven,jenkins,soapui,Maven,Jenkins,Soapui,我正试图通过Jenkins上的maven构建一个SoapUI测试套件。使用maven,我能够在本地机器上成功地构建testSuite,并执行所有测试用例。但在Jenkins上,似乎找不到任何可运行的测试套件!这对我来说相当混乱,因为这是我第一次涉足SoapUI、Maven和Jenkins Jenkins的控制台输出为: [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ WAR_DDCService --- [IN

我正试图通过Jenkins上的maven构建一个SoapUI测试套件。使用maven,我能够在本地机器上成功地构建testSuite,并执行所有测试用例。但在Jenkins上,似乎找不到任何可运行的测试套件!这对我来说相当混乱,因为这是我第一次涉足SoapUI、Maven和Jenkins

Jenkins的控制台输出为:

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ WAR_DDCService ---
[INFO] No sources to compile
[INFO] [debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/src/test/resources
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ WAR_DDCService ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ WAR_DDCService ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ WAR_DDCService ---
[INFO] No tests to run.
[INFO] Surefire report directory: /var/lib/jenkins/jobs/DDCAutomationSuite/workspace/target/surefire-reports
在查看输出时,让我困惑的是,它似乎在“资源”文件夹中查找测试套件。然而,soapui测试套件位于src/tests/soapui文件夹中

下面是这个项目的pom.xml文件的一节,我也提到了路径。有人能帮我理解我哪里出了问题吗

我已经在配置中的pom.xml中指定了项目文件的以下位置

Hi Samuel, thank you for the response. Please find the pom.xml content below:

<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.5.1</version>                
<configuration>
<projectFile>src/test/soapui/DaonDerivedCredential-soapui-project.xml</projectFile>
<outputFolder>${project.build.directory}/surefire-reports</outputFolder>
<junitReport>true</junitReport>
<printReport>true</printReport>
<projectProperties>
<projectProperty>endpoint=<a href="http://foo.com/foo-0.2.1-SNAPSHOT/services/ddc</a></projectProperty>
</projectProperties>
</configuration>
</plugin>
你好,塞缪尔,谢谢你的回复。请在下面找到pom.xml内容:
电子设备
maven soapui插件
4.5.1                
src/test/soapui/DaonDerivedCredential-soapui-project.xml
${project.build.directory}/surefire报告
真的
真的
endpoint=进入Jenkins项目配置文件中的“目标和选项”表单输入(可能在页面底部附近)

您可以将其设置为

clean eviware:maven soapui插件:测试

为了让詹金斯做你的测试

由于默认情况下,此目标绑定到集成测试阶段,因此它应该贯穿默认生命周期,并通过执行测试来完成

有关详细信息,请参阅:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

很难知道是什么错了,我们需要更多的信息。您可以发布更多的pom和您尝试运行的maven命令吗?我不清楚您是否希望从soapui插件或资源插件中得到什么。。为了回应你的澄清,我更新了原始帖子的内容。请让我知道这是否有帮助。请尝试使用${basedir}${basedir}src/test/soapui/DaonDerivedCredential-soapui-project.xmlAh作为前缀,我知道了。你必须告诉jenkins你想要运行mvn eviware:maven soapui plugin:test来执行它,因为这个目标不在默认生命周期中。要这样做,你需要在jenkins中项目的配置文件中有一个“目标和选项”表单输入(可能在页面底部附近)。当然,您的项目应该在Jenkins中作为Maven项目创建。