I'm fairly new to postman and am struggling to find an answer to the below
I have a query that returns data such as the below:
{
"dailyProcessing":{
"2020-10-01":{
"Database":{
"list0":0,
"list1":0,
"list2":300,
"list3":0,
"list4":0
}
},
"2020-10-02":{
"Database":{
"list0":0,
"list1":0,
"list2":0,
"list3":0,
"list4":400
}
}
}
}
I need to write a test that checks that one of those values returns a number >0 and am not sure what the format should be.
The list used will be random, so it can't be specific to one list but there will always be one being used, and we need to flag if we are not seeing a value greater than 0 in the response as it will identify an issue with processing
I have a small amount of knowledge so have tried putting things together like
pm.expect(pm.response.text()).to.include
but I don't seem to be getting the result I need
Apologies if this is a really simple thing, I do not have the knowledge yet to know what exactly it is (i.e the terminology) that I am trying to do
Thanks in advance