This project contains API tests written using the Karate framework.
- Java JDK 18 or higher
- Maven
- Valid API credentials and base URL
To run the API tests, use the following command:
API_USER=myUser API_PASSWORD=myPass API_BASE_URL=https://api-test.example.com mvn clean test -Dkarate.env=testThis command:
- Sets the API credentials (
API_USERandAPI_PASSWORD) - Sets the base URL for the API (
API_BASE_URL) - Runs Maven clean and test phases
- Uses the test environment configuration (
-Dkarate.env=test)
The following environment variables need to be set:
API_USER: Your API usernameAPI_PASSWORD: Your API passwordAPI_BASE_URL: The base URL of the API endpoint
You can modify these values according to your environment requirements.