Forum Discussion

raviraj's avatar
raviraj
Occasional Contributor
7 years ago
Solved

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.

  • 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.

3 Replies

  • Nastya_Khovrina's avatar
    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.

    • harry's avatar
      harry
      Contributor

      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