Dali
Dali

Reputation: 135

Folder projects SmartBear soapui maven plugin

I use the version 5.1.3 of the plugin SmartBear SoapUI "com.smartbear.soapui" under maven. Is it possible to define only the name of the xml files folder instead of the full path at the tag to run a list of projects of the same folder?

Upvotes: 0

Views: 268

Answers (2)

Dali
Dali

Reputation: 135

with redfish4ktc you can do this

Example :

<build>
    <plugins>
        <plugin>
            <groupId>com.github.redfish4ktc.soapui</groupId>
            <artifactId>maven-soapui-extension-plugin</artifactId>
            <version>4.6.4.2</version>
            <executions>
                <execution>
                    <id>soapUI1</id>
                    <phase>test</phase>
                    <goals>
                        <goal>test-multi</goal>
                    </goals>
                    <configuration>
                        <projectFiles>
                            <scan>
                                <baseDirectory>./soapui/projects</baseDirectory>
                                <includes>
                                    <include>**/*_suffix.xml</include>
                                </includes>
                            </scan>
                        </projectFiles>
                        <outputFolder>./outputfolder</outputFolder>
                        <junitReport>false</junitReport>
                        <useOutputFolderPerProject>true</useOutputFolderPerProject>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

add to run this just execute the maven command :

mvn test com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.6.4.2:test-multi

Upvotes: 0

Ramu
Ramu

Reputation: 161

You can use refish plugin to execute all projects located in a folder. Or existing soapui-maven-plugin with multiple execution sections (each execution with one soapui project xml file)

Upvotes: 1

Related Questions