Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature - Generate tests from OpenAPI / Swagger - automated contract testing #56 #225

Open
wants to merge 58 commits into
base: develop
Choose a base branch
from

Commits on Jun 1, 2020

  1. Added test generation for:

    - Success status check
    - Response time check
    - Content-type check
    - JSON schema validation
    - JSON body check
    
    Merged postmanlabs#218 for easy config file usage in the CLI tool.
    
    Added Postman test suite settings, which allow you to define which types of basic tests to be included or not, in the postman generation.
    Added Post test suite file loading (inspired by postmanlabs#218) option for the CLI
    Added postman-testsuite.json example
    
    Added test suite extension option, which offers the option to include manually defined postman tests based. The test extensions are mapped based on the OpenApi operationID.
    Tim committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    53ee6b8 View commit details
    Browse the repository at this point in the history
  2. Minor change in the sample

    Tim committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    c6f881f View commit details
    Browse the repository at this point in the history
  3. Minor changes to the readme

    Tim committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    2d4d9e1 View commit details
    Browse the repository at this point in the history
  4. Removed debug

    Added validation for schema.$ref
    Tim committed Jun 1, 2020
    Configuration menu
    Copy the full SHA
    4203d90 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2020

  1. Added additional configuration options for the extendTests section.

    It is now possible to `overwrite` all generateTests and extend them with specific settings per OpenApiOperationId.
    Tim committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    1892e5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    979eb80 View commit details
    Browse the repository at this point in the history
  3. Readme corrections

    Tim committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    aca00be View commit details
    Browse the repository at this point in the history
  4. Readme corrections

    Tim committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    3bd9584 View commit details
    Browse the repository at this point in the history
  5. Improved readme

    Tim committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    7a6f487 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2020

  1. Added the Operation method & Path as part of the test description.

    This helps when running newman tests with reporting via CI (like Azure devops). The reporting will contain the references.
    Tim committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    6fda601 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79e13ec View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2020

  1. Configuration menu
    Copy the full SHA
    d0ceea9 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. Added option to define test suite limits, based on the OperationID. T…

    …his will only generate tests based on the defined list of operationId's.
    Tim committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    53d2014 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2020

  1. Configuration menu
    Copy the full SHA
    84a52b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2020

  1. Configuration menu
    Copy the full SHA
    ac44b63 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2020

  1. Configuration menu
    Copy the full SHA
    19895fd View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. Postman test generation - added support for response header tests, wh…

    …ere the header is checked to present in the response
    Tim committed Aug 21, 2020
    Configuration menu
    Copy the full SHA
    c12b7ec View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2020

  1. Configuration menu
    Copy the full SHA
    6fb0edc View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2020

  1. Merge branch 'master' tag 2.0.0 of https://github.com/postmanlabs/ope…

    …napi-to-postman into develop
    
    # Conflicts:
    #	README.md
    #	bin/openapi2postmanv2.js
    Tim committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    4725d0b View commit details
    Browse the repository at this point in the history
  2. Spelling corrections

    Tim committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    39231dd View commit details
    Browse the repository at this point in the history
  3. Spelling corrections

    Tim committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    7306501 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2020

  1. Configuration menu
    Copy the full SHA
    e9cfa48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70f6906 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    22f754e View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2020

  1. Configuration menu
    Copy the full SHA
    250e59e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    13d54f6 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2021

  1. Bumped to openapi-to-postman 2.1.0

    Tim committed Jan 28, 2021
    Configuration menu
    Copy the full SHA
    8759aaa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    876a4f8 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2021

  1. Configuration menu
    Copy the full SHA
    b7403c0 View commit details
    Browse the repository at this point in the history
  2. Added option to overwrite/extend the Request Body with dynamic values…

    … example to the documentation
    Tim committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    1923647 View commit details
    Browse the repository at this point in the history
  3. Added option to overwrite/extend the Request Body with dynamic values…

    … example to the documentation
    Tim committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    a187c7c View commit details
    Browse the repository at this point in the history
  4. Added option to overwrite/extend the Request Body with dynamic values…

    … example to the documentation
    Tim committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    723237d View commit details
    Browse the repository at this point in the history
  5. Added option to overwrite/extend the Request Body with dynamic values…

    … example to the documentation
    Tim committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    3dd051c View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2021

  1. Added support for the Postman dynamic values $randomInt}}, {{$randomC…

    …reditCardMask}}, {{$randomBankAccount}} number values to overwrite/extend the Request Body
    Tim committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    3909bb0 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2021

  1. Added support to overwrite request path variables

    Initial support to automatic get response ID's for POST operations and set them as pm.environment variables
    Tim committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    6189b07 View commit details
    Browse the repository at this point in the history
  2. Added support to overwrite request path variables

    Initial support to automatic get response ID's for POST operations and set them as pm.environment variables
    Tim committed Feb 27, 2021
    Configuration menu
    Copy the full SHA
    8c0e104 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2021

  1. Configuration menu
    Copy the full SHA
    a484285 View commit details
    Browse the repository at this point in the history
  2. Added support to overwrite request headers

    Tim committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    465ccc9 View commit details
    Browse the repository at this point in the history
  3. Added support to overwrite request headers

    Tim committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    dd19f81 View commit details
    Browse the repository at this point in the history
  4. Bumped to openapi-to-postman 2.3.0 + included the requestOverwrite op…

    …tion for Request body, Query Params, Path variables & Headers
    Tim committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    2cbc98b View commit details
    Browse the repository at this point in the history
  5. Added to automatic set the response.id as an environment variable for…

    … chaining option
    
    Added the option to assign pm.environment variables from the response object
    Tim committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    1e27632 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2021

  1. Bug fix for path variable conversions when using a dynamic variable t…

    …o replace an integer example
    Tim committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    b190b61 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2021

  1. Lint fix

    Tim committed Mar 9, 2021
    Configuration menu
    Copy the full SHA
    8625e7e View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2021

  1. Added option to convert unsupported OpenAPI(3.0) properties to valid …

    …JSON schema properties which deletes nullable and adds "null" to type array if nullable is true
    Tim committed Mar 10, 2021
    Configuration menu
    Copy the full SHA
    af070d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2021

  1. Configuration menu
    Copy the full SHA
    a8363df View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2021

  1. Configuration menu
    Copy the full SHA
    a879d13 View commit details
    Browse the repository at this point in the history
  2. Merged version 2.5.1 from master

    Tim committed Apr 11, 2021
    Configuration menu
    Copy the full SHA
    bbbf81a View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2021

  1. Configuration menu
    Copy the full SHA
    fba8363 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. Added the getRefObject as a temp workaround for dependency

    Patch related to the stripping of "content-type" defined in OpenAPI postmanlabs#361
    Tim committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    b25fa44 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2021

  1. Applied a patch to overcome the unwanted setting of maxItem:2 on the …

    …content schema. This messes up the schema validation used by the testSuite.
    
    Changed the fixed stackLimit from 10 to 999 to overcome "Error: Too many levels of nesting to fake this schema" in the schema validation
    Fix to prevent referenced path variables being used for overwrites
    Tim committed May 7, 2021
    Configuration menu
    Copy the full SHA
    15b7417 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2021

  1. Bumped to openapi-to-postman 2.7.0 + the test suite generation

    Added option to match target based on the OpenApi Operation (method & path)
    Tim committed May 16, 2021
    Configuration menu
    Copy the full SHA
    6c0d1b9 View commit details
    Browse the repository at this point in the history
  2. Fixed lint errors

    Tim committed May 16, 2021
    Configuration menu
    Copy the full SHA
    75f37ac View commit details
    Browse the repository at this point in the history
  3. Removed unused variable

    Tim committed May 16, 2021
    Configuration menu
    Copy the full SHA
    b841af0 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Added option to disable the request query param in Postman

    Added "ContentCheck" feature
    Tim committed May 19, 2021
    Configuration menu
    Copy the full SHA
    33a707c View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. Extended the test suite assignPmVariables function by response header…

    …, request body or a plain value
    Tim committed May 24, 2021
    Configuration menu
    Copy the full SHA
    d8d10a1 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Corrected the incorrect checkRequestBody variable definition to check…

    …ResponseBody
    Tim committed May 25, 2021
    Configuration menu
    Copy the full SHA
    cff6d71 View commit details
    Browse the repository at this point in the history
  2. Corrected the incorrect checkRequestBody variable definition to check…

    …ResponseBody
    Tim committed May 25, 2021
    Configuration menu
    Copy the full SHA
    b7c4877 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Update README.md

    thim81 authored Apr 13, 2022
    Configuration menu
    Copy the full SHA
    14b8ff9 View commit details
    Browse the repository at this point in the history