cancel
Showing results for 
Search instead for 
Did you mean: 

Enable SoapUI tests to call test cases in other projects

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.

2 Comments
Contributor

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())

 

Moderator
Status changed to: Accepted for Discussion

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

Announcements
Welcome to the ReadyAPI Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements