Getting Started
#
What is Dothttp?Dothttp is an open-source programming language for testing and interacting with HTTP APIs. It aims to simplify the process of writing and maintaining API tests by providing a simple syntax and easy-to-use commands. Dothttp can be used to write tests for RESTful APIs and other HTTP-based services.
The language is designed to be human-readable and easy to understand. It uses YAML syntax for specifying HTTP requests and responses, making it easy to read and write tests even for those who are not familiar with programming languages. Dothttp also supports variables and functions, which can be used to generate dynamic data and reuse code.
Dothttp is built on top of Python and can be installed using pip. It comes with a command-line interface (CLI) that allows you to run tests, generate reports, and debug your code. The CLI can also be integrated with Continuous Integration (CI) systems such as Jenkins, CircleCI, and Travis CI, making it easy to automate your API tests.
Some of the key features of Dothttp include:
Support for HTTP methods such as GET, POST, PUT, DELETE, and more Automatic handling of cookies and sessions Support for file uploads and downloads Built-in support for JSON and XML data formats Support for testing APIs secured with OAuth2 and other authentication mechanisms Extensibility through plugins Overall, Dothttp is a powerful tool for testing and interacting with HTTP APIs. Its simplicity and ease of use make it an excellent choice for developers and testers who want to streamline their API testing process.
#
Step 1: Install dothttpIf you haven't already, install dothttp via pip:
or via docker
#
Step 2: Create new Http filesimple get request with dothttp
run it via
python -m dothttp first.http
#
extension installationwe ask you to use http notebooks instead of httpfiles. it comes with storing responses, shows generated properies.
Extension url: dothttp
Extension Notebook Ace output support: dotbook
To install, open extensions page, search for dothttp and dotbook install both.