mardi 13 novembre 2018

How to upload file in a JSF application using JMeter

I've been asked this time to also create a test script for file upload in a JSF application using JMeter. The generated script from blazemeter is as follows:

generated script for input form

The encircled value is the file name. I have noticed that the parameter was not created under "Files Upload" tab, so I have also tried to move the parameter to File Upload tab, using the generated content type in our application logs when uploading as Mime Type in JMeter:

Jmeter file upload tab

Generated content type

But it has the same result when I first tried the script where the file name parameter was still under "Parameters" tag (file name is null according to localhost application logs):

Application log indicating that file name is null

The UI of the file upload is this. The user clicks browse button, picks a file then the name of the file is displayed in the input field (Import File):

File upload UI

Am I missing a step or doing something incorrectly?

Thank you in advance! Any help would be greatly appreciated.

Aucun commentaire:

Enregistrer un commentaire