.exec(http("request_2")
.post("""/signin""")
.body(RawFileBody("Test_request_2.txt"))
.check(status.is(200)))
The Test_request_2.txt looks like this:
-----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[member_name]"
SellerName
-----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[password]"
SellerPassword
-----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[submitSignin]"
Sign In
-----------------------------64407778716977852291061126114--
I want to simulate this scenario for 10 different sellers. How do I make the SellerName & Password read dynamically?
Any pointers/help is greatly appreciated. Thank you.
-Sonal
--
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.
----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[member_name]"
"${SellerName}"
----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[password]"
"${Password}"
----------------------------64407778716977852291061126114
Content-Disposition: form-data; name="Signin[submitSignin]"
Sign In
----------------------------64407778716977852291061126114
val sellerNameFeeder = csv("sLogin.csv")
val scn = scenario("LoginSimulation")
.feed(sellerNameFeeder)
.exec(http("request_2")
.post("""/signin""")
.body(ELFileBody("Test_request_2.txt"))
.check(status.is(200)))
setUp(scn.inject(atOnceUsers(5))).protocols(httpProtocol)
}
When I run this script, I get a failure saying "[WARN ] i.g.h.a.AsyncHandlerActor - Request 'request_2' failed: status.is(200), but actually found 500"
Could you please tell me what did I miss? Thanks a bunch for your help!
-Sonal
<!-- <logger name="io.gatling.http" level="DEBUG" /> -->
Zend_Form::isValid expects an array
Any idea what this could mean? Am I doing my POST correctly through gatling? Please let me know.