Forum Discussion

dali's avatar
dali
New Contributor
9 years ago

Folder projects SmartBear soapui maven plugin

Hi

I use the version 5.1.3 of the plugin 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 <ProjectFile> to run a list of projects of the same folder?

 

Dali

 

  • dali's avatar
    dali
    New Contributor

    with redfish4ktc you cab 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