I’m writing a Gatling scenario which include loading of static assets (css, images etc.).
The whole scenario is wrapped in exitBlockOnFail, as it is a stateful service, and a failure early in the chain will cause multiple unimportant failures later which creates noise in the final report.
However, occasionally failures are caused by timeouts when trying to fetch static assets. Is there a way to mark these requests as ‘unimportant’, so they don’t trigger the exitBlockOnFail functionality?
How can I add multiple silentUri parameters to the HTTP protocol?
When I am adding multiple.silentURI only one of the url are getting silent and not the other one.
.baseUrl(“baseurl”)
.acceptHeader("/")
.inferHtmlResources()
.userAgentHeader(“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36”)
silentUri doesn’t exclude anything, it removes from the reporting but HTTP traffic is generated. If you don’t want traffic to be generated, that’s what BlackList is for.
silentUri takes a regular expression. Feel to to match multiple domains.