An open API service indexing awesome lists of open source software.

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

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`