Chakram is an API testing framework designed to perform end to end tests on JSON REST endpoints.
The library offers a BDD testing style and fully exploits javascript promises - the resulting tests are simple, clear and expressive. Chakram is built on node.js, mocha and chai.
This readme offers an introduction to the library. For more information, visit Chakram's documentation and tests which demonstrate all of Chakram's capabilities. In addition, example tests of publicly accessible APIs are available in the examples directory. If required, assistance can be found in the project's gitter chat room.
More Features:
HTTP specific assertions. Allows testing of:
Status codes
Cookie presence and value
Header presence and value
JSON values
JSON structure (using the JSON schema specification)
Compression
Response times
BDD formatting and hooks (e.g. beforeEach, afterEach)
Promise based
Plugin support
Custom assertions
Exports results in a variety of formats
Debugging support
Chakram requires Node.js and npm to be installed. It is available as an npm module. Ideally, Chakram should be added to your testing project's devDependencies. This can be achieved with the following command:
npm install chakram --save-dev
The Mocha test runner is used to run Chakram tests – this can be installed globally or as a development dependency. The following command installs Mocha globally:
npm install -g mocha
To run tests, simply call the Mocha command line tool. By default, this will run the tests located in the 'test' directory. Mocha can export the test results in many different formats, satisfying the majority of continuous integration platforms.
Points: 0
You voted ‘up’
.need help to develop automation scripts BDD model with jbehave with java selenium, rest services
View MANUFACTURERS Wallboard
Theme by Danetsoft and Danang Probo Sayekti
Comments
to develop automation scripts BDD model with jbehave
.need help to develop automation scripts BDD model with jbehave with java selenium, rest services