fugmag
1
My chained .exec looks like this:
`
.exec(http(“INVENTORY_LOOKUP”)
.get("/nn/nn_ajax?ajax_id=LOOKUP&ajax_applid=UI5_INVENTORY_LOOKUP&field_id=00003&ajax_value=undefined")
.headers(headers)
.formParam("""{“MATNR”:"${articles}"}""", “”)
.check(status.is(200)))
`
My challenge is thatI need to test with up 50.000 articles in one GET.
Of course I can do like this:
`
.exec(http(“INVENTORY_LOOKUP”)
.get("/nn/nn_ajax?ajax_id=LOOKUP&ajax_applid=UI5_INVENTORY_LOOKUP&field_id=00003&ajax_value=undefined")
.headers(headers)
.formParam("""{}||[{“MATNR”:“100156”},{“MATNR”:“100180”}]""", “”)
.check(status.is(200)))
`
and have 50.000 ‘MATNR’ inside the .formParam.
It seems clumsy and is it even possible?
Anyone that can be helpful with some tricks to being able to test one http GET with 50.000 values in the .formParam ?
Kind Regards
Magnus
I thought with get you use queryParam not formParam. Have you tried multivaluedQueryParams http://gatling.io/docs/2.1.7/http/http_request.html?highlight=multivalued#query-parameters
fugmag
3
Abbinav,
You are absolutely right, my typo. It is supposed to be POST.
`
.exec(http(“a_lot”)
.post("/like_it/like_it_ajax?ajax_id=LOOKUP&ajax_applid=UI5_INVENTORY_LOOKUP&field_id=00003&ajax_value=undefined")
.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}]""", “”)
)
`
My general question is, would it even be possible to have 50.000 lines like:
`
{“MATNR”:“000000000000707070”,“WERKS”:“1003”,“LGORT”:“0001”,“POS”:"",“LABST_SUM”:0}
`
even if “hard-coded” into the script?
Or would gatling crash, the http protocol would not accept i.e.
I is an enormous size.
Thanx.
Why not just try it. 50000 lines is 3.1 MB. I am sure its not a problem.
for i in
seq 1 50000; do echo $i "{"MATNR":"000000000000707070","WERKS":"1003","LGORT":"0001","POS":"","LABST_SUM":0}" >> test.txt done