Forum Discussion
PaulDonny
10 years agoRegular Contributor
I have a feeling it is because you are just creating a PropertyTransferTestStep and not the actual PropertyTransfer. Is there a reason you are initializing a new PropertyTransferTestStep and not just using the one that already exists (tStep)? If you change your code to the following, it works.
Edit:
Based on your first question I think I have put the pieces together.
Here is some updated code that should work.
import com.eviware.soapui.impl.wsdl.teststeps.*
def tCase = testRunner.testCase.testSuite.testCases[testRunner.testCase.name]
def tStep = tCase.testSteps["Property Transfer"]
log.info tCase.name
log.info tStep.getTransferCount()
Edit:
Based on your first question I think I have put the pieces together.
Here is some updated code that should work.
import com.eviware.soapui.impl.wsdl.teststeps.*
def tCase = testRunner.testCase.testSuite.testCases[testRunner.testCase.name]
def tStep = tCase.testSteps["Property Transfer"]
log.info tCase.name
for (int i =0; i < tStep.getTransferCount(); i++) {
def propTxfr = tStep.getTransferAt(i);
log.info "GetName: " + propTxfr.getName()
log.info "GetSourcePath: " + propTxfr.getSourcePath()
log.info "GetSourcePropertyName: " + propTxfr.getSourcePropertyName()
log.info "GetSourceStepName: " + propTxfr.getSourceStepName()
log.info "GetTargetPath: " + propTxfr.getTargetPath()
log.info "GetTargetPropertyName: " + propTxfr.getTargetPropertyName()
log.info "GetTargetStepName: " + propTxfr.getTargetStepName()
}
Related Content
Recent Discussions
- 3 days agoKLWallace