Hello,
Actually I want to get the location from header response, so I’m using currentLocationRegex as mentioned in Gatling - HTTP Checks
But it seems Eclipse doesn’t accept it, it can’t recognize the function(even the package is already imported).
Here it’s the code that I’m using :
.exec(
http(“/auth/realms/bhs-ca/login-actions/authenticate?session_code=”+sessionUrl)
.post(authURL+“/auth/realms/bhs-ca/login-actions/authenticate?session_code=”+sessionUrl)
.formParam(“username”, “********”)
.formParam(“password”, “*******”)
.formParam(“reponse_type”, “code”)
.headers(headers_3)
.check(status().is(200))
.check(currentLocationRegex(“session_state=(.*)&code=(.*)”).captureGroups(2).saveAs(code))
)
I’ve used before regex to check a value in response body and it worked well!
Anyone has a solution for that?
Thank you