'how to let Jmeter add test files as part of the load test

My application is about uploading files and converting them.

How do I add those test files as part of the load test?

Is that by using variable and parameter?

Please share with me samples if there is.



Solution 1:[1]

The easiest way of building a JMeter Test Plan is recording the requests using your browser and JMEter's HTTP(S) Test Script Recorder

In order to be able to record the file upload event you need to copy the file(s) you will be uploading to "bin" folder of your JMeter installation. See Recording File Uploads with JMeter guide for more details if needed.

Once you have test plan "skeleton" you will be able to parameterize file names/correlate dynamic parameters/etc.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T