https://github.com/lynix28/api-karate-example
API automation test example project using Karate
https://github.com/lynix28/api-karate-example
api-testing automated-testing karate karate-framework
Last synced: 6 months ago
JSON representation
API automation test example project using Karate
- Host: GitHub
- URL: https://github.com/lynix28/api-karate-example
- Owner: lynix28
- Created: 2023-08-26T16:24:22.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T10:27:14.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T14:13:20.701Z (8 months ago)
- Topics: api-testing, automated-testing, karate, karate-framework
- Language: Gherkin
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## api-karate-example
API automation test example project using Karate-JUnit5.
---
Tools:
- Karate-JUnit5 as test framework.
- Maven as test builder and runner.
- Allure as test reporter (additional).---
How to setup:
- Install `Maven`
- Install `Java SE`
- Clone this repository---
How to run the test:
- `mvn test` | to run all the test.
- `mvn test -Dtest=your_package.YourClass#your_method` | to run the test only for the specific test method. \
*example: `mvn test -Dtest=runner.Runner#testWithTag`---
Report:
- The file report will be generated and saved to `target` directory
- For Allure Report only an additional report and still not proper to use with Karate. Some important header content like `'Given - When - Then'` are still not generated, so the report will make confusion in current state. But if you still want It, use the following command to generate and open the report.
- `mvn allure:report allure:serve`