![]() ![]() generating timestamps, transforming strings, …), request-chaining, response history, code snippet generation in 12 different languages, working with proxies, JSON filtering on the responses, and many more …. Other nice features are the template tags (which are more like operations you can call, e.g. You can structure all you tests by creating a hierarchy of different environments with separated variables which can be easily referenced by autocompletion anywhere within the tool. It contains all basic features to test REST API’s like creating HTTP requests with the possibility to add headers and authentication or grabbing the response and view the status, body, headers and cookies. It is a powerful cross-platform REST API client which is very easy to use and has a well thought-out and user-friendly UI. Insomnia is one of those lesser known API tools. SoapUI, Postman and Rest-Assured are the most popular ones, but there are many other tools, each with their own features and specifications. There are lots of API testing tools available on the market, some of them are free, others require a license. API testing is much faster and more reliable than UI-based tests, thus more appropriate to receive fast feedback. So, using these UI tests in continuous builds might not be the most appropriate approach to receive fast feedback. UI tests tend to run horribly slow, are brittle and hard to maintain. It increased the application’s release frequency, which demands for new ways to receive fast feedback on the quality to these releases. As agile development is becoming the standard in most organizations, if influences the way we develop software and automate tests. ![]() The main reason for this shift to API testing is, off course, the Internet of Things, but also agile development has had a big influence. If viewing timelines of the requests you send is important to you, then you should go with Insomnia however, if that doesn't matter, just choose the one that has the most intuitive interface for you.Nowadays API testing is becoming more and more important. The application you choose to use is completely up to personal preference, and will not affect your development workflow. This'll bring up the Manage cookies window, where all cached cookies can be viewed, edited, or deleted. To check whether or not some cookies associated with a certain request have been cached, click on the Cookies button at top of the list of requests: This might result in you receiving a difference response within your scraper from what you're receiving in Insomnia, as a necessary cookie is not present in the request sent by the scraper. ![]() Insomnia keeps the cookies for the requests you have already sent before. In preferences, scroll down to the HTTP Network Proxy section under the General tab and specify the full proxy URL there: In order to use a proxy, you need to specify the proxy's parameters in Insomnia's preferences. This feature allows you to see information about the request that is not present in the response body. The one feature of Insomnia that separates it from Postman is the Timeline. ![]() This section also has the Headers and Cookies tabs, which respectively show the request headers and cookies. Like in Postman, the request can be viewed in preview mode, pretty-printed, or in its raw form. Where the response body is displayed after the request has been sent. Here, you can add a request payload, specify authorization parameters, add query parameters, and attach headers to the request. The place where you select the type of request to send ( GET, POST, PUT, DELETE, etc.), specify the URI of the request, and send the request with the Send button. They are automatically saved in the list of requests until deleted. You can configure multiple request with a custom payload, headers, cookies, parameters, etc. Let's break down the main sections: List of requests After creating the request, you'll see an interface that looks like this: The Insomnia interface Īfter opening the app, you'll first need to create a new request. Insomnia can be downloaded from its official website, and its features can be read about in the official documentation. One difference is that Insomnia also allows you to see the whole timeline of the request. Like Postman, Insomnia allows you to send requests with specific headers and cookies, to add a request payload, etc. There are some small differences between them, though. If you've already read about Postman, you already know what Insomnia can be used for, as they both do practically the same exact things. Rather, it is a tool to build and test APIs. Learn about Insomnia, a simple yet super valuable tool for testing requests and proxies when building scalable web scrapers.ĭespite its name, the Insomnia desktop application has absolutely nothing to do with having a lack of sleep. ![]()
0 Comments
Leave a Reply. |