WebPagetest Forums
Unable to get page weights(JS, CSS, Image bytes/requests) for test with multi steps - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Unable to get page weights(JS, CSS, Image bytes/requests) for test with multi steps (/showthread.php?tid=16007)



Unable to get page weights(JS, CSS, Image bytes/requests) for test with multi steps - shruti_s_seth_accenture - 03-15-2020 04:17 AM

https://www.webpagetest.org/result/200314_Y1_2f6464c85d0657a3f6f3a92ae27013c0/
Ran the above test with below steps:
etEventName Launch
navigate http://www.bbc.co.uk/
setEventName News
navigate http://www.bbc.co.uk/
execAndWait document.querySelector('.orb-nav-news a').click();

While using WPT Bulk tester, the fetch macro for this test gives below error:
TypeError: Cannot read property 'js' of undefinedDetails

Also as seen in the screenshot, the values are not fetched for
breakdown.js.requests
breakdown.css.requests
breakdown.image.requests
These values are available on the Content Breadown.

If i run same test with only 1 step, these values are fetched.

Can anyone help me get these values for each step using the correct JSON Path extractors?

Thanks for your help!
Shruti


RE: Unable to get page weights(JS, CSS, Image bytes/requests) for test with multi steps - andydavies - 03-23-2020 08:15 PM

You need to take account of the steps in the selection so something like:

data.runs.1.firstView.steps.[0].breakdown.js

Might try to work it out in more depth later