Forum Discussion

wilzer's avatar
wilzer
New Contributor
11 years ago

Is there a way to do parallel testing through Ant scripts?

Hello,

I am trying to run a parallel test using only Command Line or Ant Scripts. I understand that it is possible through the SoapUI GUI, but I need to do this through Ant scripting in order to get automated builds in Jenkins. From a high level, I need to be able to automate tests in parallel instead of sequentially. If anyone has a scripting solution to this, it would be greatly appreciated.

2 Replies

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    Not sure how the test are run currently using ant in your case.

    For eg, assume that there is a target defined in the script which can run all the suites of a soapui project xml.
    Just try opening the soapui project xml, navigate to test suite, you may notice something like below, try to change the runType element value to PARALLEL and see your target works as expected. Then do same change for all the suites you wanted to run in parallel mode.

      <con:testSuite name="MasterSuite" id="edf5d87a-86f0-4d11-b36e-1e54c45304a6">
    <con:settings/>
    <con:runType>SEQUENTIAL</con:runType>
  • wilzer's avatar
    wilzer
    New Contributor
    This may be what I'm looking for. Does this apply to load testing too? I should have specified, I'm mainly concerning with load tests.