![]() Once Postman has been added to your browser, we can use the Postman interface to make calls to the Property Search Engine API. The Postman website also includes documentation and features of the app if you’re not familiar. If you already have Chrome installed, head over to the Postman website which provides a link to the Chrome web store where you can download and add the Postman Chrome extension. To use Postman, you will first need to install Google Chrome. As always, if you have any questions, feel free to contact us. We will walk you through how to use Postman and make some basic requests. What is Postman? Postman helps you be more efficient by allowing you to construct complex HTTP requests quickly, organize them in collections and share them. This post will walk you through how to use one our favorite tools, the Postman Chrome extension. Today, we wanted to share a tool we use internally as part of our testing suite that can help make your life easier when consuming APIs. Not sure if this makes things any clearer but let me know and I will try to focus more on areas that you are having trouble with.ATTOM Data recently launched its BETA version of a Property Search Engine API and Developer Platform. Now you can run though the loop of collections as another execute shell command. You can do this for each collection you need to pull down or add some logic here to loop though and get them but this is just a quick walk though, so keeping some logic out of this. H 'x-api-key: 1idxvfcbpanc4ydm9vdah28j8rwmm08n' > environment.json Then get your env template, if you are using them: curl -X GET \ H 'x-api-key: 1idxvfcbpanc4ydm9vdah28j8rwmm08n' > collection.json So a quick and dirty way to me would be to add in an execute shell command to get your collection: curl -X GET \ You can do this by simply adding in Execute Shell commands in your Jenkins job. Like if you wanted to kick off a few runs at once or call something else.īefore you do this though you will prob want to have something in your Jenkins build job that calls the Postman API to get the collections you want and place them in a specific folder. So from this you can add in other things to the for loop if you wanted. This is good practice if you plan to execute in more than a single env as then you wont require multiple scripts, one for each env. $ is the name of the environment I am running it against, I have different environment templates for each supported env I want to run against. There is also a parameter I am passing in here as well. So what I am doing here is just doing a for loop against a directory, that contains my collections. ![]() # Loop though each collection in the folder. ![]() So here is an example of a bash script I have that does something like that: #!/usr/bin/env bash Hope this helps and let me know if you have any So I had to think about this a bit as I am sure there are a few ways you can accomplish this.ĭepending on what you are looking to do exactly I would say you would just need to loop though things. Not perfect by any means but got the job done for me. This basically kicks off 3 runs at the same time, executing the exact same collection against the same environment. Newman run postman/smoke-test/collection.json -e postman/smoke-test/environments/staging.json Newman run postman/smoke-test/collection.json -e postman/smoke-test/environments/staging.json
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |