Run Test Case From Another Project

Applies to ReadyAPI 3.7, last modified on April 08, 2021

This topic describes how to use Groovy script to run a test case from another project.

Where to use

There are two ways to run this script:

Example

Groovy

// Replace names of a project, test suite, and test case with those you need.

// Connect to the test case in another project.
def project = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("ProjectName") def testSuite = project.getTestSuiteByName("TestSuiteName") def testCase = testSuite.getTestCaseByName("TestCaseName")

// Run the test case.
runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false)

See Also

Run Test Step From Another Project
Groovy Script Test Step
Groovy Scripting Samples
Scripting

Highlight search results