Sample project to get started with implementing and running karate tests, in a structured fashion.
Results are published in junit, html and cucumber-reporting format. Results are also published to ReportPortal
Example
TARGET_ENVIRONMENT=prod TYPE=workflow ./gradlew clean test
-
Build an uber jar:
./gradlew build
-
The above command will create a jar in the upload folder with the name like:
upload/getting-started-with-karate-0.0.1.jar
cd upload
PARALLEL=3 TARGET_ENVIRONMENT=prod TYPE=workflow ./runAPIWorkflowTests.sh
cd upload
PARALLEL=3 TARGET_ENVIRONMENT=prod TYPE=workflow java -jar getting-started-with-karate-0.0.1.jar
Read the CODING GUIDLINES FOR AUTOMATION USING KARATE for writing tests in this framework
Contact @BagmarAnand for help / information / feedback on this repo