Skip to content

Instantly share code, notes, and snippets.

View dibyom's full-sized avatar
👋

Dibyo Mukherjee dibyom

👋
View GitHub Profile
@dibyom
dibyom / GatlingMultiConfigSimulation
Last active September 10, 2015 22:49 — forked from infomaven/GatlingMultiConfigSimulation
Enables user to select between different execution profiles from the same Gatling Simulation class file
val httpProtocol = http.baseURL("http://localhost:8000")
case class TestSetup(repeat: Int, users: InjectionStep, label: String) // <-- config holder
val sequentialUserTest = TestSetup(repeat = 100, atOnce(1 user), "sequential 1 user")
val oneUserPer4sTest = TestSetup(repeat = 2, constantRate(0.25 userPerSec).during(5 minutes), "1 usr/4s, 2 req / user")
val threeCentIn5Mins = TestSetup(repeat = 5, ramp(300).over(5 minute), "300 usr w/ 5 req in 5 mins")
val testSetUp = sequentialUserTest // <-- config selection (could be also done at runtime)
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;