当前位置: 首页 > 知识库问答 >
问题:

SoapUI测试的Jenkins构建-没有找到testsuite

毕嘉
2023-03-14
[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
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>

当我通过命令提示符从本地设置运行构建时,我给出命令“mvn eviware:maven-soapui-plugin:test”,它执行位于/src/test/SoapUI文件夹中的SoapUI TestSuite。关于詹金斯..我不知道詹金斯必须在哪里输入这个命令才能执行它。

共有1个答案

桑博远
2023-03-14

进入“Goals and Options”表单输入,在Jenkins中的项目配置文件中(可能在页面底部附近)。

您可以将其设置为

clean eviware:maven-soapui-plugin:test

为了让詹金斯做你的测试。

默认情况下,这个目标被绑定到集成测试阶段,它应该贯穿默认的生命周期,并通过执行测试来完成。

有关更多信息,请参见:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 类似资料:
  • 它在Jenkins slave上工作得很好,但我想为SOAPUI测试用例添加另一个Jenkins slave。但是相同的windows批处理命令在新机器上不起作用。 我在机器上的Jenkins控制台输出中得到以下消息: 我需要在那台机器上设置什么才能使它工作吗? 最后一次编辑:在我们公司,我们有有限的用户帐户。所以我不得不把这个任务交给管理员。他在奴隶身上设置了一些东西,现在对两个奴隶都起同样的作

  • 我有一个scala测试类,但是当我试图使用Maven目标'test'运行时,测试并没有运行。我收到Maven消息“There are no tests to run”。即使测试位于scala测试类中。我需要添加额外的配置吗? 以下是我的软件包设置: 下面是针对pom文件运行时Maven“测试”目标的输出: [INFO]----------------------生成成功[INFO]--------

  • 我试图在Android Studio/Eclipse中构建和导入Android项目。我的目标是为当前项目编写自动化测试。首先,我试图构建这个项目,然后制作一个apk文件,这样我就可以在它上执行真正的设备/模拟器测试。这里是我可用的分级任务,没有构建或测试或组装等任务,我正在寻找使用,所以我会达到我的目标。这是我的项目树和两个build.gradle文件 ` 我试图在Android Studio中打

  • 问题内容: 我们为詹金斯(Jenkins)配置了主从配置。我们的.NET项目由在Windows上运行的从属Jenkins实例构建。 有很多GUI测试,但是,只有在打开远程桌面连接(RDC)会话的情况下,它们才能运行。 尝试在没有RDC的情况下运行测试时,Jenkins并未显示测试的任何进展。但是,然后,我连接到Slave的桌面,可以看到已启动应用程序的主窗口,但是UI测试框架(白色)无法执行任何操

  • 我使用的是Eclipse Oxygen.3版本(4.7.3)。下面是我的JUnit测试类: 当我运行这个Junit测试时,eclipse不断弹出对话框,告诉我“没有tests found with test runner'JUnit5'”。为什么?

  • 我有一个测试,包括jUnit测试和testng测试。它工作正常时,我运行'mvn测试'从父pom,但测试失败时,在jenkins建设。我需要一个方法来跳过詹金斯的测试。