Hello,
We are using Pytest for our API Automation and wanted to avoid hard coding throughout the test by dynamic insertion of the values for the fields.
So to be precise - a response of API-1 contains "id" fields with it's value. The response is written to a file.
However, the same "id" field is used in the payloads of API-2.
So, we wanted to use the value of API-1 "id" field to payload of API-2 route.
How can I make that happen ? Please suggest.
We are using Pytest for our API Automation and wanted to avoid hard coding throughout the test by dynamic insertion of the values for the fields.
So to be precise - a response of API-1 contains "id" fields with it's value. The response is written to a file.
However, the same "id" field is used in the payloads of API-2.
So, we wanted to use the value of API-1 "id" field to payload of API-2 route.
How can I make that happen ? Please suggest.