在Ubuntu上使用Postman的Tests功能,可参考以下步骤:
sudo snap install postman --classic
pm.test("Status code is 200", function() { pm.response.to.have.status(200); });