I have below JSON response from an API, To verify if the status is completed, I have written below code:
* match each response contains deep {Status:'Completed'}
but this fails for the status where the status is in lower case 'completed' instead of 'Completed'
how to solve this issue?
Also if I want to check that each status is either 'Open' OR 'In-Progress', how to validate that?
[
{
"id": "1",
"Status":"Completed"
},
{
"id": "2",
"Status":"completed"
},
{
"id": "3",
"Status":"In-Progress"
},
{
"id": "4",
"Status":"Open"
}
]