Recorder: wrong filters rendered for Java 17

58 views
Skip to first unread message

nsas

unread,
Jan 11, 2022, 2:43:30 AM1/11/22
to Gatling User Group
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

Stéphane LANDELLE

unread,
Jan 11, 2022, 2:48:49 AM1/11/22
to gat...@googlegroups.com
That's because you have Java 8 or 11 configured in the tool that's reporting this error instead of Java 17.
If your tool is IntelliJ, you have to change the Java compiler configured on your project.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/df3c5c8d-f3ec-44ca-bde9-6235906cf222n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages