Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package advanced
- import com.excilys.ebi.gatling.core.Predef._
- import com.excilys.ebi.gatling.http.Predef._
- import com.excilys.ebi.gatling.jdbc.Predef._
- import com.excilys.ebi.gatling.http.Headers.Names._
- import akka.util.duration._
- import bootstrap._
- import com.giltgroupe.util.gatling.websocket.Predef._
- class ReconWebsocketSimulation extends Simulation {
- val scn = scenario("Recon Websocket Test")
- .exec(websocket("socket").open("ws://192.168.1.13:9000/wsWithActor", "socket_open"))
- .pause(10)
- .exec(websocket("socket").sendMessage("message 1", "write_1"))
- .pause(10)
- .exec(websocket("socket").sendMessage("message 2", "write_2"))
- .pause(10)
- .exec(websocket("socket").close("socket_close"))
- setUp(scn.users(9000).ramp(2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement