A simple project demonstrating the usage of the apickli framework for REST API integration testing.
Apickli is a REST API integration testing framework that makes API testing easy and less time-consuming.
- Add apickli dependency in the package.json file.
- Add cucumber dependency in the package.json file.
- Install project dependencies using npm install.
Command: npm install
- Add apickli-gherkin steps and support code files in your project.
Filenames: apickli-gherkin.js & init.js
- Define test scenarios in feature files.
Example: httpbin.feature
- Run tests with cucumber.js
Run the test cases using any of the below-mentioned commands in terminal or PowerShell:
Note: These commands need to run inside the root folder of this project i.e. inside the apickli-rest-api-integration-testing folder.
To run all the test cases
./node_modules/.bin/cucumber-js test/features/*.feature
To run all the test cases in a particular feature file
./node_modules/.bin/cucumber-js test/features/httpbin.feature