Upgrading from 2.3 to 3.0
Core
- JsonPath check’s
ofTypenow deep converts to ScalaMapandSeq, so you’ll no longer get Java types deep into the object bodiesanddatadirectories were dropped, now those files are resolved from classpath root, see gatling#3398.extraInfoExtractorwas dropped as it wasn’t used in any Gatling component- check’s
transformResponsenow takes a secondSessionparameter overinject method was renamed intoduringsplitUsersis dropped in favor ofincrementUsersPerSecandincrementConcurrentUsersValidation#getis dropped as it’s very error prone, use pattern matching if you mustPerMillionassertion is dropped asPercentnow takes a DoublegreaterThanandlowerThanassertion operators are renamed intogtandltand are strict (vsgteandlte)
HTTP
- Gatling now has its own HTTP client and no longer uses AsyncHttpClient, so this library is no longer shipped. If you’ve been using it, you’ll need to pull it explicitly, or switch to another HTTP client library.
baseURLwas renamed intobaseUrlbaseURLswas renamed intobaseUrlsand is now sticky for a given virtual usersilentURIwas renamed intosilentUriasJSONwas renamed intoasJsonasXMLwas renamed intoasXml- WebSocket and SSE support were completely re-written, see new API.
ntmlAuthis dropped until we can support NTLM properly, see gatling#3525- The way to compute HTTP request signatures was revamped, see new API
disableClientSharingwas dropped. It’s not possible atm to specify individual keystore and trustore for each virtual user. However, each virtual user has a distinctSSLContext.- Debugging: in your configuration file
logback.xmlthe following needs updating from:<logger name="io.gatling.http.response" level="TRACE" />to:<logger name="io.gatling.http.engine.response" level="TRACE" />. A full example file can be found here
JMS
reqreplywas renamed intorequestReplymatchByMessageIDwas renamed intomatchByMessageIdandmatchByCorrelationIDwas renamed intomatchByCorrelationId- Protocol level
receiveTimeoutwas replaced with request levelreplyTimeout
CLI
-m/--muteoption was dropped, now Gatling is automatically mute when you set the simulation class name- no longer prompts for a user defined simulationId
gatling-maven-plugin
- Maven users must upgrade gatling-maven-plugin to 3.0.
- options’ aliases were dropped, use full option names instead
- Drop deprecated gatling-maven-plugin’s
executetask, usetestinstead