Skip to content

ayosuva/karate-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

karate-example

Eclipse Maven Configuration:

Archetype Group Id= com.intuit.karate

ArchetypeArtifactId= karate-archetype

ArchetypeVersion=0.2.7

Install cucumber plugin in eclipse using Help->Install New Software -> Add Option

Name:Cucumber Location:http://cucumber.github.com/cucumber-eclipse/update-site

Sample Test Feature file

Feature: user details
@tag
Scenario: get call test
  * def expected_response = read('response.json')
  
    Given url "https://reqres.in/api/users/2"
    When method GET
    Then status 200
    Then print response
    And match response == expected_response
    And match response.data.id == 2
    And match response.data.last_name != null  
    * match response.data.job_code == '#notpresent'

Cucumber report dependency:

<dependency>
    <groupId>net.masterthought</groupId>
    <artifactId>cucumber-reporting</artifactId>
    <version>5.3.0</version>
</dependency>

About

Sample Karate Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published