How to check the performance of the page after login?
Kindly explain with an example.
How to check the performance of the page after login?
Kindly explain with an example.
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
I’m trying something similar and it’s not working for some reason (thus my other post about tools to test these scripts ), 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[/code]
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:
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:
Hope it helps!
I tried running the script, it seems not working now…
[url=https://www.webpagetest.org/result/200916_R3_e3667774e78aa9d9a2813d35c3c10464/]https://www.webpagetest.org/result/200916_R3_e3667774e78aa9d9a2813d35c3c10464/[/url]