What are your suggestions for best practices with test data for using with APIs
I want to test an API with multiple possibilities of data.
Is it a good idea to create hard coded data as multiple json objects in the fixtures and iterate for each request.
Fixture
[
{
'uuid':'uuid-1234-asdf',
'name':'john',
'age':25
},
{
'uuid':'fghj-1234-kldf',
'name':'smith',
'age':20
},
{
'uuid':'tyhh-1234-lsdf',
'name':'Tim',
'age':29
}
]
________________________
In my test block
*/code that reads from fixture file
it.each()
{
send an api request once for each of the fixture data.
}