Forum Discussion
New2API
6 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.
- SriniMarva276 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
Recent Discussions
- 18 hours agodipsthorat
- 22 hours agoisbiat
- 2 days agoarmygrad