Last active
August 29, 2015 14:13
-
-
Save ivanursul/ff74be49780781017721 to your computer and use it in GitHub Desktop.
AddressTypeIntegrationTest 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.address.types | |
| import scala.io.Source | |
| import io.gatling.core.Predef.checkBuilder2Check | |
| import io.gatling.core.Predef.findCheckBuilder2ValidatorCheckBuilder | |
| import io.gatling.core.Predef.scenario | |
| import io.gatling.core.Predef.stringToExpression | |
| import io.gatling.http.Predef.bodyString | |
| import io.gatling.http.Predef.http | |
| import io.gatling.http.request.builder.HttpRequestBuilder.toActionBuilder | |
| import io.gatling.http.request.RawFileBody | |
| object AddressTypeIntegrationTest { | |
| val response = RawFileBody("address/types/expected.json") | |
| val scn = scenario("Address type get scenario") | |
| .exec(http("Address Types Get Paged Result") | |
| .get("/addresstypes") | |
| .check(bodyString.is(response)) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment