How to use Feeder for request-bodies text file request parameters

Hi,

Few of my post requests has filebody. My question is how can we parameterize parameters using feeder in filebody text file RecordedSimulation_request_25.txt.

.exec(http(“request_25”)
.post("/t5/community/page.searchformv1.searchform.form.form")
.headers(headers_25)
.fileBody(“RecordedSimulation_request_25.txt”)

contents of RecordedSimulation_request_25.txt

-----------------------------245943151615096
Content-Disposition: form-data; name=“t:cp”

search/contributions/page
-----------------------------245943151615096
Content-Disposition: form-data; name=“lia-form-context”

rO0ABXNyADRsaXRoaXVtLnRhcGVzdHJ5LmRhdGEucGFyYW1ldGVyLkVudmlyb25tZW50UGFyYW1ldGVys1QW1EpyAN8CAAFMAA1lbnZQYXJhbWV0ZXJzdAAPTGphdmEvdXRpbC9NYXA7eHBzcgAlamF2YS51dGlsLkNvbGxlY3Rpb25zJFVubW9kaWZpYWJsZU1hcPGlqP509QdCAgABTAABbXEAfgABeHBzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAA3QAFnNob3dBZHZhbmNlZFNlYXJjaExpbmt0AAVmYWxzZXQAC2NvbXBvbmVudElkdAAZY29tbW9uLndpZGdldC5zZWFyY2gtZm9ybXQABG1vZGV-cgAgbGl0aGl1bS53ZWIucXVpbHQuQ29tcG9uZW50TW9kZXMAAAAAAAAAABIAAHhyAA5qYXZhLmxhbmcuRW51bQAAAAAAAAAAEgAAeHB0AAdERUZBVUxUeA…
-----------------------------245943151615096
Content-Disposition: form-data; name=“liaFormContentKey”

CommunityPage::searchformv1.searchform.form:
-----------------------------245943151615096
Content-Disposition: form-data; name=“t:formdata”

H4sIAAAAAAAAALWSMU7DMBSGH5U6VQiB4AawOiDRBaaqojBUqChCCISEnlM3NSRxsJ0mXTgKJ0BcogMbd+AArEwMJHGiVsBAUDPZ73/y/3/P9tM7NONLuFAMpTO2HBFoyWmkuQiUNUCXHZjOSEh/skfmBfGZUmm/UDjzhr9ISkJbSJdgiM6YEY0hU1pO28QRknmcEoqKkQ5NRXR0LzuybTMdhTvns9bb1stnA1b60MqxhHeKPtOw0b/FCVoeBq5lp7SBe5iEqVyk23l6blXvYJ2qgw2kcFIjO6I+VyoFmT0P90cfj68NgCSMr+GqOqy+o3/jvYcHAA2bP2/pZrfe6Cy5GdtwVj0iUkwumn+ry6HWMn3x3esIM2McQbe6s9m6EoPIQ8n1tARfN53jeWdJAQb2BHr/8Mq+py6W7BxLdMm7atSuUZfnn+N+AfKMiNuLBAAA
-----------------------------245943151615096
Content-Disposition: form-data; name=“ticket”

Mn0zTMGTQqp6_-1
-----------------------------245943151615096
Content-Disposition: form-data; name=“form_UID”

form
-----------------------------245943151615096
Content-Disposition: form-data; name=“form_instance_key”

-----------------------------245943151615096
Content-Disposition: form-data; name=“messageSearchField”

goodybag
-----------------------------245943151615096
Content-Disposition: form-data; name=“messageSearchField_0”

-----------------------------245943151615096
Content-Disposition: form-data; name=“userSearchField”

-----------------------------245943151615096
Content-Disposition: form-data; name=“searchGranularity”

napa>community
-----------------------------245943151615096
Content-Disposition: form-data; name=“submitContextX”

searchForm
-----------------------------245943151615096
Content-Disposition: form-data; name=“submitContext”

Search
-----------------------------245943151615096–

Hi,

What’s this serialization format?

How do I find serialization format. I don’t see it recorded in Gatling script.

Thanks

Your request body is obviously not plain text.

Where does it come from? GWT? Silverlight? etc

I don’t think its either GWT or Silverlight. we use Apache Tapestry.

This is part of searching for text in our product.

You can try http://lithosphere.lithium.com/ having search on top right.

Thanks

–Sandeep

Sorry, first time in my life I actually face Tapestry, I won’t be of much help.

What I can tell is that the part of your ajax payload that’s related to your form input is the content of messageSearchField, here “goodybag”.
In Gatling 1, in order to replace “goodybag” with data coming from a feeder, you can either use:

Cheers,

Stéphane