I started getting this error after I updated the version to 3.7.1 with SBT build.
Anyone else has this issue? What could be the solution?
Thank you,
Please share your code.
Sorry. Here is an example:
val stackPlans = exec(
http(getGraphQLName(“planningPlatform/stackplans/stackPlans.json”))
.post("/graphql")
.headers(graphqlHeader)
.body(RawFileBody(“planningPlatform/stackplans/stackPlans.json”))
.check(noGraphQLErrors)
).pause(pauseMin, pauseMax)
Here is the error I get:
[error] C:\gatling\oss-gatling\src\test\scala\request\VisualDirectoryRequests.scala:56:8: value post is not a member of io.gatling.http.protocol.HttpProtocolBuilder
[error] possible cause: maybe a semicolon is missing before value post
?
[error] .post("/graphql")
[error] ^
As requested in this mailing list rules
Provide a Short, Self Contained, Correct (Compilable), Example (see http://sscce.org/)
I assume you let your IDE remove the wildcard import
import io.gatling.core.Predef._
import io.gatling.http.Predef._
Ensure you have such imports at the beginning of your file!
Cheers!
I have them actually but it was still giving this error message.
The problem was the method I used to get the graphql names in the http part. When I fixed that method, error is gone.
The error message was misleading. FYI