I am trying to build a polling feature using retry until syntax. My test is using retry in two scenarios.
First one works fine and but the second retry scenario is always failing. with msg too many retry attempts: 2
Here is how my feature looks like
Given path brokerResult.activationPlan
And header Authorization = oauthToken
When method get
Then status 200
And retry until response.blocks == '#[13]' && karate.jsonPath(response, "$.blocks[?(@.block_status=='ACTIVE')]")== '#[3]'
Execute some more scenario to change the state.
Given path brokerResult.activationPlan
And header Authorization = oauthToken
When method get
Then status 200
And retry until karate.jsonPath(response, "$.blocks[?(@.block_status=='FINISHED')]") == '#[3]'
Here this scenario always fails.
I am on Karate version: 0.9.2
My question is does JSON path evaluation works with retry until which I am assuming yes as my first scenario works. what is that I am missing to make the second scenario work.