You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample collection, and auxiliary files (minus the sensitive details):
Screenshots (if applicable):
Steps to reproduce the problem:
Trying to automate all APIs for a router webgui
Fetching 3 cookies using Postman interceptor called cookie1, cookie2 and lang
use cookieJar and access cookies in Tests of Request 1. Set it as a Header. Set cookie as a collectionvariable
Use the cookies in Request2
Run collection from POSTMAN -> Success
Export collection and run using newman library -> Cookiejar unable to fetch the cookies
Codesnippet of Request1:
const cookieJar = pm.cookies.jar();
const url = 'http://192.168.x.1'
cookieJar.getAll(url, (error, cookies) => {
if (error) {
console.error(error);
} else {
console.log(cookies); =>Newman returns this as EMPTY
const cookie1Value = cookies.find(cookie => cookie.name === "cookie1").value;
}
});
May i know if there is any way to access cookies in cookiejar or any other way to access the cookies.
Note: These cookies are not accessible in any API response also.
The text was updated successfully, but these errors were encountered:
Version and environment information:
-->
newman -v
):6.1.0Steps to reproduce the problem:
Codesnippet of Request1:
const cookieJar = pm.cookies.jar();
const url = 'http://192.168.x.1'
cookieJar.getAll(url, (error, cookies) => {
if (error) {
console.error(error);
} else {
console.log(cookies); =>Newman returns this as EMPTY
const cookie1Value = cookies.find(cookie => cookie.name === "cookie1").value;
}
});
May i know if there is any way to access cookies in cookiejar or any other way to access the cookies.
Note: These cookies are not accessible in any API response also.
The text was updated successfully, but these errors were encountered: