Created
June 1, 2012 08:40
-
-
Save anonymous/2850401 to your computer and use it in GitHub Desktop.
gatling 1.2.0 scenario
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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._ | |
class Simulation20120601100527 extends Simulation { | |
def apply = { | |
val httpConf = httpConfig | |
.baseURL("http://172.30.5.143:8080") | |
.proxy("172.31.76.106", 8080) | |
.httpsPort(8081) | |
.acceptHeader("*/*") | |
.acceptCharsetHeader("ISO-8859-1,utf-8;q=0.7,*;q=0.3") | |
.acceptLanguageHeader("fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4") | |
.acceptEncodingHeader("gzip,deflate,sdch") | |
.userAgentHeader("Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/12.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151 Safari/535.19") | |
.hostHeader("172.30.5.143:8080") | |
val headers_1 = Map( | |
"Accept" -> """text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8""", | |
"Cache-Control" -> """max-age=0""", | |
"Proxy-Authorization" -> """Basic ZnBldGl0aXQ6T0NUT0ZQRTE=""", | |
"Proxy-Connection" -> """keep-alive""" | |
) | |
[...] | |
val scn = scenario("Scenario Name") | |
.insertChain(chain_0) | |
.insertChain(chain_1) | |
List(scn.configure.users(1).protocolConfig(httpConf)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment