My feature is something like this:
Scenario: Searching Value
* def Search = generateRandomNumberFive(111,999)
* call read('classpath:services/common.feature')
Given url domain + '/localhost/mysearch?query=' + Search
And headers scenarioHeaders
And retry until myRecord != $response.suggestions[0].ID == 8
When method get
Then status 200
* def myRecord = $response.suggestions[?(@.ID==8)]
I would like iSearch value to be regenerated on succeeding retries. Thanks for your help.
Aucun commentaire:
Enregistrer un commentaire