Created
May 24, 2017 14:46
-
-
Save nblair/297a1c2cda191b057ed01dc4b226e580 to your computer and use it in GitHub Desktop.
Sample gatling recorded simulation
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 scala.concurrent.duration._ | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
class RecordedSimulation extends Simulation { | |
val httpProtocol = http | |
.baseURL("http://localhost:1234") | |
.inferHtmlResources() | |
.acceptEncodingHeader("gzip") | |
.userAgentHeader("Apache-Maven/3.5.0 (Java 1.8.0_121; Mac OS X 10.12.4)") | |
val headers_0 = Map( | |
"Cache-control" -> "no-cache", | |
"Cache-store" -> "no-store", | |
"Expires" -> "0", | |
"Pragma" -> "no-cache") | |
val uri1 = "http://localhost:1234/nexus/content/groups/dev" | |
val scn = scenario("RecordedSimulation") | |
.exec(http("request_0") | |
.get("/nexus/content/groups/dev/commons-digester/commons-digester/1.8/commons-digester-1.8.jar") | |
.headers(headers_0) | |
.resources(http("request_1") | |
.get("/nexus/content/groups/dev/commons-digester/commons-digester/1.8/commons-digester-1.8.jar.sha1") | |
.headers(headers_0), | |
http("request_2") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.pom") | |
.headers(headers_0), | |
http("request_3") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.pom.sha1") | |
.headers(headers_0), | |
http("request_4") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.pom") | |
.headers(headers_0), | |
http("request_5") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.pom.sha1") | |
.headers(headers_0), | |
http("request_6") | |
.get("/nexus/content/groups/dev/org/vafer/jdependency/1.1/jdependency-1.1.pom") | |
.headers(headers_0), | |
http("request_7") | |
.get("/nexus/content/groups/dev/org/vafer/jdependency/1.1/jdependency-1.1.pom.sha1") | |
.headers(headers_0), | |
http("request_8") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.pom") | |
.headers(headers_0), | |
http("request_9") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.pom.sha1") | |
.headers(headers_0), | |
http("request_10") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.0.4/asm-tree-5.0.4.pom") | |
.headers(headers_0), | |
http("request_11") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.0.4/asm-tree-5.0.4.pom.sha1") | |
.headers(headers_0), | |
http("request_12") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.0.4/asm-commons-5.0.4.pom") | |
.headers(headers_0), | |
http("request_13") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.0.4/asm-commons-5.0.4.pom.sha1") | |
.headers(headers_0), | |
http("request_14") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-util/5.0.4/asm-util-5.0.4.pom") | |
.headers(headers_0), | |
http("request_15") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-util/5.0.4/asm-util-5.0.4.pom.sha1") | |
.headers(headers_0), | |
http("request_16") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar") | |
.headers(headers_0), | |
http("request_17") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-util/5.0.4/asm-util-5.0.4.jar") | |
.headers(headers_0), | |
http("request_18") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.jar") | |
.headers(headers_0), | |
http("request_19") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.jar") | |
.headers(headers_0), | |
http("request_20") | |
.get("/nexus/content/groups/dev/org/vafer/jdependency/1.1/jdependency-1.1.jar") | |
.headers(headers_0), | |
http("request_21") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-analysis/5.0.4/asm-analysis-5.0.4.jar.sha1") | |
.headers(headers_0), | |
http("request_22") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-commons/5.1/asm-commons-5.1.jar.sha1") | |
.headers(headers_0), | |
http("request_23") | |
.get("/nexus/content/groups/dev/org/vafer/jdependency/1.1/jdependency-1.1.jar.sha1") | |
.headers(headers_0), | |
http("request_24") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-tree/5.1/asm-tree-5.1.jar.sha1") | |
.headers(headers_0), | |
http("request_25") | |
.get("/nexus/content/groups/dev/org/ow2/asm/asm-util/5.0.4/asm-util-5.0.4.jar.sha1") | |
.headers(headers_0), | |
http("request_26") | |
.get("/nexus/content/groups/dev/org/scalastyle/scalastyle_2.11/0.8.0/scalastyle_2.11-0.8.0.pom") | |
.headers(headers_0), | |
http("request_27") | |
.get("/nexus/content/groups/dev/org/scalastyle/scalastyle_2.11/0.8.0/scalastyle_2.11-0.8.0.pom.sha1") | |
.headers(headers_0), | |
http("request_28") | |
.get("/nexus/content/groups/dev/org/scalariform/scalariform_2.11/0.1.7/scalariform_2.11-0.1.7.pom") | |
.headers(headers_0), | |
http("request_29") | |
.get("/nexus/content/groups/dev/org/scalariform/scalariform_2.11/0.1.7/scalariform_2.11-0.1.7.pom.sha1") | |
.headers(headers_0), | |
http("request_30") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-xml_2.11/1.0.1/scala-xml_2.11-1.0.1.pom") | |
.headers(headers_0), | |
http("request_31") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-xml_2.11/1.0.1/scala-xml_2.11-1.0.1.pom.sha1") | |
.headers(headers_0), | |
http("request_32") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.pom") | |
.headers(headers_0), | |
http("request_33") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.pom.sha1") | |
.headers(headers_0), | |
http("request_34") | |
.get("/nexus/content/groups/dev/org/codehaus/plexus/plexus-component-annotations/1.5.4/plexus-component-annotations-1.5.4.jar") | |
.headers(headers_0), | |
http("request_35") | |
.get("/nexus/content/groups/dev/org/codehaus/plexus/plexus-component-annotations/1.5.4/plexus-component-annotations-1.5.4.jar.sha1") | |
.headers(headers_0), | |
http("request_36") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar") | |
.headers(headers_0), | |
http("request_37") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar.sha1") | |
.headers(headers_0), | |
http("request_38") | |
.get("/nexus/content/groups/dev/org/scalastyle/scalastyle_2.11/0.8.0/scalastyle_2.11-0.8.0.jar") | |
.headers(headers_0), | |
http("request_39") | |
.get("/nexus/content/groups/dev/org/scalastyle/scalastyle_2.11/0.8.0/scalastyle_2.11-0.8.0.jar.sha1") | |
.headers(headers_0), | |
http("request_40") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-xml_2.11/1.0.1/scala-xml_2.11-1.0.1.jar") | |
.headers(headers_0), | |
http("request_41") | |
.get("/nexus/content/groups/dev/org/scala-lang/modules/scala-xml_2.11/1.0.1/scala-xml_2.11-1.0.1.jar.sha1") | |
.headers(headers_0), | |
http("request_42") | |
.get("/nexus/content/groups/dev/org/scalariform/scalariform_2.11/0.1.7/scalariform_2.11-0.1.7.jar") | |
.headers(headers_0), | |
http("request_43") | |
.get("/nexus/content/groups/dev/org/scalariform/scalariform_2.11/0.1.7/scalariform_2.11-0.1.7.jar.sha1") | |
.headers(headers_0), | |
http("request_44") | |
.get("/nexus/content/groups/dev/com/puppycrawl/tools/checkstyle/6.11.2/checkstyle-6.11.2.pom") | |
.headers(headers_0), | |
http("request_45") | |
.get("/nexus/content/groups/dev/com/puppycrawl/tools/checkstyle/6.11.2/checkstyle-6.11.2.pom.sha1") | |
.headers(headers_0), | |
http("request_46") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-runtime/4.5.1-1/antlr4-runtime-4.5.1-1.pom") | |
.headers(headers_0), | |
http("request_47") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-runtime/4.5.1-1/antlr4-runtime-4.5.1-1.pom.sha1") | |
.headers(headers_0), | |
http("request_48") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-master/4.5.1-1/antlr4-master-4.5.1-1.pom") | |
.headers(headers_0), | |
http("request_49") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-master/4.5.1-1/antlr4-master-4.5.1-1.pom.sha1") | |
.headers(headers_0), | |
http("request_50") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-runtime/4.5.1-1/antlr4-runtime-4.5.1-1.jar") | |
.headers(headers_0), | |
http("request_51") | |
.get("/nexus/content/groups/dev/org/antlr/antlr4-runtime/4.5.1-1/antlr4-runtime-4.5.1-1.jar.sha1") | |
.headers(headers_0), | |
http("request_52") | |
.get("/nexus/content/groups/dev/com/puppycrawl/tools/checkstyle/6.11.2/checkstyle-6.11.2.jar") | |
.headers(headers_0), | |
http("request_53") | |
.get("/nexus/content/groups/dev/com/puppycrawl/tools/checkstyle/6.11.2/checkstyle-6.11.2.jar.sha1") | |
.headers(headers_0))) | |
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment