RBlack's avatar
Occasional Contributor
8 years ago
Accepted for Discussion

Enable SoapUI tests to call test cases in other projects

AFAIK for SoapUI versions up to 1.8.0, the calltestcase step only supports calling test cases within the same project.


We have hundreds of utility test cases in a large project with ~1000 application level test cases that use them.  We also have another project containing tests that need to call the same utility test cases.  Currently we have to maintain two copies of the utility test cases because the second project cannot call into the first.


Instead, we would like to have one SoapUI project containing the utility test cases, and multiple other projects containing the application level test cases that call into the utility tests.  Then we would not need multiple copies of the utility test cases, which is a maintenance headache.


So we'd like to request a SoapUI enhancement to support calling test cases in other projects.  That would reduce our maintenance efforts considerably.


  • On https://www.soapui.org/scripting-properties/tips-tricks.html


    I found the following tip:

    15. Run a TestCase located in another project

    def prj = testRunner.testCase.testSuite.project.workspace.getProjectByName("ProjectName")
    tCase = prj.testSuites['TestSuiteName'].testCases['TestCaseName']
    tStep = tCase.getTestStepByName("TestStepName")
    def runner = tStep.run(testRunner, context)
    log.info ("runner status ....... : " + runner.hasResponse())


  • Nastya_Khovrina's avatar
    SmartBear Alumni (Retired)
    Status changed:
    New Idea
    Accepted for Discussion

    There is an existing feature request for this in our DB (Internal ID: RIA-4319)