|
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); |
|