Current time: 12-12-2017, 02:20 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium script playback
09-09-2009, 07:34 PM
Post: #1
Selenium script playback
Currently using webpagetest only single pages are tested.

I feel there would there be benefit in being able to replay a user journey through the site, in terms of front end performance. More so as websites move further into ajax territory.

It would be cool to be able to upload a selenium script of a web-site use case and have webpagetest replay the journey and analyse the front-end performance.

The choice of selenium (http://seleniumhq.org) was a personal one, there may well be other better frameworks out there.
Find all posts by this user
Quote this message in a reply
09-09-2009, 11:14 PM
Post: #2
RE: Selenium script playback
Pagetest (the underlying code, not the web UI) supports a fairly rich scripting interface. The documentation for it is available here: http://sourceforge.net/apps/mediawiki/pa...=Scripting and we use it extensively for testing things like mail, shopping, search and other multi-step transactions.

WebPagetest offers a reduced capability where the full scripting language is available but it can only record the performance information, screen shots and video from one of the steps. The documentation for it is available here: http://sourceforge.net/apps/mediawiki/pa..._Scripting.

The main reason the hosted version doesn't support multi-step transactions is that I haven't figured out how to present the results in the UI (particularly if you are doing more than 1 run). I do have a ticket open to implement it but it hasn't bubbled up to the top yet: http://dev.webpagetest.org/pagetest/ticket/16

As to the scripting language, I really like selenium and spent quite a bit of time looking at it before I implemented something but there were technical limitations with how it interacted with IE that prevented me from using it (specifically, you needed to run the testing through a proxy to inject the javascript but that alters how the browser makes requests). It may be worth re-visiting at some point to see if I can inject the code for selenium directly but since I have something that works it hasn't been a high priority.

Thanks,

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
09-18-2009, 02:06 AM
Post: #3
RE: Selenium script playback
Would a suggestion be to only allow a user to specify one step in the multi-step transaction script as being the recorded/presented step?
This would then allow you to utilise the existing ui display for a single page and unlock the power of the scripting language for webpagetest.

Cheers
Cal
Find all posts by this user
Quote this message in a reply
09-18-2009, 06:25 AM
Post: #4
RE: Selenium script playback
That's essentially how the hosted scripting works though you have to do it manually by modifying the script to only record one of the steps but it will still run the full script.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 08:31 PM
Post: #5
RE: Selenium script playback
thanks for the reply. I realise now that we just suggested the way it actually works back to you. doh! (again) & apologies.
Find all posts by this user
Quote this message in a reply
11-19-2009, 01:12 AM
Post: #6
RE: Selenium script playback
Hello Friends.
Ajax provides a great utility to web developer and vast number of functionalites too.
I would like to know some interesting scripts from you guys, so please do share
some of your scripting experience with us.
Thanks for your post and stay connect.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)