Forum Discussion

mpajerek's avatar
15 years ago

How to run multiple suites from multiple projects from ant

Hi,

I have this script that lunches one project :
<target name="test">
<exec executable="${soapui.bin.dir}/testrunner.sh"
failonerror="yes"
failifexecutionfails="yes">
<arg path="test.xml"/>
</exec>
</target>


which works fine. But I want to be able to run from ant all my projects in one go (they are all in the same folder, though).

This is the most similar thread I've found:
viewtopic.php?f=5&t=2323

Should I be looking at something along these lines or is there an obvious way I'm missing?
any help will be greately appreciated
cheers
m

1 Reply

  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    I understand that this is quite old. Are you able to achieve what you intended?

    You can write a macrodef(like a function) which does the execution(the same stuff what you defined in the target), it will have parameters of soap project name.

    Have multiple targets defined which makes a call to macrodef by passing the name of suite if application, and soap project file name.

    On top define a target say all and mentioned all targets to be called in the sequence you needed.

    Hope this helps.