Forum Discussion

ckhim's avatar
ckhim
Occasional Contributor
8 years ago

SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

Hello SmartBear Community,

 

Is it possible to run SoapUI/ReadyAPI for more than one test case using Maven via configuring the POM.xml file?

 

I have a POM file configured to run ReadyAPI. 

 

....

....

....
<groupId>com.smartbear</groupId>
<artifactId>ready-api-maven-plugin</artifactId>

<version>1.9.0</version>
<executions>
<execution>


<phase>test</phase>

<goals>
<goal>test</goal>
</goals>

<configuration>


<projectFile>readyAPI_project.xml</projectFile>
<reportFormat>PDF</reportFormat>

<junitReport>true</junitReport>

<reports>${basedir}/target/surefire-reports</reports>


<testSuite>TestSuite_One</testSuite>
<testCase>TestCase_One</testCase>
<!--tags><param>TestCase tag1, tag2</param></tags-->

.....

.....

 

Note: With the above setup, test suite = TestSuite_One and test case = TestCase_One will be executed. 

If I leave testSuite and testCase blank as shown below, then all testSuite and testCase will be executed.

<testSuite></testSuite> 
<testCase></testCase>

 

Ideally, I can execute more than one test case by using tag as comment above. Tag the test case in SoapUI/ReadyAPI, then call them in POM. Question, is tag the only method to use to execute multiple test cases with Maven?

 

Thanks