This is an example taken from Dockerhub using the postman/newman_alpine33 image:ĭocker run -t postman/newman_alpine33 run It's really simple to get your Postman collections running with the image, straight from the command line. Postman has it's own official Docker Image on Dockerhub with instructions to get you set up and started. I've created an example based repository for anyone to get an idea of how to start using your Postman Collections, created in the within the application and run these using a Docker Image. Docker is by no means a new technology but it is newish to me so I'm kind of 'learning by doing' and creating something that works but can be updated once my own Docker knowledge increases, you have to start somewhere :). This is where using Docker comes in handy, you can use pre-defined Images that contain everything you need to run the checks, without the need to install lots of different dependencies onto your local machines. I have nodejs installed on my local machine so it's easy for me to globally install newman and crack on with running the checks but some folks won't have this and probably don't want to install nodejs on their machine. Postman is awesome, building and running your checks through the built-in collection runner is amazing but what I like to do, once I have a stable set of requests, is to export my Collection and Environment files from the application and run them in the command line using Newman.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |