Below is the sample response string:
“CallbackHandlerPath”:"/ciqdotnet/widget/handlers/ProprietaryDataandAnalysisfromSPCapitalIQ_930.axd",
I need value of this CallbackHandlerPath which are multiple in response.
I am trying like this
.exec(http("Dashboard")
.get(uri10 + "/CIQDotNet/my/dashboard.aspx")
//new
// .disableFollowRedirect
.headers(headers_0).check(regex("Welcome").find(1).exists)
.check(regex(""" "CallbackHandlerPath":([^:]*),""").findAll.saveAs("CallbackHandlerPathList")))
.foreach("${CallbackHandlerPathList}", "handler") {
exec(session => {
val playerMap = session("handler")
println("handler"+session("handler").as[String])
// val playerId = playerMap("playerId")
session
})
}
But still getting an error regex( "CallbackHandlerPath\":(.*), ).find(0).exists, found no 1 (16.67%)
thing
I checked the response of the call which is correct... Please suggest what am I doing wrong ..