51Testing软件测试论坛

标题: postman basic knowledge [打印本页]

作者: starryEstrella    时间: 2018-4-29 18:14
标题: postman basic knowledge
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);
作者: 181lzx    时间: 2018-4-30 20:40
你想干啥




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2