client side performance analysis
DESCRIPTION
Re-using WebDriver-based tests for client-side performance analysis : basicsTRANSCRIPT
![Page 1: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/1.jpg)
Re-using WebDriver-based tests for client-
side performance analysis : basics
Minsk 2014
Tsimafei Avilin
Lead Software Test Automation Engineer - EPAM
![Page 2: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/2.jpg)
PURPOSES
CSPA – what? why? how?
CSPA – process initiation
CSPA & WebDriver
Tools & Examples
References
CSPA & WebDriver - Agenda
Re-using WebDriver-based tests for client-side performance analysis
1
3
2
4
5
![Page 3: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/3.jpg)
CSPA: WHEN DOES IT BEGIN?
CSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 4: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/4.jpg)
PURPOSES
CSPA – client-side begins…
Re-using WebDriver-based tests for client-side performance analysis
![Page 5: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/5.jpg)
STANDARD CSP PROBLEMS
CSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 6: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/6.jpg)
STANDARD PROBLEMS
• Main:
javascript (memory leaking,
loops, GC, etc.);
pictures;
gzip archive, DOM,
See e.g. Yslow rules here
• Rare: css, silverlight, flash
CSPA – standard problems
Re-using WebDriver-based tests for client-side performance analysis
![Page 7: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/7.jpg)
WHEN TO START CSPA?CSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 8: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/8.jpg)
REFERENCES
STARTING CSPA
Re-using WebDriver-based tests for client-side performance analysis
![Page 9: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/9.jpg)
CSPA &WEBDRIVERCSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 10: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/10.jpg)
REFERENCES
• WebDriver + BrowserMob
Proxy
• Collect
sessions/statistics (HAR
files)
• WebDriver + dynaTrace
appl -> does work;
• WebDriver + dynaTrace
.dll -> does NOT work;
CSPA&WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 11: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/11.jpg)
TOOLS&EXAMPLESCSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 12: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/12.jpg)
REFERENCES
ONLINE SERVICES
• Yslow http://www.yslow.org
• PageSpeed LINK
• GTmetrix http://gtmetrix.com/
• webpagetest http://www.webpagetest.org/
DESKTOP
• dynaTrace AJAX edition LINK +command line + LINK
TOOLS & EXAMPLES
Re-using WebDriver-based tests for client-side performance analysis
ALL
FREE!
![Page 13: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/13.jpg)
REFERENCESCSPA & WebDriver
Re-using WebDriver-based tests for client-side performance analysis
![Page 14: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/14.jpg)
REFERENCES
• YSLOW http://www.yslow.org
• JAKOB SCHROETER “CLIENT-SIDE WEB PERFORMANCE OPTIMIZATION” (2011) LINK
• MARCEL DURAN “PROACTIVE WEB PERFORMANCE OPTIMIZATION” (RUM + (YSLOW +
WPT) CI) (2012) LINK
• COLT MCANLIS “A PERFORMANCE CHECKLIST FOR THE MOBILE WEB” (2013) LINK
• МАРИНА ШИРОЧКИНА “ТЕСТИРОВАНИЕ ПРОИЗВОДИТЕЛЬНОСТИ КЛИЕНТСАЙДА” (2013)
LINK
• АЛЕКСЕЙ БАРАНЦЕВ “ТЕСТИРОВАНИЕ ПРОИЗВОДИТЕЛЬНОСТИ КЛИЕНТСАЙДА: ПРИКВЕЛ”
(2014) LINK
• ULADZIMIR KRYVENKA “BROWSERMOB PROXY: ТЕСТИРОВАНИЕ ПРОИЗВОДИТЕЛЬНОСТИ
КЛИЕНТСКОЙ ЧАСТИ ВЕБ-ПРИЛОЖЕНИЙ” (2014) LINK
• BOOMERANG GITHUB.COM/LOGNORMAL/BOOMERANG LINK
• DYNATRACE COMMUNITY LINK
REFERENCES
Re-using WebDriver-based tests for client-side performance analysis
![Page 15: Client side performance analysis](https://reader034.vdocuments.mx/reader034/viewer/2022052413/559ac04f1a28ab84378b45b8/html5/thumbnails/15.jpg)
Re-using WebDriver-based tests for client-side performance analysis
Thanks!!!