how to handle dynamic data in api code example
Example: how to handle dynamic data in api
for example data exists in one env and does not exist in another
or data expire once you use it in one test (delete)
1, get the data from database so we can work with latest data
2, create your own data and use that data for the test
in order to test Get One data endpoint
we need a valid ID , each env can have different IDs
or that data might get deleted and test will fail because of
data error
what we did is , created our own data
using Add 1 data request -->>
save the generated ID
use that ID for the rest of the test
and optionally clean up the data after the test