We have released an update to the LoadForge test clients that allows automatic discovery of page resources.
This feature allows you to set a regular expression which will then automatically fetch that content from pages. For example, the below get will also load page resources ending in .css, .js. and .png.
@task def include_resources_true(self): self.client.get("/", resource_filter=".*[^(js|png|css)]$")
We typically advise creating your test to manually include resources you wish to fetch, as this will not execute JS, so you may want to fetch AJAX resources. Or alternatively, you could upload a browser recording (.har) to achieve that same. Having said that, this makes small and simple tests much easier.
Recent blog posts from our load testing experts: