bbd-cucumber-gherkin-lib

Cucumber library for simpler e2e tests with predefined sentences for API and basic database access for Spring.

MIT License

Stars
6
Committers
7

Bot releases are hidden (Show)

bbd-cucumber-gherkin-lib - Release 2.17.0 Latest Release

Published by Ragin-LundF about 2 months ago

The configuration

cucumberTest:
  authorization:
    ...

is no longer required.
It must be set, if a default token can be used. Else the token must be provided via Background or inside of the Scenario.

bbd-cucumber-gherkin-lib - Release 2.16.0

Published by Ragin-LundF about 2 months ago

  • Spring Boot to 3.3.3
  • liquibase-core to 4.29.1
  • Fix for missing dependency versions
bbd-cucumber-gherkin-lib - Release 2.15.0

Published by Ragin-LundF 3 months ago

Fixed issues with BOM's.
It was not possible to resolve the transitive dependencies.

bbd-cucumber-gherkin-lib - Release 2.14.0

Published by Ragin-LundF 3 months ago

Updated Gradle structure, code analysis and coverage

  • Updated Gradle structure and split each configuration into separate files
  • Replaced jacoco with kover
  • Updated Gradle task for cucumber
  • Added Detekt for static code analysis

Updated Libs

  • Spring Boot to 3.3.2
  • liquibase-core to 4.29.0
  • Cucumber libs to 7.18.1
bbd-cucumber-gherkin-lib - Release 2.13.0

Published by Ragin-LundF 3 months ago

Updated Gradle structure, code analysis and coverage

  • Updated Gradle structure and split each configuration into separate files
  • Replaced jacoco with kover
  • Updated Gradle task for cucumber
  • Added Detekt for static code analysis

Updated Libs

  • Spring Boot to 3.3.2
  • liquibase-core to 4.29.0
  • Cucumber libs to 7.18.1
bbd-cucumber-gherkin-lib - Release 2.12.0

Published by Ragin-LundF 5 months ago

Updated Libs

  • Spring Boot to 3.2.5
  • Cucumber Libs to 7.18.0
  • liquibase-core to 4.27.0

Features

Added a new default matcher (${json-unit.matches:isNotEqualTo}string) to compare, that a value is not equal to a given string.
The string can be anything after the closing bracket:

{ "string": "${json-unit.matches:isNotEqualTo}another string" }
  Scenario: Validate field with a string that it is not the value
    When executing a GET call to "/api/v1/fieldValidation"
    Then I ensure that the status code of the response is 200
    And I ensure that the body of the response is equal to
    """
      {
        "string": "${json-unit.matches:isNotEqualTo}another string",
        "number": 12,
        "boolean": true,
        "list": [
          "First",
          "Second"
        ],
        "object": {
          "firstname": "John",
          "lastname": "Doe"
        },
        "uuid": "${json-unit.matches:isValidUUID}",
        "objectList": [
          {
            "first": 1,
            "second": 2
          },
          {
            "first": 3,
            "second": 4
          }
        ]
      }
    """

See src/test/resources/features/body_validation/field_compare.feature

bbd-cucumber-gherkin-lib - Release 2.11.0

Published by Ragin-LundF 7 months ago

Updated Libs

  • Spring Boot to 3.2.4
  • Cucumber Libs to 7.16.1
  • liquibase-core to 4.26.0
bbd-cucumber-gherkin-lib - Release 2.10.0

Published by Ragin-LundF 7 months ago

  • Removed Accept-Language default header.
bbd-cucumber-gherkin-lib - Release 2.9.0

Published by Ragin-LundF 8 months ago

Updated Libs

  • Spring Boot to 3.2.3
  • Cucumber Libs to 7.15.0
  • liquibase-core to 4.26.0
bbd-cucumber-gherkin-lib - Release 2.8.0

Published by Ragin-LundF 11 months ago

Updated Libs

  • Spring Boot to 3.2.0
  • Cucumber Libs to 7.14.1
  • liquibase-core to 4.25.0
bbd-cucumber-gherkin-lib - Release 2.7.0

Published by Ragin-LundF about 1 year ago

Updated Libs

  • Spring Boot to 3.1.4
  • Cucumber Libs to 7.14.0
  • json-unit to 3.2.2
  • liquibase-core to 4.24.0

Features

Added a new default matcher (${json-unit.matches:isNotEqualToScenarioContext}MY_CONTEXT_VALUE) to compare, that a value is not equal to the context:

    And I ensure that the body of the response is equal to
      """ 
        {
          "value": "${json-unit.matches:isNotEqualToScenarioContext}MY_CONTEXT_VALUE",
        }
      """
bbd-cucumber-gherkin-lib - Release 2.6.1

Published by Ragin-LundF about 1 year ago

Small fix for URL encoded calls, to be able to leave a value empty if the parameters are dynamic.

bbd-cucumber-gherkin-lib - Release 2.6.0

Published by Ragin-LundF about 1 year ago

New sentence added for application/x-www-form-urlencoded POST calls.

When executing a url-encoded POST call to "/api/form-encoded" with the fields
| Key    | Value         |
| first  | myFirstValue  |
| second | mySecondValue |

The first line of the fields MUST contain | Key | Value |.

bbd-cucumber-gherkin-lib - Release 2.5.1

Published by Ragin-LundF about 1 year ago

In some cases, a @PostConstruct annotation was not executed in the correct order.
This has now been taken care of by moving the logic it contains to a constructor.

bbd-cucumber-gherkin-lib - Release 2.5.0

Published by Ragin-LundF about 1 year ago

  • Fix for URLs with http(s)://
bbd-cucumber-gherkin-lib - Release 2.4.0

Published by Ragin-LundF about 1 year ago

Logging of requests and responses

Now all executing sentences log the request and response as scenario text in the report.
This makes problems in tests more visible on CI/CD scenarios.

Example:

When executing a GET call to "/api/v1/unauthorized"
  Request:
  ========
  HTTP Method: GET
  HTTP URL   : /api/v1/unauthorized
  Response:
  ========
  Status Code: 401 UNAUTHORIZED
  Body       : {"error_description":"Full authentication is required to access this resource","error":"unauthorized"}
bbd-cucumber-gherkin-lib - Release 2.3.0

Published by Ragin-LundF about 1 year ago

New sentence

Given that the request body in the scenario context map has been reset

This sentence resets the body if a scenario uses 2 requests and the second should be empty.

bbd-cucumber-gherkin-lib - Release 2.2.0

Published by Ragin-LundF about 1 year ago

Added logging that logs every HTTP method and URL.
This can make troubleshooting much easier, especially with dynamic URLs.

bbd-cucumber-gherkin-lib - Release 2.1.0

Published by Ragin-LundF about 1 year ago

Update Libraries

  • Spring Boot updated to 3.1.2

New matcher

  • A new matcher for IBANs was added. The syntax is ${json-unit.matches:isValidIBAN}.
bbd-cucumber-gherkin-lib - Release 2.0.1

Published by Ragin-LundF over 1 year ago

This release requires Java 17 and Spring Boot 3.
It uses also the jakarta.* packages instead of the javax.* packages.

Update Libraries

  • Spring Boot updated to 3.1.1
  • Liquibase updated to 4.23.0
  • Cucumber updated to 7.13.0
  • Apache HTTP Client updated to 5.2.1
Package Rankings
Top 36.63% on Repo1.maven.org
Badges
Extracted from project README
Quality Gate Status
Related Projects