Skip to content

manudevelopia/cucumber-poc

Repository files navigation

cucumber-poc

This is a proof of concept to create a framework that allows testing APIs using Cucumber feature to describe tests.

Why?

I've been using Karate framework for years and I really wanted to know how it works on the background.

Feature

Feature: Request
  As a user
  I want to make a get request to retrieve all users or just one
  and validate returned result

  Background:
    Given url https://jsonplaceholder.typicode.com

  Scenario: Get all users
    Given path /users
    When method get
    Then status 200

  Scenario: Get user 1
    Given path /users/1
    When method get
    Then status 200
    And response id 1

  Scenario Outline: Get user 1,2,3
    Given path /users/<USER_ID>
    When method get
    Then status 200
    Examples:
      | USER_ID |
      | 1       |
      | 2       |
      | 3       |

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published