JMeter add specified path to embedded resource request
Making a HTTP request in JMeter with Retrieve All Embedded Resources enabled and it is making the the page request just fine, but when it is making the requests for the embedded images, it is appending the specified path to the page in front of the full path returned for the image.
For example:
Server name = example.com
Path = folder/pageName
When it makes the requests for embedded images it is making the following request:
GET https://example.com/folder/pageName/%5C%22FullImagePath
with FullImagePath = https://example.com/files/imageName
Is there anyway to prevent the Path from being appended to the front of FullImagePath in these requests?
jmeter
add a comment |
Making a HTTP request in JMeter with Retrieve All Embedded Resources enabled and it is making the the page request just fine, but when it is making the requests for the embedded images, it is appending the specified path to the page in front of the full path returned for the image.
For example:
Server name = example.com
Path = folder/pageName
When it makes the requests for embedded images it is making the following request:
GET https://example.com/folder/pageName/%5C%22FullImagePath
with FullImagePath = https://example.com/files/imageName
Is there anyway to prevent the Path from being appended to the front of FullImagePath in these requests?
jmeter
add a comment |
Making a HTTP request in JMeter with Retrieve All Embedded Resources enabled and it is making the the page request just fine, but when it is making the requests for the embedded images, it is appending the specified path to the page in front of the full path returned for the image.
For example:
Server name = example.com
Path = folder/pageName
When it makes the requests for embedded images it is making the following request:
GET https://example.com/folder/pageName/%5C%22FullImagePath
with FullImagePath = https://example.com/files/imageName
Is there anyway to prevent the Path from being appended to the front of FullImagePath in these requests?
jmeter
Making a HTTP request in JMeter with Retrieve All Embedded Resources enabled and it is making the the page request just fine, but when it is making the requests for the embedded images, it is appending the specified path to the page in front of the full path returned for the image.
For example:
Server name = example.com
Path = folder/pageName
When it makes the requests for embedded images it is making the following request:
GET https://example.com/folder/pageName/%5C%22FullImagePath
with FullImagePath = https://example.com/files/imageName
Is there anyway to prevent the Path from being appended to the front of FullImagePath in these requests?
jmeter
jmeter
asked Nov 14 '18 at 23:18
ccruzTestccruzTest
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I can see 2 possible reasons for this behavior:
A bug in your application, i.e. it refers the image in an incorrect way therefore it could not be loaded. Double check the page loading process using your browser developer tools and look into "Console" tab for possible errors and "Network" tab for
404
HTTP Status Codes. If browser behaves the same way as JMeter does - report the issue to your application developers.A bug in JMeter. It might be the case JMeter fails to properly extract resource from the page. In this case it's better to raise an issue in JMeter Bugzilla. However prior to doing this I would recommend increasing JMeter log level verbosity for embedded resources downloader and check for suspicious entries in the jmeter.log file. You can do this by adding the next lines to log4j2.xml file:
<Logger name="org.apache.jmeter.protocol.http.parser" level="debug" />
<Logger name="org.apache.jmeter.protocol.http.sampler.ResourcesDownloader" level="debug" />most probably you will be asked for the logs by JMeter developers. You can also update your question with the log file, there is a chance that StackOverflow community will be able to come up with a suggestion or a solution. Also if your application is available to public and doesn't require login you could also post the URL to the problematic page
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310207%2fjmeter-add-specified-path-to-embedded-resource-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I can see 2 possible reasons for this behavior:
A bug in your application, i.e. it refers the image in an incorrect way therefore it could not be loaded. Double check the page loading process using your browser developer tools and look into "Console" tab for possible errors and "Network" tab for
404
HTTP Status Codes. If browser behaves the same way as JMeter does - report the issue to your application developers.A bug in JMeter. It might be the case JMeter fails to properly extract resource from the page. In this case it's better to raise an issue in JMeter Bugzilla. However prior to doing this I would recommend increasing JMeter log level verbosity for embedded resources downloader and check for suspicious entries in the jmeter.log file. You can do this by adding the next lines to log4j2.xml file:
<Logger name="org.apache.jmeter.protocol.http.parser" level="debug" />
<Logger name="org.apache.jmeter.protocol.http.sampler.ResourcesDownloader" level="debug" />most probably you will be asked for the logs by JMeter developers. You can also update your question with the log file, there is a chance that StackOverflow community will be able to come up with a suggestion or a solution. Also if your application is available to public and doesn't require login you could also post the URL to the problematic page
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
add a comment |
I can see 2 possible reasons for this behavior:
A bug in your application, i.e. it refers the image in an incorrect way therefore it could not be loaded. Double check the page loading process using your browser developer tools and look into "Console" tab for possible errors and "Network" tab for
404
HTTP Status Codes. If browser behaves the same way as JMeter does - report the issue to your application developers.A bug in JMeter. It might be the case JMeter fails to properly extract resource from the page. In this case it's better to raise an issue in JMeter Bugzilla. However prior to doing this I would recommend increasing JMeter log level verbosity for embedded resources downloader and check for suspicious entries in the jmeter.log file. You can do this by adding the next lines to log4j2.xml file:
<Logger name="org.apache.jmeter.protocol.http.parser" level="debug" />
<Logger name="org.apache.jmeter.protocol.http.sampler.ResourcesDownloader" level="debug" />most probably you will be asked for the logs by JMeter developers. You can also update your question with the log file, there is a chance that StackOverflow community will be able to come up with a suggestion or a solution. Also if your application is available to public and doesn't require login you could also post the URL to the problematic page
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
add a comment |
I can see 2 possible reasons for this behavior:
A bug in your application, i.e. it refers the image in an incorrect way therefore it could not be loaded. Double check the page loading process using your browser developer tools and look into "Console" tab for possible errors and "Network" tab for
404
HTTP Status Codes. If browser behaves the same way as JMeter does - report the issue to your application developers.A bug in JMeter. It might be the case JMeter fails to properly extract resource from the page. In this case it's better to raise an issue in JMeter Bugzilla. However prior to doing this I would recommend increasing JMeter log level verbosity for embedded resources downloader and check for suspicious entries in the jmeter.log file. You can do this by adding the next lines to log4j2.xml file:
<Logger name="org.apache.jmeter.protocol.http.parser" level="debug" />
<Logger name="org.apache.jmeter.protocol.http.sampler.ResourcesDownloader" level="debug" />most probably you will be asked for the logs by JMeter developers. You can also update your question with the log file, there is a chance that StackOverflow community will be able to come up with a suggestion or a solution. Also if your application is available to public and doesn't require login you could also post the URL to the problematic page
I can see 2 possible reasons for this behavior:
A bug in your application, i.e. it refers the image in an incorrect way therefore it could not be loaded. Double check the page loading process using your browser developer tools and look into "Console" tab for possible errors and "Network" tab for
404
HTTP Status Codes. If browser behaves the same way as JMeter does - report the issue to your application developers.A bug in JMeter. It might be the case JMeter fails to properly extract resource from the page. In this case it's better to raise an issue in JMeter Bugzilla. However prior to doing this I would recommend increasing JMeter log level verbosity for embedded resources downloader and check for suspicious entries in the jmeter.log file. You can do this by adding the next lines to log4j2.xml file:
<Logger name="org.apache.jmeter.protocol.http.parser" level="debug" />
<Logger name="org.apache.jmeter.protocol.http.sampler.ResourcesDownloader" level="debug" />most probably you will be asked for the logs by JMeter developers. You can also update your question with the log file, there is a chance that StackOverflow community will be able to come up with a suggestion or a solution. Also if your application is available to public and doesn't require login you could also post the URL to the problematic page
answered Nov 15 '18 at 4:55
Dmitri TDmitri T
74.3k33765
74.3k33765
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
add a comment |
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
Thanks i'll look into that.
– ccruzTest
Nov 15 '18 at 22:35
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310207%2fjmeter-add-specified-path-to-embedded-resource-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown