Multiple projects with the soapui plugin.

Help us make SoapUI even more fun, please post your feature requests here!

Multiple projects with the soapui plugin.

Postby Xanxir » 17 Nov 2010 19:58

It would be extremely convenient and very much appreciated to have the Maven plugin be able to run multiple SOAP UI projects. Thank you.
Xanxir
User
 
Posts: 3
Joined: 04 Nov 2010 18:20

Re: Multiple projects with the soapui plugin.

Postby wsuser1 » 22 Nov 2010 19:03

Hello,

Since we can't vote up certain requests, I will just state here this a much needed request for people using the maven plugin and the pro edition. It is important that the "composite" project structure is supported in the maven plugin.

Scott
wsuser1
User
 
Posts: 1
Joined: 22 Nov 2010 18:54

Re: Multiple projects with the soapui plugin.

Postby SmartBear Support » 26 Nov 2010 15:15

Hi Scott,

this is related to a bug in the 3.6.1 release which is fixed in the nightly build of soapUI Pro but not in the maven-pro-plugin (since it has no nightly-build). I'll get back to you as soon as the nightly build is available.

regards!

/Ole
eviware.com
SmartBear Support
Administrator
Administrator
 
Posts: 8216
Joined: 16 Feb 2009 10:53

Re: Multiple projects with the soapui plugin.

Postby bmgriner » 30 Nov 2010 20:54

Another vote for this feature. There are workarounds for this including making multiple child projects and aggregating their results or creating a projectFile property and running the test goal multiple times. mvn eviware:maven-soapui-plugin:test -DprojectFile={path_to_project_file}

Both of these are not very friendly.

Please let me know when this is fixed.
bmgriner
Jr. Member
Jr. Member
 
Posts: 80
Joined: 16 Sep 2010 20:53

Re: Multiple projects with the soapui plugin.

Postby eelzinga » 17 Dec 2010 07:32

we use a parentpom to registrate the plugin and use child-pomps for every sub-project.
in the sub pom you add the projectFile-setting and then you can trigger all the tests by calling the soapui on the parent-pom
eelzinga
User
 
Posts: 19
Joined: 15 Nov 2010 12:49

Re: Multiple projects with the soapui plugin.

Postby yves42 » 30 Dec 2010 17:51

eelzinga wrote:we use a parentpom to registrate the plugin and use child-pomps for every sub-project.
in the sub pom you add the projectFile-setting and then you can trigger all the tests by calling the soapui on the parent-pom


Hello everybody,

as you, I search a solution to use maven plugin with several projects.

Eelzinga, could you explain precisely how to proceed for example in showing a part (or the structure) of the parentpom and subpom file.

Thank you.

Regards,

Yves.
yves42
User
 
Posts: 12
Joined: 28 Dec 2010 16:55

Re: Multiple projects with the soapui plugin.

Postby bmgriner » 07 Jan 2011 00:40

yves42,

I actually found that having a parent pom with sub projects each with pom files that defined SoapUI project info turned into quite a mess. The solution that I found the best was to add multiple executions of the plugin while changing the project location.
Code: Select all
...
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>

<executions>
<execution>
    <phase>integration-test</phase>
        <id>[SomeID]</id>
        <configuration>
            <projectFile>${pom.basedir}/src/test/soapui/[Some]-soapui-project.xml</projectFile>
        </configuration>
        <goals>
            <goal>test</goal>
        </goals>
</execution>
<execution>
    <phase>integration-test</phase>
        <id>[SomeOtherID]</id>
        <configuration>
            <projectFile>${pom.basedir}/src/test/soapui/[SomeOther]-soapui-project.xml</projectFile>
        </configuration>
        <goals>
            <goal>test</goal>
        </goals>
</execution>
</executions>
</plugin>
...
</build>


They you call mvn integration-test and it will run both projects.
bmgriner
Jr. Member
Jr. Member
 
Posts: 80
Joined: 16 Sep 2010 20:53

Re: Multiple projects with the soapui plugin.

Postby yves42 » 12 Jan 2011 12:06

Thank you bmgriner,

I will try this solution in a few time.

Regards,
Yves42.
yves42
User
 
Posts: 12
Joined: 28 Dec 2010 16:55

Re: Multiple projects with the soapui plugin.

Postby bhavinParikh » 13 Dec 2011 04:57

I am using multiple executions for multiple soapui projects as suggested in this thread. But how can I get the report for all those projects together? I am only seeing the report for last soapui project only. I will appreciate any help here.
bhavinParikh
User
 
Posts: 2
Joined: 12 Dec 2011 19:52

