# Postman ##### 參考: - [Postman - 測試 API 神器 1/2](https://ithelp.ithome.com.tw/users/20111449/ironman/1767) - [Postman - 測試 API 神器 2/2](https://ithelp.ithome.com.tw/articles/10201528) --- ## 筆記 - 可將Swagger import 到Postman step1: 複製下圖橘框  step2: 點選下圖紅框Import step3: 點選下圖紫框Improt From Link並貼上連結  step4: 點選上圖橘色按鍵Import,即可匯入。 --- - 如果不確定參數應填在哪個地方(Parameter、Body...可以參考Swagger的Parameter Type)(可看參考連結"Postman - 測試 API 神器 1/2") #### postman  #### Postman結果  #### swagger  - 可用Tests Tab來驗證Response是否為預期  - 可以用Pre-request Script Tab來做事前的處理(e.g., 等待20秒再送出Request等等)  - 使用Collection Runner做一系列的測試 (e.g., 掛單並取消掛單: 登入->掛單-(等待20秒後)>取消掛單)  - 使用環境變數 -- Environment variable: 只在單一collection裡面有效 -- Global variable : 所有collection共用  ---
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up