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
You can find a sample pom.xml file here: https://support.smartbear.com/readyapi/docs/integrations/maven/example.html
Here is the part for tags:
But, if you're going to use tags, it's better to use a maintenance build for ReadyAPI 2.6.0 because there were some issues with tags in ReadyAPI 2.6.0.