Re: Multiple projects with the soapui plugin.

Postby bhavinParikh » 28 Feb 2012 13:47

Hi martincrow,

How do you manage multiple soapui projects using the plugin and maven? Can you provide your example or pom file?

Thanks
bhavinParikh
User
 
Posts: 2
Joined: 12 Dec 2011 19:52

Re: Multiple projects with the soapui plugin.

Postby bmgriner » 13 Mar 2012 19:33

Any update on this. I don't want to take time to see if it works unless I have the go-ahead from SmartBear that they now support it.
bmgriner
Jr. Member
Jr. Member
 
Posts: 80
Joined: 16 Sep 2010 20:53

Re: Multiple projects with the soapui plugin.

Postby leskop » 15 Oct 2012 15:25

I'm missing this feature also.
If I set following for child project:

Code: Select all
<build>   
      <plugins>           
         <plugin>
            <groupId>eviware</groupId>
            <artifactId>maven-soapui-pro-plugin</artifactId>
            <version>4.5.1</version>           
            <inherited>true</inherited>                       
            <configuration>
              <soapuiProperties>
                <property>
                  <name>soapui.logroot</name>
                  <value>${project.build.directory}/soapui-logs/</value>
                </property>
              </soapuiProperties>
              <saveAfterRun>true</saveAfterRun>
              <testFailIgnore>true</testFailIgnore>                       
              <aggregate>true</aggregate>
              <linkXRef>true</linkXRef>
              <projectFile>${basedir}/../../src/test/soapui/Test-soapui-project.xml</projectFile>
              <host>http://127.0.0.1:8080</host>
              <outputFolder>${basedir}/../../target/soapui-reports-childProject1/</outputFolder>
              <junitReport>true</junitReport>
              <printReport>false</printReport>
              <projectProperties>
                <projectProperty>myProp1=prop1</projectProperty>
                <projectProperty>myProp2=prop2</projectProperty>
              </projectProperties>
             
            </configuration>         
            <executions>
            <execution>
              <id>integration-test</id>
              <phase>integration-test</phase>
              <goals>
                <goal>test</goal>
              </goals>
      </execution>
   </executions>
         </plugin>
         ...
      </plugins>
   </build>


Second child project has similar configuration with other variables.

Parrent pom looks like:

Code: Select all
...
    <modules> 
      <module>modules/project1</module>
      <module>modules/project1</module>
    </modules>
   
    <reporting>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-report-plugin</artifactId>
          <version>2.5</version>
          <configuration>
            <aggregate>true</aggregate>
          </configuration>
        </plugin>
      </plugins>
    </reporting>


Is there any way how to aggregate ${basedir}/../../target/soapui-reports-childProject1 and ${basedir}/../../target/soapui-reports-childProject2 test sub-module results into one?

Using
Code: Select all
mvn integration-test
to produce results
leskop
User
 
Posts: 18
Joined: 17 Apr 2012 12:59

Re: Multiple projects with the soapui plugin.

Postby leskop » 15 Jan 2013 14:05

Hi,
No I didn't.

The reason why is because I coundn't trace results for particular results. As you said "Configure this parameter to use the 2 output directories where soapui stores xml junit files" -> this is ok for XML junit files ("Maven surefire reports").
But I needed also reports (*.txt) produced by SoapUI. Now I have a situation with > 2100 tests divided into submodules and Jenkins work pretty well with them
leskop
User
 
Posts: 18
Joined: 17 Apr 2012 12:59

Re: Multiple projects with the soapui plugin.

Postby apattanayak » 08 Nov 2013 13:18

I am new to SOAP UI, at my company its heavily used. After spending couple of days with SOAP UI test execution, I get to realize that it's really problematic not to have a feature which would allow to execute multiple soap ui projects together from maven rather adding each project details in the pom.xml. Wondering, is there any way to add any group name like 'high Priority', 'regression' in the <project-name>.xml, so that I can use 'LabeledTestGroupsPublisher' plug in from Jenkins.
apattanayak
User
 
Posts: 7
Joined: 08 Nov 2013 12:08
Location: Munich, Germany

Re: Multiple projects with the soapui plugin.

Postby redfish4ktc2 » 12 Nov 2013 23:03

hi, what do you mean with 'add any group' and ' use 'LabeledTestGroupsPublisher' plug in from Jenkins'
redfish4ktc2
Contributor & Community Moderator
Contributor & Community Moderator
 
Posts: 445
Joined: 18 Mar 2013 22:46
Location: Grenoble, France

Next

Return to SoapUI Feature Requests