Last active
August 29, 2015 14:13
-
-
Save ivanursul/42c0c8e8963a4443489b to your computer and use it in GitHub Desktop.
IntegrationTest.scala for www.ivanursul.com
This file contains hidden or 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.lnu.is.integration | |
| import org.lnu.is.integration.adminunit.AdminUnitIntegrationTest | |
| import io.gatling.core.Predef.Simulation | |
| import io.gatling.core.Predef.atOnceUsers | |
| import io.gatling.core.Predef.stringToExpression | |
| import io.gatling.http.Predef.http | |
| import io.gatling.http.config.HttpProtocolBuilder.toHttpProtocol | |
| class IntegrationTest extends Simulation { | |
| val host = System.getProperty("integration.host") | |
| val httpConf = http | |
| .baseURL(host) | |
| .acceptHeader("application/json") | |
| val injectStep = atOnceUsers(1); | |
| setUp( | |
| AdminUnitIntegrationTest.scn.inject(injectStep) | |
| ) | |
| .protocols(httpConf) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment