标签:
// get the headers of the request
def response = messageExchange.getResponseContent()
def headers = messageExchange.getResponseHeaders()
log.info headers
//get the conLength of the headers
def conLength = headers["Content-Type"]
// get the string conLength , exclude the []
log.info conLength
在Assertion中获取Response的headers,获取headers中信息
标签:
原文地址:http://www.cnblogs.com/kill0001000/p/5381803.html