clean test -Dsoapui.test-suite=My Test Suite
I run my project by above command and test suite is set in configuration block in pom.xml
<testSuite>My Test Suite</testSuite>
By passing comma separated values to test suite it runs only last test suite mentioned in that string.
Yeah of course removing testSuite property and running multiple builds will run my multiple test suites.
My project has 10 test suites and user can run more than 1 test suite at a time, not necessarily he/she wants to run all 10 test suites. Leaving testSuite property empty will run full project.
Ok. Are your tests independent? then see if the below link, of maven running parallel, helps.
Yes my test are independent and my company 100s of APIs projects, each project is 1 build in POM on which i run test goal of maven to run my project. In same build block i wanted to have flexibility if full project should run or selected test suites.
Thanks for your prompt replies though.
did you figureout how to run multiple testsuites( specifc testsuites) i have 13 test suites in 1 project. but i want to to run specifically 3 through using maven
@harry Had to apply hack.
I am assuming you are passing names of test suites/cases to run to testRunner or maven command.
In Before Project Run Event Handler, capture test suite/case names. Iterate full project and disable every test suite/case dynamically which does not match your input.
Let me know if you got the idea.
I had logic disable the testsuites based on a property in the ( project. properties file). But through maven command i want to run particular test suites . Please, find the attached pom.xml