Home > Blockchain >  Why is HTTP(S) Test Script Recorder not properly working in a blazor server application
Why is HTTP(S) Test Script Recorder not properly working in a blazor server application

Time:11-26

I'm trying to record the traffic of an upload image scenario in Blazor application through JMeter HTTP(S) Test Script Recorder. I could already access the page but the problem is that when I'm accessing the page while recording, the upload process doesn't work anymore.

I can't choose a file and send that through the upload button and so I can't record the traffic of these actions either. It only happens when I'm recording the traffic through JMeter.

Does anyone know what might be happening?

Edited I've tried to upload the image from the JMETER_HOME/bin but it did not work either.

[This is the response I get. The image miniature it's not displayed and the upload button does not work.][1] [1]: https://i.stack.imgur.com/BCAGT.png

This is what I expect

CodePudding user response:

This might be useful when file upload is recorded

Extract from the HTTPS Test Script Recorder documentation

Some browsers (e.g. Firefox and Opera) don't include the full name of a file when uploading files. This can cause the JMeter proxy server to fail. One solution is to ensure that any files to be uploaded are in the JMeter working directory, either by copying the files there or by starting JMeter in the directory containing the files.

Copy the image to uploaded into the JMETER_HOME/bin folder and upload the file from there when the script is recorded.

CodePudding user response:

Check out jmeter.log file for any suspicious entries.

  1. In order to be able to record file upload the file needs to be present in "bin" folder of your JMeter installation (or in the current working directory if you call JMeter from a shortcut/symlink).

    Look for INFO o.a.j.s.FileServer: Default base line in the aforementioned jmeter.log file - it will tell you the folder where to put the files so JMeter could properly record the file upload request.

  2. You can try out alternative ways of recording i.e. using JMeter Chrome Extension or exporting network dump from browser developer tools as .HAR file and converting this .HAR into JMeter .jmx script via BlazeMeter Converter service

  • Related