Forked from dariayermolova/postman pre-request script (get)
Created
May 13, 2021 10:59
-
-
Save vitaliiSmokov/f13005be726e0f5906fb36291d7985f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pm.sendRequest({ | |
url: environment.host + "url" + environment.a_signup + "url", | |
method: 'GET', | |
}, function(err, response) { | |
//запись в переменную ответа | |
var code = response.json(); | |
//копирование в переменную код юзера | |
pm.environment.set("code_signup", code.code); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment