Forum Discussion

rakeshg's avatar
rakeshg
Occasional Contributor
10 years ago

[Res] Multiple executions from maven plug in

Hi-
I would like to execute the the same test suite multiple times using different data files in the same run. Is it possible?

I tried putting multiple execution blocks in the pom file (like below) but that gives me an error. Any ideas?

Thanks
Rakesh

<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro-maven-plugin</artifactId>
<version>4.6.4</version>
<executions>
<execution>
<configuration>

<testSuite>FOH BVTs</testSuite>
<projectProperties>
<value>Datafile=data1.xls</value>
</projectProperties>
</configuration>
<execution>
<configuration>

<testSuite>FOH BVTs</testSuite>
<projectProperties>
<value>Datafile=data2.xls</value>
<value>SendTestLinkReports=${testlink.enable}</value>
</projectProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

4 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Rakesh,

    I see that the execution tag is not closed for first execution,
    So try this,

    <build>
    <defaultGoal>test</defaultGoal>
    <plugins>
    <plugin>
    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-pro-maven-plugin</artifactId>
    <version>4.6.4</version>
    <executions>
    <execution>
    <configuration>

    <testSuite>FOH BVTs</testSuite>
    <projectProperties>
    <value>Datafile=data1.xls</value>
    </projectProperties>
    </configuration>

    </execution>
    <execution>
    <configuration>

    <testSuite>FOH BVTs</testSuite>
    <projectProperties>
    <value>Datafile=data2.xls</value>
    <value>SendTestLinkReports=${testlink.enable}</value>
    </projectProperties>
    </configuration>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>

    Thanks,
    Jeshtha
  • rakeshg's avatar
    rakeshg
    Occasional Contributor
    Hi Jeshtha-
    thanks for your reply. It is a typo in the forum post - not in the actual POM file :-)

    So my question is - are the multiple <execution> blocks are supported by the maven plugin?

    Rakesh
  • rakeshg's avatar
    rakeshg
    Occasional Contributor
    This is the error I get...

    [ERROR] The project com.ticketmaster.orderwe.tests:OrderWE-SoapUI-BVTs:Resale (C:\git\qa\BVT\OrderWE\pom.xml) has 1 error
    [ERROR] 'build.plugins.plugin[com.smartbear.soapui:soapui-pro-maven-plugin].executions.execution.id' must be unique but f
    ound duplicate execution with id default @ line 40, column 17