Hello!,
I am new to Gatling and have installed 3.1.3 on an Ubuntu machine.
I have below code to spawn WS connection with AUTH Token being passed. But, Gatling somehow is failing to recognize it I presume, since the same token when passed with python WSClient code works fine.
Any help regarding this would be very helpful!
Code:
`
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class WebSockets extends Simulation {
val httpConf = http
.baseUrl(“http://x.x.x.x:9080/v2.0/api/id/john/ws”)
.acceptHeader(“X-Auth-Token: c965d57a8bf285971e09bfb4a010710025dbe7a2-pa.u.exp=1563651221084&pa.p.id=password&t.id=john&pa.u.id=admin%40abc.com”)
.wsBaseUrl(“ws://x.x.x.x:9080/v2.0/api/id/john/ws”)
val scn = scenario(“LOAD TESTING”)
.exec(ws(“Connect WS”).connect("ws://x.x.x.x:9080/v2.0/api/id/john/ws
"))
.exec(ws(“Close WS”).close)
setUp(scn.inject(atOnceUsers(10))).protocols(httpConf)
}
`
Logs:
`
Simulation WebSockets started…