51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 1207|回复: 1
打印 上一主题 下一主题

[原创] postman basic knowledge

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2018-4-29 18:14:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Part 1: Installation
Download postman from the website and execute the exe file directly.

Part 2: Create new Request/Collection
A collection is a collection of multiple HTTP requests. During adding a new request, various parameters could be set as required, including URL, HEADER, also, pre-request scripts and test scripts compatible with Javascript language are supported.

Part3: Variables
Local variable: local variable is a variable defined in test script, it is effective only within current script.
Global Variable: A global variable is effective in all collections, and make sure not to name two global variables with same Names. Otherwise, only the first global variable is effective. Global variables could be managed via Environment management.
Environment Variable : Like global variable, an environment variable is effective through all collections and could be managed through environment management. the difference is that multiple groups of environment variables could be defined as required.

Part3: Automatic runner
Runner could be used to run automatic API test. It support test data import (json,csv File),iteration setting,etc.

Part 4: Json/XMl related functions
JSON.xml2json();
JSON.parse(jsonStr);
JSON.stringify(jsonObj);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-4-26 18:49 , Processed in 0.064844 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表