Ask a Question

Executing ReadyAPi multiple testSuite within a project with maven and Jenkins?

SOLVED
raviraj
Occasional Contributor

Executing ReadyAPi multiple testSuite within a project with maven and Jenkins?

Hi ,

 

I have a Ready API's [Soap UI Pro] project configured through maven to run on jenkins now the issue i can execute either a testSuite or entire project So is there any way for executing multiple testSuite through maven ?

 

<testSuite>${testSuite}</testSuite>

Regards,

Raviraj.

3 REPLIES 3
Nastya_Khovrina
SmartBear Alumni (Retired)

Hi Raviraj,

 

Thank you for your post. You will need to specify test suites in the following way:

       <executions>
          <execution>
            <id>TestSuite 1</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <projectFile>Project-1-soapui-project.xml</projectFile>
              <testSuite>TestSuite 1</testSuite>
            </configuration>
          </execution>
          <execution>
            <id>TestSuite 2</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <projectFile>Project-1-soapui-project.xml</projectFile>
              <testSuite>TestSuite 2</testSuite>
            </configuration>
          </execution>

         </executions>

 

Please find the entire pom. xml file attached.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

for executing what mvn command i need to use 


@Nastya_Khovrina wrote:

Hi Raviraj,

 

Thank you for your post. You will need to specify test suites in the following way:

       <executions>
          <execution>
            <id>TestSuite 1</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <projectFile>Project-1-soapui-project.xml</projectFile>
              <testSuite>TestSuite 1</testSuite>
            </configuration>
          </execution>
          <execution>
            <id>TestSuite 2</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <projectFile>Project-1-soapui-project.xml</projectFile>
              <testSuite>TestSuite 2</testSuite>
            </configuration>
          </execution>

         </executions>

 

Please find the entire pom. xml file attached.



for multiple test suite

Nastya_Khovrina
SmartBear Alumni (Retired)

Harry,

 

You just need to change the pom.xml file. 

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: