andrewkrgeo commented on issue #6085:
URL: https://github.com/apache/jmeter/issues/6085#issuecomment-2135216124
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,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]