zoukankan      html  css  js  c++  java
  • 在Assertion中获取Response的headers,获取headers中信息,获取body(content)

    // get the  headers of the request
    def content= messageExchange.getResponseContent()
    def headers = messageExchange.getResponseHeaders()
    log.info headers


    //get the Content-Type of the headers
    def contentType= headers["Content-Type"][0]
    log.info contentType

    log.info content.contains("<error")

  • 相关阅读:
    3-8
    3-7
    3-5
    3-4
    3-3
    3-2
    3-1
    2-11
    2-10
    2-9
  • 原文地址:https://www.cnblogs.com/kill0001000/p/5381803.html
Copyright © 2011-2022 走看看