Newman: "identifier has already been declared at test-script"

Hey @cpaye :wave:

In previous versions of Postman certain keywords were used in a global scope to access certain items like responseBody or data.

Users would use them like this but these are now deprecated.

As that name has a declaration as a global keyword, it’s likely to be causing the error as you’re trying to reassign it.

Changing your variable name to resBody or something else will remove that error you’re seeing from Newman.

1 Like