TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Karate

Create Karate Automation Project

Overview

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.

Environment:

  • 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 

Karate Maven Project

Once done the project skeleton would be created.

Karate Maven Build Success

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.

Import Karate Project Eclipse IDE

Create Maven Project in IntelliJ

Steps to create a Maven project in IntelliJ IDEA Community Edition:

https://www.testingdocs.com/create-maven-project-with-intellij-idea/

NetBeans IDE:

Steps to Create Maven Project using NetBeans IDE

https://www.testingdocs.com/maven-project-from-archetype/

—

Karate Automation Tutorials

Karate tool tutorials on this website can be found at:

https://www.testingdocs.com/karate-automation-tool-tutorials/

More information on the tool:

https://github.com/intuit/karate

Related Posts

Multiple Threads Karate Automation

Karate /

Parallel Test Execution using Karate DSL

Get API Request

Karate /

Test GET API Request with Karate DSL

New Feature File Karate

Karate /

Create Karate API Test Script( Feature File )

Karate /

CRUD Operations API Test Automation with Karate

Data Driven Testing Karate

Karate /

Data Driven Testing using Karate Automation Tool

› REST API Automation with Karate Tool

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle
  • Draw Parallel Lines using Flowgorithm Graphics

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version