Value become undefined when run via cmd

When I am sending data via postman it works fine but it become issue when I run the same test in cmd


Hi Hassan,

This is one of possible causes for the problem you are facing .

Newman only uses Initial Values, where as Postman uses Current Values.

Open the Manage Environments and select the appropriate Environment Template and select Persist All values.

This replaces the Initial Values with Current Values.

now Update the Environment and Export to it local system (replace the existing Environment.JSON).

and check with Newman.

1 Like

Thank you. I actually figured out. It requires cookies from WebApp