Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save ivanursul/ff74be49780781017721 to your computer and use it in GitHub Desktop.

Select an option

Save ivanursul/ff74be49780781017721 to your computer and use it in GitHub Desktop.
AddressTypeIntegrationTest for ivanursul.com
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