WebPagetest Forums
Re : Login Script - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Re : Login Script (/showthread.php?tid=13070)



Re : Login Script - zach - 07-01-2014 03:30 PM

Hi,

In performance testing we would like to include login scenario also, hence have gone through the scripting document and tried the below script;

Ex :

navigate https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1<mpl=default<mplcache=2&emr=1
setValue name=Email some username
setValue name=Passwd some password
submitForm name=signIn

Result :

Login was not successful, sometimes i can able to view the data entered in the input field[i.e; in username & password]. But login will not happening.

Hence could you please assist me with this asap. Can we have any interactive session? so that i can clarify further doubts too.

Thanks in Advance,
Zach


RE: Re : Login Script - pmeenan - 07-02-2014 04:45 AM

Your best bet would be to do the form filling and submit with javascript and use the exec and execAndWait commands. That way you can get the script working in a local dev console before submitting.

Odds are that there is some javascript that needs to run as part of the login form submission so the submitForm command isn't triggering the actual login.