Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def testScenario(duration: Int) = scenario("SO").during(duration) {
- exec {
- session => {
- val test = StructuredDataCollection.next()
- val title = test.title
- val method = test.method // Not being used, because it does not work like that :(
- val endpoint = test.endpoint
- val requiredParameters = test.requiredParameters
- val code = test.code
- session
- .set("title", title)
- .set("methodFUG", method).set("endpoint", endpoint)
- .set("requiredParameters", requiredParameters)
- .set("code", code)
- }
- }
- .exec(
- http("${title}")
- .httpRequest("get", "${endpoint}") // TODO: method can't be passed in as an expression. FU Gatling!
- .queryParamMap("${requiredParameters}")
- .check(status.is("${code}"))
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement