One function - tow requests

val buildWS =
exec(http(description)
.post("/home/system/com.eibus.web.soap.Gateway.wcp")
.basicAuth(“em”, “em12345”)
.fileBody(“buildWorkspace”,Map(“branchID” → “${branchID}”, “docID” → docID)).asXML
)

val scn = scenario(“Loadtest scenario”)

.exec(buildWS(description))
.repeat(5)(buildWS(description))

In the above code I want to give the argument description, so that I have two different requests in the report. How to realize this?

Hi,

you must define buildWS like this:

def buildWS(description: String) = …same code here…

It should work as you expect :wink:

Cheers,

That’s easy :slight_smile: Thanks!