Not exactly, you need to wrap with exec.
class Hello extends Simulation {
val scn = scenario("Hello").exec(http("Home").get("/"))
val httpConf = httpConfig
.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 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0")
.shareConnections
setUp(scn.users(1).protocolConfig(httpConf))
}
class World extends Simulation {
val hello = new Hello()
val scn = scenario("World").repeat(5) {
exec(hello.scn)
}
setUp(scn.users(1).protocolConfig(hello.httpConf))
}