Forum Discussion
deggial
12 years agoOccasional Contributor
It looks like part of the problem related to setting credentials is solved with this code:
Still need to:
1. Address test case properties instead of test suite, should be trivial.
2. Apply this code only to WS steps meeting certain criteria, anyone knows how to get full wsdl pathes in groovy script?
3. Being able to get values from different rows of excel document, so far it looks like there is no built in functionality in groovy. Any suggestions?
import com.eviware.soapui.impl.wsdl.teststeps.*
for( testStep in testRunner.testCase.getTestStepList() ) {
if( testStep instanceof WsdlTestRequestStep ) {
testStep.getTestRequest().setUsername(testRunner.testCase.testSuite.getPropertyValue("username"))
testStep.getTestRequest().setPassword(testRunner.testCase.testSuite.getPropertyValue("password"))
}
}
Still need to:
1. Address test case properties instead of test suite, should be trivial.
2. Apply this code only to WS steps meeting certain criteria, anyone knows how to get full wsdl pathes in groovy script?
3. Being able to get values from different rows of excel document, so far it looks like there is no built in functionality in groovy. Any suggestions?
Related Content
- 6 years agorg2018
- 4 years agoryanterronez
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow