![]() ![]() There are other methods used, but these five are the ones most commonly used.Ī request is sent to a Request URL, which is formed of a website’s base URL and the endpoint (the point where your request will end up and from which we get a response). These requests are based on HTTP methods that the API uses for CRUD (create/read/update/delete) operations: GET for reading or getting data from API, POST for creating new data PUT which sends data but also edits data that have changed, PATCH for editing individual resource data, and DELETE for deleting data. The main part of any API testing is setting up requests (or calls) and testing them either manually or by adding test scripts (and eventually automating those tests). and the lower screen, which shows response properties like status code, response body, test results, or Postman console. ![]() The application interface shows your workspace and consists of: side menu with collections the main view where you configure requests, with tabs for specifying headers and parameter settings, the body of a request, test scripts, etc. After installing it, you can then create an account and log in. Postman can be freely run in a browser or used as a standalone desktop application. What we test is the connection and the responses we get. In Postman we send requests to connect to an API and we communicate with its servers in order to receive responses. The reason why it’s so popular is the advantages it has over other tools: it is easily accessible and open source, with a lot of existing support, it features collections, environments, and collaboration, test creation, automation, support for continuous integration, etc.Īs testers, we use Postman to interact with web-based APIs. Postman is the leading platform for API development and one of the most popular low-code API testing tools. This blog will describe basic API testing using our preferred tool - Postman. In the first blog on API testing, we introduced API testing in general. ![]()
0 Comments
Leave a Reply. |