WebPagetest Forums
How to check the performance of the page after login? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: How to check the performance of the page after login? (/showthread.php?tid=15723)



How to check the performance of the page after login? - Jyoti Rajput - 03-23-2019 10:16 PM

How to check the performance of the page after login?

Kindly explain with an example.


RE: How to check the performance of the page after login? - chelvan - 03-25-2019 11:58 PM

Here is documentation on an example of testing a logged in page
https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting


Under the section - Hosted Scripting (WebPagetest) see-
logData 0

// bring up the login screen
navigate http://webmail.aol.com

logData 1

// log in
setValue name=loginId someuser@aol.com
setValue name=password somepassword
submitForm name=AOLLoginForm


RE: How to check the performance of the page after login? - oldweasel - 03-29-2019 03:21 AM

I'm trying something similar and it's not working for some reason (thus my other post about tools to test these scripts Wink ), what might be incorrect in the following (which would hopefully help the OP as well).

I'm trying to capture the events on the shopping cart open, but instead the screenshot I'm getting back is as if the user never logged in at all!

Code:
logData 0
navigate https://www.mysite.com/signin
setValue id=SignIn-emailInput myEmail
setValue id=SignIn-passwordInput myPassword
submitForm id=SignIn-form

logData 1
navigate https://www.mysite.com/shoppingcart



RE: How to check the performance of the page after login? - phacks - 12-13-2019 07:18 PM

Hello!

If the website you’re testing is a Single Page Application (built with e.g. React/Redux or Vue/Vuex), there are some problems with using setValue and submitForm as it does not get picked up by the application State Management library.

I wrote an article to circumvent those problems over at CSS-Tricks that may help you:
https://css-tricks.com/recipes-for-performance-testing-single-page-applications-in-webpagetest/


RE: How to check the performance of the page after login? - MachMetrics - 01-27-2020 03:50 AM

We found the documentation to be pretty technical and hard to follow for some of our users. To that end, we wrote an article about testing behind a login and the step by step process here:

https://www.machmetrics.com/speed-blog/webpagetest-scripting-examples-for-advanced-speed-testing-scenarios/

Hope it helps!


RE: How to check the performance of the page after login? - aftershock07 - 09-16-2020 11:40 PM

@phacks

I tried running the script, it seems not working now...
https://www.webpagetest.org/result/200916_R3_e3667774e78aa9d9a2813d35c3c10464/