Last active
August 29, 2015 14:12
-
-
Save ivanursul/02f0ffb929b9899b8464 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 io.gatling.core.Predef.checkBuilder2Check | |
| import io.gatling.core.Predef.findCheckBuilder2ValidatorCheckBuilder | |
| import io.gatling.core.Predef.jsonFile | |
| import io.gatling.core.Predef.scenario | |
| import io.gatling.core.Predef.stringToExpression | |
| import io.gatling.core.json.Jackson | |
| import io.gatling.http.Predef.bodyString | |
| import io.gatling.http.Predef.http | |
| import io.gatling.http.request.builder.AbstractHttpRequestBuilder.toActionBuilder | |
| object AddressTypeIntegrationTest { | |
| val feed = jsonFile("data/address/types/json_data.json").circular | |
| val scn = scenario("Address type get scenario") | |
| .feed(feed) | |
| .exec(http("Address Types Get Paged Result") | |
| .get("${targetUrl}") | |
| .check(bodyString.transform(Jackson.parse).is("${expectedResponse}")) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment