taverntesting / tavern

A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
https://taverntesting.github.io/
MIT License
1.02k stars 192 forks source link

Parametrize for request parameters (path, query) #892

Closed jykae closed 9 months ago

jykae commented 9 months ago

Seems like parametrize is only supported in request json data Or is it only I use it somehow improper way

Would it be possible to add parametrize support for request path & query parameters ?

Thank you for creating such great declarative API testing tool @michaelboulton 👏

michaelboulton commented 9 months ago

It is possible to parametrize those things, if not documented, I've added an example / test for this in https://github.com/taverntesting/tavern/blob/722b40b786d7933e0243e47996922b45114fdb08/tests/integration/test_parametrize.tavern.yaml#L21-L40 https://github.com/kiril-me/tavern/blob/722b40b786d7933e0243e47996922b45114fdb08/tests/integration/test_parametrize.tavern.yaml#L21-L40 and