Forum Discussion
PaulDonny
10 years agoRegular Contributor
MPleas wrote: Oh! Yes, I see. You are right. I don't need to use PropertyTransferTestStep at all. I didn't notice those property inherited methods for teststep on the documentation. So this works just fine, which I will shortly change to be a loop.
def propTxfr = tStep.getTransferAt(0)
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()
Many, many thanks!
Not using "PropertyTransferTestStep" is a stretch. The tStep variable is a PropertyTransferTestStep object. You just didn't need to create a new one.