Do not report missing "Embedded Resources" as an error in jMeter

In the sample, I checked "Get all embedded resources", but now my example reports an error if there is no associated resource (HTTP status 404 from the server).

Can I tell my sample to get embedded resources, but ignore missing or problematic related resources? (therefore, I can stop the device only if a real functional problem occurs, and not in the absence of an image)

+7
jmeter
source share
2 answers

You can use it using JMeter Assertions

  • Add a Response to the answer as a child of the sampler that produces 404 code
  • Configure it as follows:

    • Apply to: check Main sample and sub-samples
    • Response fields to check: check Ignore status

Response assertion

In this case, the erroneous statuses of the mail sampler and its children are ignored.

See How to Use JMeter Claims in 3 Easy Steps for more information on defining pass / fail criteria using claims.

+6
source share

One possibility is to edit ./bin/jmeter.properties and set httpsampler.ignore_failed_embedded_resources=true as fixed with Error 44301 .

+6
source share

All Articles