Postman set access token in Test

Posted . Visible to the public.
pm.test("Status test", function () {
    var jsonBody = pm.response.jsonBody
   pm.environment.set('access_token', jsonBody.access_token)
});
Tushar
Last edit
Posted by Tushar to Tushar's deck (2021-09-04 12:19)