.get(uri1 + "/security/pages/Login.jspx?_afrLoop=1805190504273000&_afrWindowMode=0&_afrWindowId=15ju479l2n_1")))
package pooya.intl.test.login
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import io.gatling.core.check.SaveAs
import io.gatling.core.check.SaveAs
import io.gatling.http.response.ResponseBody
class MyLogin extends Simulation {
val httpProtocol = http
.baseURL("http://127.0.0.1:7101")
.inferHtmlResources()
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("en-US,en;q=0.5")
.connection("keep-alive")
.userAgentHeader("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0")
.disableResponseChunksDiscarding
val uri1 = "http://127.0.0.1:7101/intl/faces"
val scn = scenario("MyLogin")
.exec(http("request_0")
.get("/intl/faces/security/pages/Login.jspx")
.resources(http("request_1")
.get(uri1 + "/security/pages/Login.jspx?_afrLoop=1805190504273000&_afrWindowMode=0&_afrWindowId=15ju479l2n_1")))
.pause(2)
.exec(http("request_2")
.post("/intl/faces/security/pages/Login.jspx?_adf.ctrl-state=17w9barjex_19")
.formParam("pt:username", "admin")
.formParam("pt:password", "123456")
.formParam("org.apache.myfaces.trinidad.faces.FORM", "dataForm")
.formParam("javax.faces.ViewState", "!-5zyl39i6n")
.formParam("event", "pt:login")
.formParam("event.pt:login", """<m xmlns="http://oracle.com/richClient/comm"><k v="type"><s>action</s></k></m>""")
.resources(http("request_3")
.get(uri1 + "/settingjavascriptservlet.js"),
http("request_4")
.get(uri1 + "/jheadstart/images/go_ena.png")
.check(status.is(304)),
http("request_5")
.get(uri1 + "/favicon.ico")
.check(status.is(304))))
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}<AdfcExceptionHandler> <handleException> ADFc: While handling an exception the application's exception handler threw a new exception.
javax.faces.application.ViewExpiredException: viewId:/security/pages/Login.jspx - ADF_FACES-30107:The view state of the page has expired. Reload the page.
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
_afrLoop= &_afrWindowMode= &_afrWindowId=