How to check the contents of a zip file in a newman test?

Hey guys,

I have an API that returns a zip-file containing several xml files, and I’d like to use newman to check the contents of the zip file, and if possible also of the xml files inside.

I’m not really familiar with node.js and javascript, snd that’s why I turn to you. What I’ve tried so far is to require zlib
const zlib = require('zlib');
which fails because it can’t load the module (due to sandboxed environment I guess).

Can someone point out how if it works, and how?

Thanks a lot!

You are correct, the sandbox doesn’t load zlib.

You would need to download the zips to your machine and view them using an appropriate tool.