Skip to main content

API automation

Cucumber is not an API automation tool, but it works well with other API automation tools.

Using API's for your automation, can make your tests faster and less flaky than going through the UI. In general, API's change less frequently than the UI; keeping your automation up to date for longer.

For JVM​

  • RestAssured is an API automation tool for Java. You can use RestAssured in your step definitions to make API calls and verify responses.

For JavaScript​

For Ruby​

  • REST Client is a simple HTTP and REST client for Ruby.
  • HTTParty can be used to make HTTP calls. For more information, see the HTTParty docs.
  • Net::HTTP is an HTTP client API for Ruby.
  • Faraday is a HTTP client library for Ruby.
  • RubyMine is a Ruby and Rails IDE providing a range of developer tools for Ruby. RubyMine can be used to test RESTful Web Services.
  • curb provides Ruby-language bindings for the libcurl(3), a fully-featured client-side URL transfer library.
  • Typhoeus is a Ruby tool that wraps libcurl in order to make fast and reliable requests. For more information, see the Typhoeus Ruby docs.