首页 > 其他 > 详细

在Assertion中获取Response的headers,获取headers中信息

时间:2016-04-12 11:10:29      阅读:240      评论:0      收藏:0      [点我收藏+]

// 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!