重试功能不起作用超过 3 个计数



我在代码中使用重试来检查 GET 状态,然后重试命中直到得到 200。

我的代码是:

Given configure retry = { interval: 5000 , attempts: 5 }
And  URL 
And  param query = 'name:' + title
And def auth = callonce 
read('classpath:examples/Tokens/ViewToken.feature') 
{'viewAccessToken': 'viewAccessToken' }
And print ' view token', auth.viewAccessToken
And header Authorization = auth.viewAccessToken
And retry until responseStatus == 200 

当方法得到。

但这仅适用于 3 个计数,即使我已将重试计数设置为 5。

我该如何解决这个问题?

* configure retry = { count: 5, interval: 5000 }

最新更新