Forum Discussion

Shilpa19's avatar
14 years ago

How to run all test suites in all projects in one click in S

Hi,

i want to run all the test cases in all the test suites of all the projects in one click.
i used the below script::

for(project in com.eviware.soapui.SoapUI.workspace.projectList) {
if(project.open && project.name != testRunner.testCase.testSuite.project.name) {
log.info "Running project: " + project.name
project.run( null, false )
}
}

it is running all the projects... but i am not able to see the results of any test case.
i want to write the results in a file. i.e. want to generate a report for all the projects.
i am using soapUI3.6.1

Is it possible to achieve this in soapUI3.6.1 or do i need soapUI Pro?
And if soapUI Pro.. then how to achieve this in soapUI Pro?

Please help.

Thanks
Shilpa

1 Reply

  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    Hi Shilpa,
    i think you can get cmd line to run your all test suites using test runner (testSuite-->Launch TestRunner)

    run all test cases: (update test suite name and project name in real project)
    set SoapUIPath="C:\Program Files\eviware\bin"
    %SoapUIPath%\testrunner -r -sTestSuiteName %TestScriptPath%\soapui-project.xml

    save the script as .cmd

    thanks,
    Aaron