在Ubuntu上使用Postman创建自动化测试,可参考以下步骤:
npm install -g newman
pm.test("Status code is 200", function() { pm.response.to.have.status(200); });
newman run your_collection.json