SoapUI-Test cases running before deployment using maven plugin

Not applicable

Hi Team,

I am trying to integrate soap-ui test cases with maven. I am using apigee's maven deploy plugin.

I created the folder structure, pom.xml, parent-pom.xml etc as suggested in the article. But the problem is whenever I am running a jenkins job or the command

mvn apigee-enterprise:deploy -P test -Dusername=$ae_username -Dpassword=$ae_password -X

it is first running the test cases and then deploying the proxy to apigee edge.

I am attaching my project here. Please have look and let me know if I have configured sth wrong.

apigeemavenplugin.zip

Solved Solved
0 2 746
1 ACCEPTED SOLUTION

Not applicable

Got It.

Changed the phase of execution in test cases, instead of test mentioned install.

<executions>
          <execution>
            <id>SampleTestCase</id>
            <goals>
              <goal>test</goal>
            </goals>
            <phase>install</phase>
          </execution>
        </executions>

and then used

mvn install -P test -Dusername=$ae_username -Dpassword=$ae_password -X

Here is my updated project for reference.

gateway.zip

View solution in original post

2 REPLIES 2

Not applicable
@Prashanth Subrahmanyam

or anyone in the community.. Can someone please help me??

Not applicable

Got It.

Changed the phase of execution in test cases, instead of test mentioned install.

<executions>
          <execution>
            <id>SampleTestCase</id>
            <goals>
              <goal>test</goal>
            </goals>
            <phase>install</phase>
          </execution>
        </executions>

and then used

mvn install -P test -Dusername=$ae_username -Dpassword=$ae_password -X

Here is my updated project for reference.

gateway.zip