在Ubuntu上使用Postman創建自動化測試,可參考以下步驟:
npm install -g newman
pm.test("Status code is 200", function() { pm.response.to.have.status(200); });
newman run your_collection.json