error: value formParam is not a member of io.gatling.http.request.builder.HttpRequestBuilder

“mvn install” is getting failed as mentioned snapshot of the error below:

[INFO] Compiling 5 source files to <…path…>
[ERROR] <…path…>: error: value formParam is not a member of io.gatling.http.request.builder.HttpRequestBuilder
[ERROR] possible cause: maybe a semicolon is missing before `value formParam’?
[ERROR] .formParam(“author”, “${username}”)
[ERROR] ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

my pom.xml :

This issue is that only post() currently support formParam.
Is it intended that you want x-www-form-url-encoded ContentType for a method different from POST?

It is not intended.
This issue is only with put() method.

when I use formParam with put() method, I get this error: value formParam is not a member of io.gatling.http.request.builder.HttpRequestBuilder

Thanks,
-V

I added support for x-www-form-urlencoded params for PUT (and other methods as well) only yesterday and it will be available in 2.1: https://github.com/gatling/gatling/issues/2366

Honestly, it’s pretty exotic, you’re the first one to ever report doing such a thing.

Thanks for the info Landelle, I tried to upgrame gatling to 2.1 Sonatype OSS Snapshots repository using maven.
Unluckily, I could not succeed to migrate to 2.1
Can you share the procedure to migrate to 2.1 using mavin.

Regards,
-V

Can you provide maven repository (http://maven-repository.com/) for 2.1 version that support for x-www-form-urlencoded params for PUT.

Gentle reminder…

can you please suggest