postman—Runner的使用

1.首先在postman新建要批量運行的接口文件夾,新建一個接口,並設置好全局變量。 2.然後在Test裏面設置好要斷言的方法 如: pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Body matches string", function () { pm.expe
相關文章
相關標籤/搜索