Buschfunk
14 years agoFrequent Contributor
Change request properties globally with scripting
Hello,
I need to write a "setup script" which initializes the test suite with certain property values. To be more precise, the script shall get all test steps of type "Request" and
So far, this is what I got:
However I cannot find the correct methods for doing this.
Sincerely,
weeman
I need to write a "setup script" which initializes the test suite with certain property values. To be more precise, the script shall get all test steps of type "Request" and
- set the endpoint to a certain value
- set the SSL keystore to a certain value
So far, this is what I got:
def testSuites = testRunner.testCase.testSuite.project.getTestSuiteList()
testSuites.each {
def testCases = it.getTestCaseList()
testCases.each {
def requests = it.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep)
// TODO: Set endpoint and SSL keystore
}
}
However I cannot find the correct methods for doing this.
Sincerely,
weeman