hi ,
need help for  the calculations of GET APIs.
1>Step1 : GET - Current Balance 
2>Step2 : POST -Fund 
3>Step3 : GET NEW Balance
how can I calculate the responses  and get the current balance and new balance after funding.
Using the following code.
def currentStepInd = context.currentStepIndex
def previousStep = testRunner.testCase.getTestStepAt(currentStepInd - 1)
myRequestStep = testRunner.testCase.getTestStepByName(previousStep.name)
request = new String(myRequestStep.testRequest.messageExchange.rawRequestData)
response = new String(myRequestStep.testRequest.messageExchange.rawResponseData)
log.info("Request of API: " + request);
log.info("Request of API: " + response);