Open michal-chudy-paylocity opened 9 months ago
I still have problems uploading in 5.6.3.
@michal-chudy-paylocity Have you found any workaround to this? Or we cannot upload at all with the latest Jmeter?
Interested in workaround on 5.6.2 issue. I am facing the problem executing jmx tests on Azure Load Testing environment that upgraded jmeter server versions to 5.6.2 from 5.4.3 as reporte by @michal-chudy-paylocity.
thanks for the help!!
@andrewkrgeo workaround for uploading is to set this to Java (advanced options in your http request)
At the end I found that the problem is related with JMETER 5.6.x does not support relative file paths when specifying it in a multipart/form-data POST request.
In a test of mine I changed it with absolute path, changed sample implementation to Java and UPLOAD worked again.
Still not working the recorder, giving always "file not found" java exception, so I need to add Upload sample manually after recording the first steps.
To get the absolute path I used a BeanShell script, preferring to have documents in the same path of JMX files:
${__BeanShell(import org.apache.jmeter.services.FileServer; FileServer.getFileServer().getBaseDir();)}
Give it a try,
@andrewkrgeo workaround for uploading is to set this to Java (advanced options in your http request)
I set that, but still not working cause the relative file path in the configuration.
The workaroun i found works by now!
Expected behavior
Expected behaviour: The file is uploaded
Actual behavior
files
parameter doesn't contain the filenameThe same request works as expected in jMeter 5.4.3
Steps to reproduce the problem
Outline
As you can see from the description below, the file upload is broken in both, the jMeter proxy as well as when using an HTTP request sampler to upload it.
Option 1 - record the request from the browser
Option 1.1 - copy the recorded request and run it as a part of a test plan
Option 2 - verify the request in Postman and try to send the request from Postman via jMeter proxy
JMeter Version
5.6.2
Java Version
JDK 21 2023-09-19 LTS
OS Version
Microsoft Windows 10 Enterprise, OS Version: 10.0.19045 N/A Build 19045