Ask a Question

SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

SOLVED
ckhim
Occasional Contributor

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

 

4 REPLIES 4
Nastya_Khovrina
SmartBear Alumni (Retired)

Hi ckhim,

 

Please see this article: How to run multiple Test Suites or Test Cases when executing tests from Maven?


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Olga_T
SmartBear Alumni (Retired)

Hi all,

 

@ckhim, have you had a chance to go through the provided article? Has it helped?

 


Olga Terentieva
SmartBear Assistant Community Manager

willtestforfood
Occasional Contributor

The example you provided does not actually use the tag param. Do you another pom file example which uses tags?

Nastya_Khovrina
SmartBear Alumni (Retired)

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:

chrome_2019-03-27_15-06-37.png

 

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.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: