Wow, this is really cool. Will see if we should integrate it to Tellurium
Engine.

Thanks Kamal.

Jian

On Sat, Nov 20, 2010 at 12:12 AM, Kamal Ahmed <[email protected]>wrote:

> Jian,
> The users will mostly be developers, or developers in test, and the
> companies they work for DO require exactly this. Plus i know for sure that
> Mozilla has already incorporated this sort of measurement in Firefox 4.
> Following is an excerpt from a Firefox Developer in Test.
>
>
>
> I want to calculate the page load time in Watir or Selenium
>
> 1. Login to a web application with username and password and hit Enter (Start 
> timer)
> 2. Load the login page (lap timer split, to mark the time for page load )
>
> 3. Click on a another page (split the lap timer)
> 4. Stop the stop watch
>
>
> There is a new Spec being introduced into all modern browsers. Currently
> Google Chrome, IE9 have it built in and Mozilla is waiting to apply the
> patch that has been supplied.
>
> This new spec is called WebTimings and I wrote a blog 
> post<http://www.theautomatedtester.co.uk/blog/2010/selenium-webtimings-api.html>showing
>  how to access it using C#. The way to access it is via javascript so
> can be used with all language bindings.
>
> The JavaScript needed is
>
> var performance = window.performance || window.webkitPerformance || 
> window.mozPerformance window.msPerformance || {};
> var timings = performance.timing || {};
> return timings;
>
> This returns a dictionary like this
>
> /* The dictionary returned will contain something like the following.
> * The values are in milliseconds since 1/1/1970
> *
> * connectEnd: 1280867925716
> * connectStart: 1280867925687
>
> * domainLookupEnd: 1280867925687
> * domainLookupStart: 1280867925687
> * fetchStart: 1280867925685
> * legacyNavigationStart: 1280867926028
> * loadEventEnd: 1280867926262
> * loadEventStart: 1280867926155
> * navigationStart: 1280867925685
>
> * redirectEnd: 0
> * redirectStart: 0
> * requestEnd: 1280867925716
> * requestStart: 1280867925716
> * responseEnd: 1280867925940
> * responseStart: 1280867925919
> * unloadEventEnd: 1280867925940
> */
>
> Hope this helps,
>
> Thanks,
> -Kamal.
>
>
> On Fri, Nov 19, 2010 at 6:53 PM, Jian Fang <[email protected]>wrote:
>
>> Kamal,
>>
>> Good question. Tellurium core provides a trace capability, which will show
>> the execution time for each Tellurium command/Selenium call.
>>
>> http://code.google.com/p/aost/wiki/UserGuide070TelluriumBasics#Trace
>>
>> The time could give you a rough idea of how fast the web application is.
>> The reason that it is rough is because the round trip time to Selenium
>> server is included. To measure the exact time, we have to provide a trace
>> capability on Tellurium Engine/Selenium core side. But I am not very sure
>> whether it is really required from a user's perspective.
>>
>> Thanks,
>>
>> Jian
>>
>>
>> On Fri, Nov 19, 2010 at 5:44 PM, Kamal Ahmed <[email protected]>wrote:
>>
>>> Hi,
>>> Wanted to share this
>>> http://code.google.com/p/js-test-driver/
>>>
>>> Also would like to ask, how can we test the performance of a javascript /
>>> Jquery / Ajax / PHP application ?
>>> By performance i mean to "time" the user experience, and also to
>>> co-relate the user "timed" experience with the performance which is
>>> similar to what we get from Firebug --> Profile JavaScript
>>>
>>> Thanks,
>>> -Kamal.
>>> On Fri, Nov 19, 2010 at 11:17 AM, Jian Fang <[email protected]>wrote:
>>>
>>>> http://www.testingtv.com/category/functional-testing/
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "tellurium-developers" group.
>>>> To post to this group, send email to
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<tellurium-developers%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/tellurium-developers?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "tellurium-developers" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<tellurium-developers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/tellurium-developers?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-developers" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-developers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-developers?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "tellurium-developers" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<tellurium-developers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-developers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to