Answer the question
In order to leave comments, you need to log in
How to repeat Postman request in tests?
I want to write several tests for one request with changing input data. How to repeat the request after the test is completed?
pm.test("Если при регистрации не заполнены поля", function () {
pm.expect(pm.response.json().message).to.eql("Введены не все данные");
})
pm.collectionVariables.set("regist_username", "Тест");
pm.collectionVariables.set("regist_email", "Тест");
pm.collectionVariables.set("regist_pass", "Тест");
pm.collectionVariables.set("regist_repeatpass", "Тест");
// Как повторить запрос?
pm.test("Проверка латинских символов", function () {
pm.expect(pm.response.json().message).to.eql("Используй для логина латинские буквы, подчеркивание и цифры");
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question