These tests demonstrate: -
Generating a Hmac Generating a Bearer token
Get Access Token - /v1/identity/hmac
Create Order - /v1/order-management
Create Instruction - /v1/order-management/{orderRef}/instruction
I would have liked to add more tests but I believe the raw automation framework is in place and you can get the gist of what has been implemented. The framework also allows for additional endpoints and tests to be added.
The framework uses: Cucumber (GIVEN WHEN THEN) Gherkin format, Serenity (mainly for reporting) and Java.
NOTE: I have identified a couple of issues with the supplied information. The API Url from Imburse differs from the API URL used. The TenantId on the supplied documentation is incorrect. This delayed me somewhat as I first had to figure out what was wrong (i.e incorrect TenantId), before then proceeding with familiarising myself and gaining an understanding of the domain under test.
You can clone this project using the following command:
git clone https://github.com/martintraille/imburse.git
Feature files are located here:
src/test/resources/features
Step definitions are located here:
src/test/java/imburse/steps
In my example I have a tag called @BUGFOUND - for the failing tests so you can easily run and check them for yourselves.
To execute only those scenarios with a tag use:
mvn clean verify -Dtags=@BUGFOUND