apickli is a collection of utility functions and a Gherkin-based BDD framework for REST API integration testing built on top of Cucumber.js. The latest stable version is 3.0.3, which introduced support for HTTP/2 and updated dependencies. It simplifies API testing by providing predefined step definitions for common HTTP operations, response validation, and state management. Compared to other tools like Frisby or Supertest, apickli integrates tightly with Cucumber's Gherkin syntax, enabling non-technical stakeholders to write and understand tests. It supports JSON and XML responses, query parameters, headers, and authentication. Released less frequently, with a focus on stability.
npm install apickliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows how to set up a Cucumber step definition file using apickli to send GET requests and assert response status codes.
Upgrade Node to >=12. Use import syntax instead of require.
Replace default import with named imports: import { apickli, Apickli } from 'apickli';Always assign apickli to 'this.apickli' inside step definition functions.
Ensure custom World object sets this.apickli during initialization.
Always pass the callback to apickli assertion methods or use a wrapper that throws.
Use import { Apickli } from 'apickli'; const apickli = new Apickli(baseURL);Run npm install cucumber --save-dev
Import defineSupportCode from 'cucumber' rather than from 'apickli'.
Ensure steps are only called within Cucumber scenarios and that the World has apickli initialized.