Forum Discussion

guyoha's avatar
guyoha
New Contributor
9 years ago

How to Trigger TestSuite via maven for Identical TestSet but with different EndPoints

Hi

I'm trying to design a pom that will trigger the same TerstSuite but with diffrent endpoints.

The below design triggers the first exacution and seems to ignore the second one.

Any suggestions?

 

<build>
    <plugins>
      <plugin>
        <groupId>com.smartbear.soapui</groupId>
        <artifactId>soapui-maven-plugin</artifactId>
        <version>5.1.3</version>
        <dependencies>
            <dependency>
                <groupId>com.smartbear.soapui</groupId>
                <artifactId>soapui</artifactId>
                <version>5.1.3</version>
                <exclusions>
                    <exclusion>
                        <groupId>javafx</groupId>
                        <artifactId>jfxrt</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
        </dependencies>
        <configuration>
                <outputFolder>OUTPUT_FOLDER</outputFolder>
                <junitReport>true</junitReport>
                <printReport>false</printReport>
        </configuration>
        <executions>
          <execution>
            <id>Test1</id>
            <goals>
              <goal>test</goal>
            </goals>
            <phase>test</phase>
            <configuration>
                <projectFile>TestSuite.xml>
                <projectProperties>
                        <host>HOST_1</host>
                </projectProperties>
            </configuration>
           </execution>
           <execution>
            <id>Test2</id>
            <goals>
              <goal>test</goal>
            </goals>
            <phase>test</phase>
            <configuration>
                <projectFile>TestSuite.xml</projectFile>
                <projectProperties>
                    <host>HOST_2</host>
                </projectProperties>
        </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>

 

1 Reply

  • guyoha's avatar
    guyoha
    New Contributor

    I figured this out 

    the pom is ok, It was all abut the mojo.

    • This one triggered the first execution only: mvn com.smartbear.soapui:soapui-maven-plugin:test
    • This one triggered both of them: mvn test