Forum Discussion
New2API
8 years agoFrequent Contributor
SriniMarva27, did you try
def TestStep = context.getCurrentStep()
def RestStepName = TestStep.getLabel()
context.expand('${'+RestStepName+'#RawRequest}')
or simply
context.expand('${MyTestStepName#RawRequest}')
I think this one will give you only payload information.
SriniMarva27
8 years agoOccasional Contributor
log.info "Request is: "+context.expand('${GetRebates#Request}')
log.info "Raw Request is: "+context.expand('${GetRebates#RawRequest}')
Both the lines of code returns me the same content.