🎪 놀고있네/Postman
[Postman] Test Script 사용하기 - jsonBody
냥장판
2021. 9. 30. 10:30
반응형
status, jsonBody 사용해보기
Test 탭에 스크립트 작성 후 Send 버튼 클릭
pm.test("response is ok", function () {
pm.response.to.have.status(200);
});
pm.test("response body has json with form data", function () {
pm.response.to.have.jsonBody('form.foo1', 'bar1')
.and.have.jsonBody('form.foo2', 'bar2');
});
Raw 데이터 추출
Send 버튼 클릭
https://learning.postman.com/docs/writing-scripts/test-scripts/
Home
Postman Network Browse APIs, workspaces, and collections inside Postman. Explore Postman
learning.postman.com
반응형