Forum Discussion

wanpet's avatar
wanpet
New Contributor
15 years ago

Call test case

Hi,

Is it possible to create a test step that calls (runs) a testcase from another soapUI-project?

Best regards
Wanja
  • Nisha_Shah's avatar
    Nisha_Shah
    Occasional Contributor
    Hello,

    I would also be very interested in knowing how to do this. I am using soapUI-Pro 4.0.1

    Thanks,
    Nisha
  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    would you like to call a test case from another test project? that means you have 2 projects, and you want to create a test step to call a test case in which it's created in another test project, right? this is a challenging question, but I have not found the solution yet. here show a groovy step to call a test case beneath the same test project


    import com.eviware.soapui.support.types.StringToObjectMap
    def step = testRunner.testCase.testSuite.getTestCaseByName("TestCase Name")
    step.run(new StringToObjectMap(context), false)