Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Run postman BDD on newman #21

Open
Gans79 opened this issue Feb 15, 2018 · 2 comments
Open

Run postman BDD on newman #21

Gans79 opened this issue Feb 15, 2018 · 2 comments

Comments

@Gans79
Copy link

Gans79 commented Feb 15, 2018

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

@Gans79
Copy link
Author

Gans79 commented Feb 15, 2018

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

@JamesMessinger
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants