This test project based on spring-petclinic-rest project.
Before start:
- Make sure you have the java 11 version installed
- spring-petclinic-rest project cloned on you local machine and Running petclinic locally.
- Java 11
- Spring
- Cucumber
- RestAsshured
- Junit 5
- Allure Report
- Gradle
-
assertions
-
conditions
-
models:
- payloads
- responses
-
parameter
- Custom ParameterTypes that extend standard ones: https://github.com/cucumber/cucumber-expressions#readme
-
services
-
state
- General class to store runtime state across step definitions in one Scenario/Example.
- Can be autowired into step definitions class.
-
steps
- described action steps
ENV_NAME
- String value for launching tests on different environments
LOGGING
- Boolean value for Turn on/off logging
- Owner
- Users
Clone the project
git clone https://github.com/bandriychuk/pet-clinic-automation.git
Go to the project directory
cd pet-clinic-automation
To run tests, run the following command
./gradlew clean api-tests-bdd:test
To generate Allure Report
1 ./gradlew api-tests-bdd:downloadAllure
2 ./gradlew api-tests-bdd:allureServe