JamesMessinger / postman-bdd

A BDD test framework for Postman and Newman
http://www.getpostman.com
MIT License
140 stars 29 forks source link

Run postman BDD on newman #21

Open Gans79 opened 6 years ago

Gans79 commented 6 years ago

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

Gans79 commented 6 years ago

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

JamesMessinger commented 6 years ago

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.