In a sample, I checked "Retrieve all Embedded Resources" but now my sample reports an error if a linked resource is missing (HTTP status 404 from the server).
Can I tell my sample to retrieve the embedded resources but to ignore missing or problematic linked resources ? (so I can stop the unit only if a real functional problem occurs, and not when an image is missing)
Senior Software Engineer - QA Here is a quick solution I tried to ignore the embedded resource failure so that parent samples are not marked as failed. Go to your JMeter file folder where it is installed, navigate to bin > jmeter. properties. Change the property value to True and uncomment it.
The answer is that the secondary requests are made in parallel threads. When we select the option Retrieve All Embedded Resources, there is another option next to that checkbox that allows us to set the number of parallel downloads, meaning the number of threads requesting the embedded resources.
Assertion in JMeter is used to validate response of the request, that you have sent to the server. Assertion is a process where you verify expected result with the actual result of the request at run time. If you need to apply assertion on a particular Sampler, then add it as a child of that Sampler.
You can work it around using JMeter Assertions
Configure it as follows:
Main sample and sub-samples
Ignore status
In this case erroneous statuses of mail sampler and its children will be ignored.
See How to Use JMeter Assertions in 3 Easy Steps for more information on pass/fail criteria definition via Assertions
One possibility is to edit ./bin/jmeter.properties
and set httpsampler.ignore_failed_embedded_resources=true
as fixed by Bug 44301.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With