Bug 44301 - Enable "ignore failed" for embedded resources
Summary: Enable "ignore failed" for embedded resources
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.3.1
Hardware: All All
: P2 enhancement with 2 votes (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on: 52409
Blocks:
  Show dependency tree
 
Reported: 2008-01-26 23:58 UTC by Eyal Lupu
Modified: 2012-01-08 22:11 UTC (History)
1 user (show)



Attachments
Test Plan using tomcat (13.02 KB, application/xml)
2012-01-08 22:08 UTC, Philippe Mouawad
Details
Test page to put in tomcat/webapps/ROOT (7.60 KB, text/html)
2012-01-08 22:09 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Lupu 2008-01-26 23:58:13 UTC
When asking the HTTP samplers to download embedded resources it will fail the 
entire request if any of the embedded resources fetching has failed (for 
example a CSS which doesn't exists). 

I would like to have an option to ignore such errors. For example, I would like 
to use JMeter to generate a load which tests a switch I wrote - but if it fails 
for embedded resources I can't tell if the reason to the error was my switch or 
something else (a 404 errors on embedded resources are very common). I would 
like to be able to run a full success scenario using JMeter w/o my switch, then 
to plug-in the switch and see the difference.
Comment 1 Philippe Mouawad 2012-01-01 22:21:10 UTC
Note that this issue generates StackOverflowException when displaying built Results in Tree  (because children node and parent nodes are the same):
2012/01/01 23:16:27 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError
	at javax.swing.tree.TreePath.<init>(TreePath.java:98)
	at javax.swing.tree.TreePath.<init>(TreePath.java:98)
	at javax.swing.tree.TreePath.<init>(TreePath.java:98)
Comment 2 Philippe Mouawad 2012-01-08 22:08:38 UTC
Created attachment 28125 [details]
Test Plan using tomcat
Comment 3 Philippe Mouawad 2012-01-08 22:09:11 UTC
Created attachment 28126 [details]
Test page to put in tomcat/webapps/ROOT
Comment 4 Philippe Mouawad 2012-01-08 22:09:28 UTC
Date: Sun Jan  8 22:08:01 2012
New Revision: 1228972

URL: http://svn.apache.org/viewvc?rev=1228972&view=rev
Log:
Bug 44301 - Enable "ignore failed" for embedded resources

Modified:
   jmeter/trunk/bin/jmeter.properties
   jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
   jmeter/trunk/xdocs/changes.xml
Comment 5 Philippe Mouawad 2012-01-08 22:11:24 UTC
New jmeter property added:
# If embedded resources download fails due to missing resources or other reasons, if this property is true
# Parent sample will not be marked as failed 
httpsampler.ignore_failed_embedded_resources=false


Set to true to ignore failing embedded resources
Comment 6 The ASF infrastructure team 2022-09-24 20:37:41 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2064