import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class SampleSimulation extends Simulation {
val httpProtocol = http.baseUrl("https://flooded.io") // This sets your base URL for all subsequent requests
val scn = scenario("Basic") // A scenario is a chain of requests and pauses
.during(duration seconds) {
exec(http("01_Home") // This sets the transaction name
.get("/") // method and relative path to retrieve
.check(status.is(200), substring("Smooth Scaling").exists) // Verify that the HTTP code returned is 200 and that the substring exists
setUp(scn.inject(rampUsers(threads) during (rampup seconds))).protocols(httpProtocol)