Hi,
I am using Gatling 3.7.3 on Java 17.
I have recorded the test scenario. The following code got generated by the Gatling with triple quotes and it is giving the error . I noticed that there are no triple quotes for Java 8 and 11.
private HttpProtocolBuilder httpProtocol = http
.baseUrl("http://google.com)
.inferHtmlResources(AllowList(), DenyList("""..js""", “”"..css""", “”"..gif""", “”"..jpeg""", “”"..jpg""", “”"..ico""", “”"..woff""", “”"..woff2""", “”"..(t|o)tf""", “”"..png""", “”".detectportal.firefox.com."""))
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8”)
.acceptEncodingHeader(“gzip, deflate”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.upgradeInsecureRequestsHeader(“1”)
.userAgentHeader(“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0”);
Thanks.
nsas