M_McDonald
14 years agoSuper Contributor
Execute test case from load test setup with parameters
Hi -
I have the following code in a load test setup script,
The called test case has some properties that determine how it executes. Is it possible to pass parameters to the test case to modify those values (like the Run TestCase step does?)
Thanks.
I have the following code in a load test setup script,
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext
def genData = loadTestRunner.loadTest.testCase.testSuite.project.getTestSuiteByName('Reusable Test Cases').getTestCaseByName('Generate Applicant Data')
WsdlTestCaseRunner runner = new WsdlTestCaseRunner(genData, null)
log.info("Running test: " + genData.name)
runner.start(true)
runner.waitUntilFinished()
The called test case has some properties that determine how it executes. Is it possible to pass parameters to the test case to modify those values (like the Run TestCase step does?)
Thanks.