GithubHelp home page GithubHelp logo

manudevelopia / cucumber-poc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 87 KB

License: GNU General Public License v2.0

Java 80.12% Groovy 3.27% Gherkin 16.60%
integration-testing testing-framework

cucumber-poc's Introduction

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       |

cucumber-poc's People

Contributors

manudevelopia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.