📜  api中的方法链接-任何代码示例

📅  最后修改于: 2022-03-11 14:59:19.590000             🧑  作者: Mango

代码示例1
// given part -- RequestSpecification
     // you can add information like header, query param, path var, body
     // if this request need authentication , it also goes to give section

// when part --- Send Request(GET POST PUT DELETE)
      // --Get response

// then part -- ValidatableResponse
      // this is where assertions start
      // you can chain multiple assertions
      // if any assertions fail , whole test fail.