#Postman download chrome code#
For our call here, we expect to have 10 sales orders returned and the status code to be 200. In the right hand side, you’ll see various snippets you can use. Tests: Add test validations for when you execute your callĪfter you’ve added your username and password, press the send button and you should now see the XML in the response.Īlright now for the next bit, we can now add a test to validate the the result is as expected.Pre-request scripts: Javascript code to be executed before your call is executed.Headers: Add adidtional header values here if needed.As soon as you add it, a Header will be created for you. Authorization: Add your user name and password here as basic auth.Params: This is where you add different parameters as key value pair (Or you can just add it directly in the URL.Next to the URL, you see the http method.There is a few things to understand here: Now as soon as you’ve saved that you are in the request screen. The collection is basically a group of requests, that’s all you need to know for now. When you press that you give a name and description and create a collection called GW_Basic. To begin we will create a simple request, so just select that. I will cover the requests, collection and environment in this blog series. When you launch postman you will be presented with this screen. I’ll be using the ES5 system for creating these OData tests as I’m too lazy to develop a new service and it really isn’t the purpose of these blogs anyway. The API for writing the test scripts differs a bit, so the native is what i’m using.
This way you aren’t depending on a UI for testing if your Odata service behaves as expected.įirstly you need to download postman, there is a Chrome extension and a native app. So why would you want to use postman for this? Well it’s really simple to add these requests into Postman and write simple tests to validate whether you get the expected result. Postman is a test client for API development. So what is postman, well I’m not talking about this fella, that’s for sure. Stick tight and we will have some fun here.
#Postman download chrome how to#
I’ll add the links as I get them written.
Shh don’t tell anyone.Īs I have a lot of ground to cover i’ll split up the content into three blogs. Well truth be told, I’m not very good at Abap. I’m here to show a bit of a different approach to doing CI for your Odata development. There has been a lot of buzz lately around using abap unit test and CI etc etc etc.