1.0.2 • Published 8 years ago

ttyh-nm v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Postman newman

安装

  1. 安装 nodejs
  2. 命令行执行: npm i -g ttyh-nm

使用

nm [collection file] [environment file]

  • collection file Postman 客户端导出的 collection 文件
  • environment file Postman 客户端导出的 environment 文件

例如:

nm xxx.postman_collection xxx.postman_environment

API Case 中使用

var body = globals.CryptUtil.decrypt(responseBody);

var schema = {
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "retcode": {
      "type": "integer"
    }
  }
};

tests['验证 JSON 格式'] = tv4.validate(data, schema);
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago