Skip to content

Commit

Permalink
Add basic performance test scenario for fetching speed limits by boun…
Browse files Browse the repository at this point in the history
…ding box
  • Loading branch information
mhautala committed Aug 12, 2015
1 parent ef81c1f commit fc1d414
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package fi.liikennevirasto.digiroad2.performance

import io.gatling.core.Predef._
import io.gatling.http.Predef._

class FetchSpeedLimitsSimulation extends Simulation {
val httpConf = http
.baseURL("http://10.129.47.148:8080/digiroad/api/")
.header("Cookie", "testusername=test2")

val scn = scenario("Fetch speed limits by bounding box on maximum zoom level")
.exec(http("Fetch road links").get("roadlinks2?bbox=372056,6674877,375624,6680169"))
.exec(http("Fetch speed limits").get("speedlimits?bbox=372056,6674877,375624,6680169"))

setUp(scn.inject(atOnceUsers(1))).protocols(httpConf)
}

0 comments on commit fc1d414

Please sign in to comment.