microsoft / azure-load-testing

MIT License
22 stars 2 forks source link

[Feature Request] - Ability to add multipart/form-data files to requests #118

Open JoeTomkinson opened 1 year ago

JoeTomkinson commented 1 year ago

JMeter (as does PostMan) allows us to attach files to our load test requests as part of a multiform/form-data parameter with a path to the file we want to send.

The only other alternative that I see to perform load testing that has a requirement to also send a csv file attached as form-data is to spin up a VM install JMeter and start to scale it to handle volume demand.

AB#1673195

Sachid26 commented 1 year ago

@JoeTomkinson... For the scenario of uploading a file have you tried the scenario locally with JMeter?

JoeTomkinson commented 1 year ago

@JoeTomkinson... For the scenario of uploading a file have you tried the scenario locally with JMeter?

yes, it is possible to do this locally with JMeter - Our scenario is based around IoT devices that send in CSV files as form-data as part of their HTTP Request over our Application Gateway, so for us to volume test the rest of our solution, we need to also send in versions of these CSV files.

I can't see anyway currently to do this with 'Azure Load Testing' I thought at first that we could upload the csv and somehow reference it as an absolute url path; but that isn't something we can do with this resource yet as far as I am aware.

Screenshot 2022-11-10 084240 Screenshot 2022-11-10 084645

Screenshots above are just a snippets from JMeter showing the 'use multi-part/form-data' checkbox and with a file added.

Sachid26 commented 1 year ago

@JoeTomkinson... you may upload the file along with the JMX test plan and in the file path under the file upload tab in the Jmeter test plan you can just specify the file name. Can you run it and confirm if it is working for you? MicrosoftTeams-image