cancel
Showing results for 
Search instead for 
Did you mean: 

SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

SOLVED
Highlighted
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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

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. ⬇️⬇️⬇️

View solution in original post

4 REPLIES 4
Highlighted
Moderator

Re: SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

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. ⬇️⬇️⬇️
Highlighted
Moderator

Re: SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

Hi all,

 

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

 


Olga Terentieva
SmartBear Assistant Community Manager

Highlighted
Occasional Contributor

Re: SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

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

Highlighted
Moderator

Re: SoapUI/ReadyAPI Maven - Run Multiple TestCase in POM

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. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Top Kudoed Authors