Skip to content

Lashchyk/karate-cucumber-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic API Test Examples using Karate and Cucumber


Introduction

Karate is an open-source framework for API Test automation that uses BDD style syntax, has a rich assertion library and built-in HTML reports.

Tests

Example is based on free fake API https://jsonplaceholder.typicode.com/ and covers the simple test scenario to test an GET api request

Scenario: Comments retrieval
    Given url 'https://jsonplaceholder.typicode.com/comments'
    When method get
    Then status 200
    And match response contains 
        { postId: 1, id: 1, name: '#notnull', email: '#notnull', body: '#notnull'}

How to run tests

run all tests by gradle test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published