WebPagetest Forums
URL Blast redirects - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: URL Blast redirects (/showthread.php?tid=450)



URL Blast redirects - endium - 12-01-2010 10:55 AM

Does URL Blast follow redirects? I'm trying to figure out why I'm not able to login to my site. It enters the form values correctly, and seems to submit the form, but it reloads the page instead of logging in. The only thing I can think of is that maybe it isn't following redirects, which is how authentication works for my site.

Generally, is there any documentation on how URL Blast works? I'm also interested in any other network/vm conditions that may cause it to behave differently from the real browser?
I was able to get this to work by clicking on the button "clickAndWait name=Login" instead of submitForm.

I'm still curious about the documentation though.


RE: URL Blast redirects - pmeenan - 12-01-2010 02:51 PM

(12-01-2010 10:55 AM)endium Wrote:  Does URL Blast follow redirects? I'm trying to figure out why I'm not able to login to my site. It enters the form values correctly, and seems to submit the form, but it reloads the page instead of logging in. The only thing I can think of is that maybe it isn't following redirects, which is how authentication works for my site.

Generally, is there any documentation on how URL Blast works? I'm also interested in any other network/vm conditions that may cause it to behave differently from the real browser?
I was able to get this to work by clicking on the button "clickAndWait name=Login" instead of submitForm.

I'm still curious about the documentation though.

Technically it's Pagetest that is doing the automation and the docs are a bit weak in the scripting area but if I had to guess I would say that there was some javascript attached to the button click that needed to be executed for the form data to be accepted. It IS a real browser (IE), it's just not a real user driving the events so sometimes there is some trial and error in figuring out what event needs to be sent to what DOM element for the action to work as expected.

It's a lot easier to debug scripts locally using the browser plugin (http://www.webpagetest.org/software/Pagetest_249.msi) - launch IE, tools->AOL Pagetest, File->Run Script

That way you can watch it try to run and experiment with different techniques before submitting it for an online test (where you don't really get any feedback).

Thanks,

-Pat


RE: URL Blast redirects - endium - 12-02-2010 10:31 AM

Thanks. Are there any known downsides to running the server and client both inside the same VM? I have windows XP running on ubuntu server.


RE: URL Blast redirects - pmeenan - 12-02-2010 12:20 PM

No problem that I'm aware of, the web server should hardly use any resources.

The thing you do have to be a little careful with is the accuracy of the test data you get from within your VM (web server or not). I've had good luck with ESX and Amazon's EC2 (KVM) but you'll want to do some testing to make sure you don't get fluctuation in your test results as a result of running in the VM.