Quantcast

JMeter recording disables the Images displayed in the browser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JMeter recording disables the Images displayed in the browser

rampraveen90@gmail.com
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi,

I am testing a web application currently where I come across this issue with image rendering.

When the application is accessed via system proxy or auto proxy settings, I am able to see all the images rendered in that page. But when I go for local proxy settings and start recording the page via JMeter, recording browser is not showing any images. Instead it is showing No Images available.

I tried checking in the JMeter recordings and found that the requesting URL to the Images are modified like below.

Actual Link:
http://pulseartstaging.bsnsports.com/VivxWebAPI-Stage/image/template/get?imageType=png&maxDimension=150&Name=MBSN060.pv&personalizations={%22%23PRIDE%22%3A%20{%22ColorsReplace................

JMeter recorded link:
http://pulseartstaging.bsnsports.com/VivxWebAPI-Stage/image/template/get?imageType=png&maxDimension=150&Name=MBSN060.pv&personalizations={%22#PRIDE%22%3A%20{%22ColorsReplace................

When I tried the JMeter recorded link in a browser, it throws an error message as

Not valid json. Unterminated string. Expected delimiter: ". Path '', line 1, position 2. 999


Can anyone tell me how to resolve this issue?

Thanks,
Praveen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JMeter recording disables the Images displayed in the browser

glinius@live.com
This post has NOT been accepted by the mailing list yet.
Recording calls to images, scripts and styles is not the best practice as this is not how real browsers work.

If you look into HTTP(S) Test Script Recorder's "URL Patterns to Exclude" field you will see that by default (assuming you use Recording Template) JMeter should not record calls to images and JavaScript files.




The reason is that real browsers execute single request to main page followed by several parallel requests to fetch images, scripts and styles. In order to simulate this behavior you should tick "Retrieve All Embedded Resources" and "Parallel Downloads" boxes under HTTP Request Defaults  so JMeter would automatically retrieve these embedded resources like real browsers do.

Check out Web Testing with JMeter: How To Properly Handle Embedded Resources in HTML Responses article to learn more about specifics of  simulating images, scripts and styles calls in realistic manner in JMeter tests.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JMeter recording disables the Images displayed in the browser

rampraveen90@gmail.com
This post has NOT been accepted by the mailing list yet.
Thanks for the A2A.

I have checked in Request Filtering of Test Script Recorder and found that Include list and Exclude list are empty.
Filters in JMeter

Main issue is that the URL is normal when inspected via page source. But when recorded via JMeter, it is encoded with # instead of few values in URL.

Can you brief out what might be the other possible issues might be?

Loading...