Sample Gatling 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
package org.smarttechie | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import scala.concurrent.duration._ | |
class SampleRESTEndPointPrefSimulation extends Simulation { | |
val httpProtocol = http | |
.baseURL("<base url of your end point>") //the base url of your end point | |
val restEndPoint = "/posts" //provide the URI of your end point | |
val restEndpointScenario = scenario("Posts_Pref_Simulation") | |
.exec(http("request_1") | |
.get(restEndPoint)) | |
setUp(restEndpointScenario.inject(rampUsers(1000) over (10 seconds))).protocols(httpProtocol) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment