Bhakti Shah
Bhakti Shah

Reputation: 1663

How to upload an image using jmeter?

I have recorded a script to upload an image. It shows File not found exception. Can anyone please help? I want to upload the same image 1000 times?

Its a chat application like whatsapp where I want to send an image. This scenario needs to be recorded.

Upvotes: 0

Views: 85

Answers (1)

Dmitri T
Dmitri T

Reputation: 168237

You need to copy the image into "bin" folder of your JMeter installation in order to be able to successfully record the image upload. Browsers don't have access to the full path of the file due to security reasons, they report only file name to JMeter therefore JMeter cannot locate the file hence you're getting the error.

So copy the image to JMeter's "bin" folder and you should be good to go. Make sure that the image exists in the bin folder during replay.

More information:

Upvotes: 0

Related Questions