Executing API Automation ScriptsExecuting Java Karate Scripts

Executing Java Karate Scripts

Execute algoQA-generated Java Karate API automation scripts from the command prompt using Maven — download, extract, run with Karate tags, and view the test execution report.

Execute algoQA-generated Java Karate scripts from the command prompt using Maven. Follow the steps below to download, run, and view the test execution report.

Download the generated script to your local folder.

Extract the contents to your local drive.

Open the command prompt from the same folder where you have extracted the script.

Run the following command to execute the script:

mvn test -Dkarate.options="--tags @test001"

You can view the respective report once the script is executed.

Karate Labs report showing algoQA API flow scenario with 0 passed, 1 failed, and request details
Karate Labs report showing algoQA API flow scenario with 0 passed, 1 failed, and request details