Forum Discussion
nmrao
8 years agoChampion Level 3
In your case, messageID is response header.
You can use below Script Assertion to retrieve the same:
def msgId = messageExchange.responseHeaders['messageID'][0] log.info msgId assert msgId, 'messageID is empty or null' context.testCase.setPropertyValue('MSG_ID', msgId)
In later steps (of the same test case), wherever messageID is needed, use ${#TestCase#MSG_ID}
Related Content
- 9 years ago
Recent Discussions
- 23 days ago