Warm tip: This article is reproduced from serverfault.com, please click

其他-SOAP UI Maven集成

(其他 - SOAP UI Maven Integration)

发布于 2013-10-25 14:59:45

我的Soap UI项目和pom.xml驻留在D:\ Projekte \ JacobMarshell下

想要使用Maven执行soap ui项目的测试套件。

当我使用以下命令时,测试套件未执行

“ MVN测试”,并得到以下响应。

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven 2 soapUI Sample
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: D:\Projekte\JacobMarshell

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

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

这是pom.xml的代码片段

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>src.main.resources</groupId>
    <artifactId>soapui-maven2-plugin</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Maven 2 soapUI Sample</name>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <pluginRepositories>
        <pluginRepository>
            <id>eviwarePluginRepository</id>
            <url>http://www.soapui.org/repository/maven2</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <plugins>
            <plugin>
               <groupId>eviware</groupId>
                <artifactId>maven-soapui-plugin</artifactId>
                <version>4.5.1</version>
                <configuration>
                            <projectFile>Sample-Upload-to-Upload-Diagnose---Complete--soapui-project.xml</projectFile>
                            <junitReport>true</junitReport>

                            <outputFolder>reports</outputFolder>
                            <testSuite>diag_upload_tc</testSuite>
                        </configuration>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>   
        </plugins>
    </build>
</project>

无法弄清楚为什么Maven不执行我的测试套件?

Questioner
user2810022
Viewed
0
user2810022 2013-11-05 21:12:39

实际的问题是与存储库有关的...我删除了存储库中的eviware文件夹,并开始运行“ mvn test”命令,在该命令中下载了存储库,然后开始执行测试套件,感谢MarcelStör给我希望我有一天会得到答案。