Forum Discussion
New2API
Frequent 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
7 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.
Related Content
- 2 years agochip1914