JParel
9 years agoOccasional Contributor
Conditional GoTo Test Step on failed assertion
Hi,
I currently have a Datasource Loop which loops a few 100 calls using different endpoints. Within this loop, I want to write a Conditional GoTo step to write to a datasink when the previous service call step has a failed assertion. The Conditional Goto available will only go to the conditional step if the Condition matches an Xpath Expression however the service I am calling returns a JSON response and if I click on the 'ns:' icon in the Conditional Goto step, I get an error saying 'Missing response in previous request step [TestStepName]'. Is there a way to do what I want?
I forgot to mention that some of the assertion fails are due to 404 errors. Can I capture this as well in the Conditional GoTo step?