Last active
January 8, 2020 20:42
-
-
Save MovileGente/af681e60fc61fd8a5d73363aa886147e to your computer and use it in GitHub Desktop.
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 io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class BasicSimulation extends Simulation { | |
val httpProtocol = http | |
.baseUrl("http://computer-database.gatling.io") | |
.acceptHeader("text/html,application/xhtml+xml,application/xml;) | |
.doNotTrackHeader("1") | |
.acceptLanguageHeader("en-US,en;q=0.5") | |
.acceptEncodingHeader("gzip, deflate") | |
val scn = scenario("BasicSimulation") | |
.exec(http("request_1") | |
.get("/")) | |
.pause(5) | |
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