So I have a response with a similar structure to the example below. Key2 eventually will change to a value that means my test can proceed, so I want to make sure that all values for Key2 are eventually "Test" by using retry until. I've tried to follow documentation to get something to work but not having much luck.
{
"Array": [
{
"Key1": "Value1",
"Key2": "Test"
},
{
"Key1": "Value1",
"Key2": "Test"
}
]
}
Any help would be great. Thank you.
Solution:
And retry until karate.match("each response.Array contains { Key2: 'Test' }").pass