pm.*|pm.* API
pm.test("aNameOfTestAsString", function(){/*"This function is to return a boolean value" */})
Note:pm.test() can only used in Tests field after the primary requests sent out.
pm.expect(pm.response.text()).to.include("string_to_search_in_response_body")
pm.response.to.be.*pm.response.to.have("response_body_all")
pm.environment.set("key", "value")
pm.environment.get("key")
tests[ "String to print out if true " ] = pm.*API();
console.log("Print out this string to the postman console ==>View==>show postman console")
【pm.*|pm.* API】tests[ "Status code is 200" ] = pm.response.to.have.status(200)
推荐阅读
- 2020-04-07vue中Axios的封装和API接口的管理
- 【译】Rails|【译】Rails 5.0正式发布(Action Cable,API模式等)
- ElasticSearch6.6.0强大的JAVA|ElasticSearch6.6.0强大的JAVA API详解
- 前端开发|Vue2.x API 学习
- 简易有效Api接口防攻击策略
- 如何在Kubernetes|如何在Kubernetes 里添加自定义的 API 对象(一)
- fastapi教程翻译(一)(了解FastAPI结构)
- BLAS|BLAS API 中文文档(2)(待续)
- 1.前端引入jeDate日期控件
- 基础3-API-值传递