Hyperfoil

parseHtml

Parses HTML tags and invokes handlers based on criteria.

Property Type Description
onEmbeddedResource Builder Handler firing upon reference to other resource, e.g. image, stylesheet…

onEmbeddedResource

Handles <img src="...">, <link href="...">, <embed src="...">, <frame src="...">, <iframe src="...">, <object data="..."> and <script src="...">.

Does not handle <source src="..."> or <track src="..."> because browser would choose only one of the options.

Property Type Description
fetchResource Builder Automatically download referenced resource.
ignoreExternal boolean Ignore resources hosted on servers that are not covered in the http section.
processor Processor.Builder Custom processor invoked pointing to attribute data - e.g. in case of <img> tag the processor gets contents of the src attribute.

onEmbeddedResource.fetchResource

Automates download of embedded resources.

Property Type Description
concurrency int Maximum number of resources fetched concurrently. Default is 8.
maxResources int Maximum number of resources that can be fetched.
metric <list of strings> Metrics selector for downloaded resources.
onCompletion Action.Builder Action performed when the download of all resources completes.

onEmbeddedResource.fetchResource.metric

Metrics selector for downloaded resources.

Property Type Description
<list of strings> <list of strings> Allows categorizing request statistics into metrics based on the request path. The expressions are evaluated in the order as provided in the list. Use one of:
  • regexp -> replacement, e.g. ([^?]*)(\?.*)? -> $1 to drop the query part.
  • regexp (don't do any replaces and use the full path), e.g. .*.jpg
  • -> name (metric applied if none of the previous expressions match).