In this post I will share with you what I have been learning about Hoppscotch, its main features and its differences with other similar tools.
Hoppscotch is a free, open-source, and lightweight API testing tool. Its core value relies on creating and using requests in a quick manner. It is available through a web app and also has a PWA (progressive web application) version and although it does not require registration to try the service, it is convenient to save the results in the cloud.
The following chart compares the main features of Hoppsctoch with its main alternative, Postman, and also against SoapUI as one of the main tools used for API testing in the market.
|Free & Open Source||Free & Pricing||Free & Pricing|
|Web & PWA||Web & Desktop||Desktop|
– Generate Documentation.
|– API Repository.|
– API Tools.
– New Folder, Edit, Export, Delete.
– Share, Run, Add Request, Add Folder, Edit, Monitor Collection, Mock Collection, View Documentation, Export, Rename, Duplicate, Delete.
– Authorization, Pre-request script, Test, Variables.
– GET, POST, PUT, PATCH, DELETE, HEAD, CONNECT, OPTIONS, TRACE, CUSTOM.
– Pre-request Script.
– GET, POST, PUT, PATCH, DELETE, COPY, HEAD, OPTIONS, LINK, UNLINK, PURGE, LOCK,UNLOCK, PROPFIND, VIEW.
– Pre-request Script.
– GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH, PROPFIND,LOCK, UNLOCK, COPY, PURGE.
|–||Mock Servers||Generate Mock Service|
My experience with Hoppscotch
My first tests with the tool were for this review, and they were built invoking the API provided by Swagger called PetStore.
As I mentioned before, you can use both, its web version and the progressive web application. In my case I chose to install the last, since it is very simple and intuitive to use.
Logging into the app at hoppscotch.io shows you the option to install it locally, which is very easy to do. It is not really necessary to configure the application in any way, other than to log in with one of the available options, in order to save the workspace in the cloud.
Here are some screenshots taken while testing that shows how the tool looks like.
The first thing I did was to create the collections, organizing and storing the different requests in it:
Collections can also be exported as JSON and shared between teams.
When it comes to creating requests, you can use parameters or pass data through environment variables:
In the test section, you can use the snippets offered by the tool (eg: validate that the status code is 200):
The generation of the documentation is really simple to do. We go to the Docs section, select or import the collections that we want to incorporate and press “Generate documentation”:
To create a Gist with the generated documentation, you need to log in with GitHub.
Despite being a relatively new tool, it was launched in 2019. According to the community on GitHub, it is currently being used by more than 750,000 developers around the world and has more than 50,000 monthly users, which has made it a tool to consider for API Testing.
Some of the advantages of Hoppscotch are as follows:
- Lightweight and fast.
- Documentation generator.
- Support for WebSocket also allows SSE, Socket.IO and MQTT (Image 1).
- Dedicated GraphQL support allows you to easily view and create requests (Image 2).
- Features are on the rise thanks to community collaboration.
For the same reason that Hoppscotch is chosen by thousands of users since it is a relatively new tool, it can have some drawbacks.
Some of the disadvantages are:
- Little documentation
- Missing features for test automation
- Need to add some features by CLI.
When and why you may use Hoppscotch
Hoppscotch is the ideal tool for projects requiring manual and agile testing.
As the creator of Hoppscotch, Liyas Thomas, said on the dev.to blog, it is a tool that runs online, consumes very few resources, supports multiple platforms and devices, and is accessible from anywhere. In his own words: “There is no other tool so simple, minimalist and efficient.”
Another feature that makes Hoppscoth interesting is that it can be customized: from the background, accent color, font size, language and other features that are improving with the collaboration of the community.
It is also possible to configure a middleware between the application and the APIs, either through the use of a Proxy or by adding extensions for Chrome or Firefox:
The following diagram shows how ProxyScotch works:
Finally, for those who are interested in understanding more about Hoppscotch, you can check out the following repositories:
- Hoppscotch: API development ecosystem.
- Docs: Hoppsctoch documentation.
- Hopp-doc-gen: API documentation generator CLI.
- Hoppscotch-extension: Browser extensions to provide more capabilities.
- .github: Open source API development ecosystem.
- Hopp-cli: HTTP CLI client.
- ProxyScotch: A simple proxy server.
- Hopp-js-sandbox: Execute external JS scripts in defined sandboxes used by Hoppscotch clients.
Hoppscotch is a 100% free tool and according to its creator, it always will be. It is simple and intuitive to use. It consumes very few resources in real-time, being ideal on low-end devices and becoming very agile on any device.
Although it is still in the development process, at the rate that its features are increasing, it would not be surprising to see how its automation functionalities end up matching its equivalent Postman in the near future.
Creator: Liyas Thomas
Test Automation Patterns and Good Practices
How to make sure your test automation not only makes your team move faster, but in the right direction. By Matias Fornara and Alejandro Berardinelli Test automation, or automating the execution of your tests, provides several advantages: it saves your team time, resources, and the…
Best Demo Websites for Practicing Different Types of Software Tests
Trying a new tool or preparing a demo? Here are some useful websites to keep on hand. Test sites are always needed to practice, whether for courses, workshops, webinars, testing new tools, etc. That’s why, in this post, I want to leave you a list…