Forum Discussion

Manoj0516's avatar
Manoj0516
Occasional Contributor
7 years ago
Solved

How to run a single test suite through maven?

Hi 

 

Here is my maven pom

 

<testSuite>${testSuiteParam}</testSuite>

 

Here is my soapui project

 

$ mvn eviware:maven-soapui-plugin:test -DtestSuite="TestSuite 1"

 

With above configuration, it is running both test suites instead of one.

 

How to run a single test suite through maven?

 

 

  • Figured out a solution. 

     

    In pom.xml, if we want to send a test suite name as dynamic then we need to give below tag only

     

    <testSuite>${testSuite}</testSuite>

     

    And corresponding Maven command as below

    mvn eviware:maven-soapui-plugin:test -DtestSuite="TestSuite 1"

     

    Still, don't know the difference between ${testSuite} vs ${testSuiteParam}, since that acts as a variable or placeholder that can be accessed through maven argument.

     

     

1 Reply

  • Manoj0516's avatar
    Manoj0516
    Occasional Contributor

    Figured out a solution. 

     

    In pom.xml, if we want to send a test suite name as dynamic then we need to give below tag only

     

    <testSuite>${testSuite}</testSuite>

     

    And corresponding Maven command as below

    mvn eviware:maven-soapui-plugin:test -DtestSuite="TestSuite 1"

     

    Still, don't know the difference between ${testSuite} vs ${testSuiteParam}, since that acts as a variable or placeholder that can be accessed through maven argument.