Hi All, I am executing following scenario. When I execute this with Gatling, it fails for some of the iterations. Basically, if I am doing 50 users over 20 seconds, it will pass for first 20 and then fail for next 30. and this failure and pass number changes with each run. It’s not fixed. Also, I am doing this so that I can have some concurrent users over execution time. Now if I have another run with enough of ramp up time, test will pass. For example, ramping up 20 users over 60 seconds.
But if i try to have a run of 50 users during 15 seconds in Jmeter, I don’t see any issues. So I am not sure what am i doing wrong. Not sure if it’s the issue with the way variable is being saved or if it has anything to do with Gatling’s limitations.
Because the first script fails, second one doesn’t even get executed for the failed samples. I get following error for the failed samples:
Error:
regex((?<=)(.*\n?)(?=)).find.exis 38 (100.0%)
ts, found nothing
Simulation:
package computerdatabase
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class UHONETest extends Simulation {
val httpProtocol = http.baseUrl("url1")
val header = Map(
"Authorization" -> "Basic annnbnb267267637")
)
val pl1 = scenario("claimsummary").exec(http("myclaims")
.post("/app")
.headers(header)
.body(ElFileBody("ehub.txt")).check( regex( "(?<=<SubscriberID>)(.*\\n?)(?=</SubscriberID>)").saveAs("subid")))
.pause(300.milliseconds)
.exec(http("claims_1")
.post("validateapp")
.headers(header)
.body(ElFileBody("brload.txt")))
setUp(pl1.inject(rampUsers(50) during (15 seconds)).protocols(httpProtocol))
}