excilys/gatling — pull request #727 by nire (2012-09-17 13:19:15+00:00)
Title: Recorded simulation compiles now

Here is the list of issues I've been able to spot.

```scala
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._

//1 NICOLAS : "Simulation extends Simulation", should change the name
class Simulation extends Simulation {

def apply = {

//2 NICOLAS : Indentation
val httpConf = httpConfig
.baseURL("http://computer-database.herokuapp.com")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.acceptLanguageHeader("en-us,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1")
.hostHeader("computer-database.herokuapp.com")

val headers_1 = Map(
"DNT" -> """1"""
)

val headers_2 = Map(
"Accept" -> """text/css,*/*;q=0.1""",
"DNT" -> """1""",
"If-None-Match" -> """5950e709b2179481c46b5ef1ee109981527a6c20"""
)

val headers_3 = Map(
"Accept" -> """text/css,*/*;q=0.1""",
"DNT" -> """1""",
"If-None-Match" -> """bc426f69bd6f005692e053b5d5104dd54771deb9"""
)

val scn = scenario("Scenario Name")
//3 NICOLAS : Indentation and missing "."
exec(http("request_1")
.get("/")
.headers(headers_1)
)
//4 NICOLAS : Indentation and missing "."
pause(684 milliseconds)
exec(http("request_2")
.get("/assets/stylesheets/bootstrap.min.css")
.headers(headers_2)
.check(status.is(304))
)
pause(715 milliseconds)
exec(http("request_3")
.get("/assets/stylesheets/main.css")
.headers(headers_3)
.check(status.is(304))
)
exec(http("request_4")
.get("/computers/381")
.headers(headers_1)
)

List(scn.configure.users(1).protocolConfig(httpConf))
}
}
```