Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // JSON Parsing the Response
- import groovy.json.JsonSlurper;
- def jsonBody = new JsonSlurper().parseText(messageExchange.response.getContentAsString());
- def recivedCustomerOrderRef = jsonBody.customerOrderRef;
- // getting the test suite property
- def sentCustomerOrderRef = messageExchange.modelItem.testStep.testCase.testSuite.getPropertyValue("customerOrderRef");
- // asserting
- assert sentCustomerOrderRef == recivedCustomerOrderRef;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement