Search code examples
file-uploadjmeterzkjmeter-plugins

Upload failed while using Jmeter ZK Plugin


I'm currently facing a problem when trying to upload a file after running the Jmeter using the zk-plugin. It works fine when uploading without running the Jmeter.

It displays a pop-up message in ZK:

Upload Aborted : (contentId is required)

Inside the Jmeter:

Thread Name: Thread Group 1-1
Sample Start: 2015-04-16 17:35:15 SGT
Load time: 2
Connect Time: 0
Latency: 0
Size in bytes: 2549
Headers size in bytes: 0
Body size in bytes: 2549
Sample Count: 1
Error Count: 1
Response code: Non HTTP response code: java.io.FileNotFoundException
Response message: Non HTTP response message: 13 4 2015.txt (The system cannot find the file specified)

Response headers: HTTPSampleResult fields: ContentType: DataEncoding: null

How to fix this problem?


Solution

  • It seems like we can only upload file that is inside our jmeter/bin. I upload using some files inside the jmeter/bin and the message is gone.

    During recording you need to put the file you want to upload in jmeter/bin folder. This is due to some limitations of browsers which do not transmit the full path.

    Reference : File upload fails during recording using JMeter , the first answer by pmpm