I have one http get that returns this json as response:
`
{“modeltabSearchData”:[{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”
:0.000 },{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0.000 },{“MATNR”
:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0.000 }]}
`
I want to loop this request about 50.000 times (!) with a loop.
then being able to save every 50.000 json body being returned (somewhere) and then reuse the 50.000 jsonbodies in the subsequent request like this (for only 2 instances not 50.000):
.exec(http(“request_0”)
.post("/xxx")
.headers(headers_0)
.formParam("""{}||[{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0},{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0},{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0},{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0}]""", “”))
a very large “formParam” in other words. could Gatling even hold a 50.000 object json in runtime as i.e. a vector?
Any idea how to do this?
Thanks!