postman-bdd icon indicating copy to clipboard operation
postman-bdd copied to clipboard

Run postman BDD on newman

Open Gans79 opened this issue 7 years ago • 2 comments

Hi , How does npm install postman-bdd work ? Can I avoid call to bigstick to get the .js bdd code ?

Gans79 avatar Feb 15 '18 04:02 Gans79

I’m having issues called external URL thru Newman so cannot include Install Postman Bdd step as first request in collection

Gans79 avatar Feb 15 '18 04:02 Gans79

npm install is just a way to get the code locally on your computer. Or you could just clone the Git repo. Having it locally on your computer is useful for situations like yours where you can't make external HTTP requests. You could start a local HTTP server that serves the Postman-BDD javascript file, and then include a request to "http://localhost/postman-bdd.js" in your collection. Or you could just skip the HTTP request altogether and just copy-and-paste the contents of the postman-bdd.min.js file into a global variable in Postman.

JamesMessinger avatar Feb 15 '18 13:02 JamesMessinger