![]() We want the expected status code equal to 200 and response in JSON format which includes weather description of the city in its own language. We can visit the Postman Learning Center to learn how to write the tests in Postman. Once we’ve inputted the URL address, we can write the tests (replacement of Response Assertion in JMeter). We will also input the variable called: as language. Under it, we can spot the Params (adding the params to query), Authorisation (the same as in Collection), Headers (in receiving responses), Body, Pre-request Script, Tests, and Settings. Adding requestĪfter the adding request, we can see the Method selection (GET, POST, PUT, PATCH, DELETE, etc.), URL address, and SEND button. Now we can create the request by clicking Add Request. We’ve uploaded the file in our Collection Runner and we can see that Iterations number has changed to 20, because we have 20 cities in the list. We’re choosing the file by clicking the Select file next to Data label and we’re selecting the CSV file. To do that we need to click Runner on the bottom. In the first line of the CSV file, we will find our variable names, which we will use in Postman to put data into URL address. An example of CSV File (we will use this file in our Collection) We can create CSV file for example in Microsoft Excel and save it in CSV format. It’s easier than inputting the data manually. CSV Files is the file that includes data to input them into the file. We’ve created the variables and now we will upload the CSV File to our collection. This last one we will use just now to create the variable of the URL address and 3 more variables which I will explain soon. Once we’ve created the collection we can see the items under the name: Authorisation (we can input the API Key, Bearer Token, etc.), Pre-request script, Tests, and variables. We will use CSV File as a source of data and variables to put them into the URL address. We will create a collection which will include weather description of cities on their own languages using Open Weather API. Now we can create a collection in Postman (replacement of Thread Group in JMeter). We can take a look on the top left corner, there are from left: Home (Dashboard), Workspaces (List of workspaces), Reports (online) and Explore (the API Network), Search Postman, Capture Requests and cookies with Postman, settings, notifications manage accounts and upgrade option. Once we’ve clicked the Download App button, the app will be downloaded in. ![]() We can use Postman both online and download the app to our desktops.įor using Postman app we need to download the app from the official Postman website. This time we will focus on the Postman tool, which is a very good tool for API Testing. ![]() We’ve told in the last post about performance testing with JMeter but JMeter can be used for API testing as well. What are most popular tools for API testing?Īs far as we know what is API testing and why do we test API, we can tell ourselves about the most popular tools for API Testing. We test API to determine if they meet expectations for functionality, reliability, performance, and security. What is API testing?ĪPI testing is a type of software testing which includes testing APIs directly and as part of integration testing. It is a software intermediary that allows two applications to talk to each other.Įach time when we use an app like Facebook, send an instant message or check the weather on our phone, we’re using an API. What is API?ĪPI is the acronym for Application Programming Interface. In this post, we will jump to API Testing using Postman but from the beginning. Two posts ago we’ve told something about JMeter, we’ve installed JMeter and conducted a simple performance test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |