- Clone project as Gradle project
- Execute Gradle building to import dependencies
- Navigate to project's directory using Terminal
- Change value of immediateFlush to true in Log4j2 configuration file src/main/resources/log4j2.xml to log tests' info to logs/log.log file
- Execute command
gradlew check
- Execute command
gradlew check -i
what else you would like to test, but was unable to do this because there is not enough information provided in this test assignment or this just was not requested by this test assignment.
Test candidates:
- POST callback request
- Responses' check for invalid:
- payoutId for "/payouts/{payoutId}" endpoint (GET)
- JSON body for "/payouts" endpoint (POST)
- Schema
- Parameters' type
- Arbitrary long values
Improvement ideas:
- Implement (find out?) a possibility to merge JSON objects in order to test different occasions, where JSON objects share common part
- Extract value from request
- Value usage in response body
- Save value and compose new JSON-file with the value inside
- Since it's first time Gradle usage, there is a room for studying its possibilities further