My simulation:
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.core.session.Expression
class SomeSimulation extends Simulation{
val httpConf = http
.baseURL("http://api.thing.no")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.doNotTrackHeader("1")
.acceptLanguageHeader("en-US,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader("Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0")
val scn = scenario("vr")
.exec(http("base")
.get("/"))
.exec(http("ST")
.get("/st/norge"))
//setUp(scn.inject(constantUsersPerSec(10) during (10 seconds))).protocols(httpConf)
setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)
}
Produces this result in the console of IntelliJ when being executed (with full logging):