Forum Discussion
deggial
12 years agoOccasional Contributor
import com.eviware.soapui.impl.wsdl.teststeps.*
for( testCase in testSuite.getTestCaseList() ) {
for( testStep in testCase.getTestStepList() ) {
if( testStep instanceof WsdlTestRequestStep ) {
testStep.getTestRequest().setUsername(testSuite.getPropertyValue("username"))
testStep.getTestRequest().setPassword(testSuite.getPropertyValue("password"))
}
}
}
Can you please advise how can I adopt this code on the test case level as groovy script? (it works on test suite level as setup script - http://thewonggei.wordpress.com/2010/08/05/configure-http-basic-auth-once-for-soapui-test-suties)
I removed testSuite related part and added imports missing on test case level, but get
groovy.lang.MissingMethodException: No signature of method: static com.eviware.soapui.model.testsuite.TestSuite.getTestCaseList() is applicable for argument types: () values: []
Related Content
- 6 years agorg2018
- 4 years agoryanterronez
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow