Created
January 3, 2015 15:22
-
-
Save ivanursul/f9754f16384df60088ad to your computer and use it in GitHub Desktop.
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.person.PersonIntegrationTest | |
| 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 httpConf = http | |
| .baseURL("your REST WEB SERVICE URL") | |
| .acceptHeader("application/json") | |
| val injectStep = atOnceUsers(1); | |
| setUp( | |
| PersonIntegrationTest.scn.inject(injectStep) | |
| ).protocols(httpConf) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment