Last active
August 29, 2015 14:13
-
-
Save ivanursul/dfb71bbdf299fda12e93 to your computer and use it in GitHub Desktop.
IntegrationTest.scala for 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 assertions._ | |
| 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 | |
| import org.lnu.is.integration.education.types.EducationTypeIntegrationTest | |
| 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) | |
| .assertions( | |
| global.successfulRequests.percent.greaterThan(95) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment