'Getting Non HTTP response code: java.io.FileNotFoundException response code while executing jmeter test for uploading file to a server

OS - Windows Jmeter version - 5.4.3

Problem - I am trying to create a test(http multipart) to upload a file to server. Test file and file to upload is in same directory.

Error - Non HTTP response code: java.io.FileNotFoundException



Solution 1:[1]

We cannot help you without seeing your HTTP Request sampler configuration, it should look like:

enter image description here

Also be aware that it's possible to just record the file upload event using your browser and JMeter's HTTP(S) Test Script Recorder, just make sure that the file(s) you will be uploading is(are) copied to the "bin" folder of your JMeter installation. See Recording File Uploads with JMeter article for more information.

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