Selenium XPath Performance Problems in IE

3,737 views

Published on

Selenium XPath Performance Problems in Microsoft Internet Explorer (MS IE). Shows why a Selenium script that runs in 3 minutes in Firefox takes 30 minutes to run in IE. And, what to do to mitigate this performance problem.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,737
On SlideShare
0
From Embeds
0
Number of Embeds
227
Actions
Shares
0
Downloads
68
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Selenium XPath Performance Problems in IE

  1. 1. The Server Side Symposium 2009Selenium XPath PerformanceProblems In Internet ExplorerFrank Cohen, CEO, (408) 871-0122, fcohen@pushtotest.comMarch 18, 2009
  2. 2. Open Source Test AutomationAbout PushToTest‣Our Mission: Test, To Make A More Reliable World‣Make It Easier To Move From Manual To Automated Testing‣Support Advanced Testing, including Agile, Load, Integration‣Open Source Testing (OST) For Everyone2
  3. 3. Open Source Test Automation Next let’s talk about Performance Anxiety ‣The Perfect Storm: IE 7, Selenium, Appcelerator ‣Mitigation Research Prepared By Luis Carlos Lara, llara@pushtotest.com3 William Martinez, william@pushtotest.com
  4. 4. Open Source Test AutomationThe Problem 30 s Ajax App, Selenium RC, TestMaker, Firefox 3 30 m Ajax App, Selenium RC, TestMaker, Internet Explorer 74
  5. 5. Open Source Test AutomationHow Bad?‣The IE 7 JavaScript engine runs up 8-times slower than Firefox 3‣performance. page compiler does not appear to be optimized for IE 7 Appcelerator’s ‣runsobserved 30% performance difference in the way Appcelerator We text fields between IE 7 and Firefox 3.‣performance. used Selenium functions are not optimized for Some commonly ‣Selenium element locator techniques.difference by using different We observed a 1798% performance5
  6. 6. Open Source Test AutomationTest 1: No JavaScript‣Simple (almost no JavaScript) page (Google)‣ms for IE. results of the tests were similar. 3800 ms for Firefox and 4000 The total6
  7. 7. Open Source Test AutomationCaching Impact‣Firefox Caches JavaScript Objects‣Repeat for 1 Minute:‣Plus IE7/Selenium Exceptions (8 times): Permission Denied7
  8. 8. Open Source Test AutomationTest 2: Ajax Application‣Javascript heavy site ‣TestMaker 5.2.3Calendar sample that ships with PushToTest Appcelerator’s8
  9. 9. Open Source Test AutomationResource Utilization Firefox 3 IE 79
  10. 10. Open Source Test AutomationElement Locator‣Selenium Type Command using various element locator functions‣This may be because of: ‣Slow JavaScript engine in IE. ‣Selenium not optimized for IE. ‣Slow xpath system engine (if any) in IE.10
  11. 11. Open Source Test AutomationDOM API Performance‣DOM Performance on IE 7 ‣Dom Index is 6250 ms to 6750 ms in Link locator.11
  12. 12. Open Source Test AutomationMitigation‣functional test times. in Selenium RC with IE 7 and expect very long Run functional tests ‣The test will complete eventually. ‣browsers. the performance to the same test running on other Do not compare‣Run functional tests using HTMLUnit with an Internet Explorer profile. ‣engine provided in HTMLUnit. using the faster Rhino JavaScript Simulates IE functionality while‣http://selenium.pushtotest.com. for Selenium are found at Details on PushToTest support12
  13. 13. Open Source Test AutomationWhere To Go From Here‣Watch A Screencast and Tutorial ‣http://www.pushtotest.com/screencastcentral‣Attend An Open Source Test Workshop ‣http://workshop.pushtotest.com‣Ask For A Proposal on Licenses, Training, Support, Consulting ‣Call +01 408 871 0122, sales@pushtotest.com13

×