Endava / cats

CATS is a REST API Fuzzer and negative testing tool for OpenAPI endpoints. CATS automatically generates, runs and reports tests with minimum configuration and no coding effort. Tests are self-healing and do not require maintenance.
Apache License 2.0
1.19k stars 73 forks source link

CATS fails on HTTP GET with query parameters #2

Closed sin-bin closed 4 years ago

sin-bin commented 4 years ago

CATS will replace url path parameters. However, query parameters are not set or replaced. For example: http://localhost/api/{id}?sortBy={sortProperty}

Query parameter "sortBy" is not set in the Full Request Path.

OpenAPI swagger fully supports query parameters:

     parameters:
        - in: query
          name: sortBy
          schema:
            type: string
en-milie commented 4 years ago

Thanks for reporting this. This is indeed a missing feature. I'll focus on implementing it in the next days.

en-milie commented 4 years ago

This is now fixed under: https://github.com/Endava/cats/commit/80074c4c977077643c9487c51f997e0a23ac5e29