In this tutorial, we will create Karate Automation Project using Maven build tool. Karate is an open source Automation tool. We can test APIs without writing automation code. Frameworks like JBehave, Cucumber needs steps definitions to be defined by the automation team. In Karate these definitions are already defined for the automation team. It takes relatively less time and effort to automate using the tool.
- Windows 10 / Ubuntu Linux
- Eclipse IDE/IntelliJ IDEA
- Karate Framework
Karate Automation Project
Open command prompt and change the working directory to the location where you want the project to be setup. For example. to the Eclipse IDE workspace location.
Issue the Maven command to create a project from the Archetype. We can fill the details in the interactive session in the command shell as well.
mvn archetype:generate -DarchetypeGroupId=com.intuit.karate -DarchetypeArtifactId=karate-archetype -DarchetypeVersion=1.1.0 -DgroupId=com.testingdocs.karate.demo -DartifactId=TestingDocsKarateDemo -Dpackage=com.testingdocs.karate.automation
Once done the project skeleton would be created.
Launch Eclipse IDE or IntelliJ and import the project from the pom.xml file. In Eclipse use
File >> Import
Click on the Browse… button and select the Project root directory that contains the pom.xml file.
Click on the Finish button to import the skeleton project.
Create Maven Project in IntelliJ
Steps to create a Maven project in IntelliJ IDEA Community Edition:
Steps to Create Maven Project using NetBeans IDE
Karate Automation Tutorials
Karate tool tutorials on this website can be found at:
More information on the tool: