Hi guys,
but i'm receiving "regex(="javax.faces.ViewState" value="([^"]*)").find(0).exists 1 (100,0%)
, found nothing"
here is some code:
val httpProtocol = http
.baseURL("http://localhost:8080/cdi-crud")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,application/json;charset=utf-8")
.acceptEncodingHeader("gzip, deflate")
.inferHtmlResources()
.connection( """keep-alive""")
.contentTypeHeader("*/*")
.acceptLanguageHeader("pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3")
.userAgentHeader("Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0")
val jsfViewStateCheck = regex( """="javax.faces.ViewState" value="([^"]*)"""")
.saveAs("viewState")
def jsfGet(name: String, url: Expression[String]) =
http(name)
.get(url)
.check(jsfViewStateCheck)
def jsfPost(name: String, url: Expression[String]) = http(name)
.post(url)
.formParam("javax.faces.ViewState", "${viewState}")
.check(jsfViewStateCheck)
val loginScenario = scenario("login")
.exec(
jsfGet("saveState","/index.faces")
.resources(http("request_resources").get( "/"))
.check(status.is(200))
)
/*.exec(openDialogRequest)
.pause(2)
.exec(doLogonRequest)
.pause(1)*/
setUp(
loginScenario.inject( atOnceUsers(1) )
)
.protocols(httpProtocol)
.assertions(
global.successfulRequests.percent.greaterThan(95)
)
and here is the error:
regex(="javax.faces.ViewState" value="([^"]*)").find(0).exists 1 (100,0%)
, found nothing
its probably a detail,
any help is appreciated.