Forum Discussion
3 Replies
Sort By
- New2APIFrequent 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.
- SriniMarva27Occasional 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.
- nmraoChampion Level 3if use script assertion for the same request test step then below should do:
log.info context.rawRequest
Related Content
- 2 years agochip1914