I occasionally get the HTTPClient::KeepAliveDisconnected error in my tests, and appears to be the result of my app crashing, but not exactly sure. However, the next scenario always starts right up and the tests proceed, usually without further failures.
I'd like to be able to catch these KeepAliveDisconnected errors, and just retry the scenario, without marking it as Failed and skipping it.
I'm assuming I'll want to Rescue, evaluate the Error type, and if a KeepAliveDisconnected, retry the scenario. Otherwise, pass the exception on as normal. I'm not sure where I'd actually do the Rescue though, and be able to retry the scenario.
If anyone has done something similar, any advice would be appreciated.
Thanks,
Cory