Missing flood protocol configuration
To get the most out of Gatling integration with Tricentis Flood you will need to use our custom protocol configuration httpConfigFlood
1
import scala.concurrent.duration._
2
3
import io.gatling.core.Predef._
4
import io.gatling.http.Predef._
5
import io.gatling.jdbc.Predef._
6
7
// Mandatory, you must import Flood libraries
8
import flood._
9
10
class TestPlan extends Simulation {
11
12
// Optional, Flood will pass in threads, rampup and duration properties from UI
13
val threads = Integer.getInteger("threads", 10)
14
val rampup = Integer.getInteger("rampup", 10).toLong
15
val duration = Integer.getInteger("duration", 15).toLong
16
17
// Mandatory, you must use httpConfigFlood
18
val httpProtocol = httpConfigFlood
19
.baseURL("http://google.com/")
20
.acceptHeader("text/html,application/xhtml+xml,application/xml;")
21
.acceptEncodingHeader("gzip, deflate")
22
23
val scn = scenario("Scenario Name")
24
.exec(http("first_page")
25
.get("/"))
26
.pause(1000 milliseconds, 5000 milliseconds)
27
28
setUp(scn.inject(ramp(10 users) over (60 seconds))).protocols(httpProtocol)
29
}
Copied!
Copy link