When it comes to automation, it will require a proper setup and some effort to get things ready to go, however, you won’t ever need to run your tests or regression suite manually again. The term ‘API Testing’ is often used, but most of the time this kind of testing is done manually. Delving into this consideration to automate or not would require multiple factors. Although automation itself has a cost, you can calculate your ROI and validate if it’s suitable for your situation or not. What about the cost? Reducing human effort, resources, and time can definitely generate a more favourable return. Lesser amounts of human interaction required and less time taken to get processes completed are examples of many factors being affected by automation. The reduction of effort can come in many shapes. By automating these processes, you are reducing the amount of effort required, compared to when they were manually performed. From that, you can clearly see why we do automation and its benefits. We will give a quick brief surrounding each topic and provide some resources for your reference.Īs the name itself suggests, automation is the process of transforming something that was previously manually performed, into something that is automatically performed. If you aren’t familiar with any of the mentioned topics, don’t worry. Additionally, we will use Postman when we begin working on the demo. In this blog, we will be talking about API automation within the field of testing. There are so many types of automation, and there are also many fields where automation is involved. Pm.Nowadays, you would hear a lot about automation and how it’s heavily involved in all aspects of software development now. Here is an example test case that I have used to demonstrate the testing. The Postman Sandbox is a JavaScript execution environment that is available to you while writing pre-request scripts and test scripts for requests you make via postman. Now we are going to write a simple test for this request URL. If there’s something missing the system will throw error. If you have set the request header and the passed the required parameters the post man will display the response of the request you made as below. ![]() You can learn about it from link belowĪfter entering URL and setting up the request headers,click on the Send button to execute the API call. URL : Now Before entering request URL ,one should have knowledge about basic. Now you need to enter the request/API URL here in my case I have this demo Once you have completed the above step you would be able to see something like shown in the image below. Step 4: If you want you can enter a brief description and save the request. Ideally it would be the project name and underneath that you may create folders if you want to group your requests by the features that you are working on. Click that button to create the collection under which you could group your request. Step 3: If you see at the bottom part of the form you will see a clickable textual button that say “Create collection”. Ideally you like to use a common naming convention. Step 2: Enter an appropriate request name. But if you are a returning user you would find a button “New” on the top left corner of the system to add new request. As you are entering the postman for fist time you would be presented with this wizard. Step 1: Click the request button in the dialog shown below. Once you have successfully completed the installation you would need to Signup or Sign in into the application to access it. Lets begin with Quick tour for Postman How to Install Postman ?Īfter downloading, install it and after installation the first look will be as below
0 Comments
Leave a Reply. |