And replace, in the request body, “SellerName” by “${SellerName}” and “Password” by “${Password}”.
Then, all you need is to have “SellerName” and “Password” attributes in the user’s session, with the values you need.
For example, those values could be injected in the session by a feeder, or from the result of a previous check + saveAs.
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!
In the case of ELFileBody, you don’t need to put add quotes around EL expressions, ${SellerName} and ${Password} would do.
And about your error… well… that could come from anything… Could be that the quotes you added means that the server is not able to handle request, could be that the server is temporary unavailable…
If you want to get more info, uncomment the following line in logback.xml :
`
`
This will print (a lot of) debug information and can provide enough detail to find out what cause the internal error.
Or you may have to check the logs of your application to find out what causes the error.
Thanks Pierre! it certainly helped! I am able to read right values for SellerName & Password from the file. Enabling debugging also helped. I am seeing following error on POST :
Zend_Form::isValid expects an array
Any idea what this could mean? Am I doing my POST correctly through gatling? Please let me know.
Sorry, but I can’t help there : This looks like somewhere, you’re sending something that is not a array and it expects one.
This has only to do with the system you’re testing (I guess it is based on Zend Framework, and I haven’t worked with PHP in years :)).
You’re on your own for that one.