Flexible and easy to use library to enable your behavorial driven development (BDD) teams to easily collaborate while promoting automation, transparency and reporting.
Quick Links: User Guide | Running | Grammar
Latest builds can be found on Sonatype
No longer do your business, development and testing teams need to translate each others requirements and reports into something else to do their job. This natural language, behavior-driven development (BDD) library exists to simplify the documenting of requirements and the testing of your API’s.
Built on Cucumber and Rest Assured, this library provides a standard grammar (based on Gherkin) that all teams within your organization can use to relay requirements and test your applications.
Example
Given I am a JSON API consumer
And I am executing test "RSJ2"
When I request GET "/json/users"
Then I should get a status code of 200
And the response value of "users[0].email" should equal "[email protected]"
And the response value of "users[0].address.city" should not equal "Boston"
Although there are libraries like Karate and others that provide similar functionality, they are focused mainly on technical users, which means your Product/Solution Owners and SME’s are still writing their own docs.
This library was born out of this frustration.
Requirements, always being interpreted from one document format (user story, technical docs, test cases, etc…) to another, create an additional overhead. Even worse, things often get lost or misinterpreted in translation. We don’t have time for that in one or two week sprints.
This library provides a lot of help out of the box to fix this…
In most environments, contributors - which include Product Owners, Subject Matter Experts, Architects, Solution Owner/Architects, Tech/Team Leads, and more - create scenarios which are added to feature files. In most cases these are added to existing project repositories (or newly created ones).
The developer then reviews the requirements (or acceptance criteria) and creates functionality to support, while running those scnearios as as tests with every change to confirm that there’s been no regressions and that the feature is functionally complete.
The test directory has a variety of sample feature files that show how to use all the features of the library.
For the definitive guide, checkout the User Guide.