WebPagetest Forums
What is wrong with this test ? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: What is wrong with this test ? (/showthread.php?tid=920)



What is wrong with this test ? - djash01 - 07-13-2011 10:27 AM

I want to test a page which can be accessed after logging in. I created a script to achieve that:

==============
logData 0

// put any urls you want to navigate
navigate http://www.facebook.com/

logData 1

// this step will get recorded
setValue name=email jmssmith584@gmail.com
setValue name=awesome1234
submitForm name=reg
============================

I want to login to facebook first and then navigate to the page: http://www.bookezza.com/profile

However, it ends up testing the facebook page.

How do I test my page instead of facebook's page ?


RE: What is wrong with this test ? - prasath_ragavan - 07-13-2011 04:54 PM

(07-13-2011 10:27 AM)djash01 Wrote:  I want to test a page which can be accessed after logging in. I created a script to achieve that:

==============
logData 0

// put any urls you want to navigate
navigate http://www.facebook.com/

logData 1

// this step will get recorded
setValue name=email jmssmith584@gmail.com
setValue name=awesome1234
submitForm name=reg
============================

I want to login to facebook first and then navigate to the page: http://www.bookezza.com/profile

However, it ends up testing the facebook page.

How do I test my page instead of facebook's page ?


Try this

logData 0

// put any urls you want to navigate
navigate http://www.facebook.com/

logData 0

// this step will get recorded
setValue name=email jmssmith584@gmail.com
setValue name=awesome1234
submitForm name=reg

logdata 1

navigate http://www.bookezza.com/profile


RE: What is wrong with this test ? - djash01 - 07-14-2011 03:38 AM

(07-13-2011 04:54 PM)prasath_ragavan Wrote:  
(07-13-2011 10:27 AM)djash01 Wrote:  I want to test a page which can be accessed after logging in. I created a script to achieve that:

==============
logData 0

// put any urls you want to navigate
navigate http://www.facebook.com/

logData 1

// this step will get recorded
setValue name=email jmssmith584@gmail.com
setValue name=awesome1234
submitForm name=reg
============================

I want to login to facebook first and then navigate to the page: http://www.bookezza.com/profile

However, it ends up testing the facebook page.

How do I test my page instead of facebook's page ?


Try this

logData 0

// put any urls you want to navigate
navigate http://www.facebook.com/

logData 0

// this step will get recorded
setValue name=email jmssmith584@gmail.com
setValue name=awesome1234
submitForm name=reg

logdata 1

navigate http://www.bookezza.com/profile

Thank you Prasath, really appreciate it.

However, it is still doing a performance trace on the home page, http://www.bookezza.com, and not the the profile page:
http://www.bookezza.com/profile page.

How can I make sure that it traces the profile page ?


RE: What is wrong with this test ? - pmeenan - 07-15-2011 09:30 AM

I'll see if I can whip up a sample script tomorrow but you're better off using the facebook-suported oauth flow where you give it a redirct url of the page you want tested (something that looks like this: https://www.facebook.com/dialog/oauth?
client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&response_type=token )

Look at the client-side flow docs here: http://developers.facebook.com/docs/authentication/