木吟

导航

获取当前TestStep发送的request信息

在当前test step的Script Assertion里添加

// Get request url
def requestURL = messageExchange.getEndpoint()
// Get request body
def requestBody = messageExchange.getRequestContent()
// Get request headers
def requestHeaders = messageExchange.getRequestHeaders()

 

posted on 2018-12-07 17:10  木吟  阅读(226)  评论(0编辑  收藏  举报