Your SlideShare is downloading. ×
Repurposing Selenium scripts for load and performance testing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Repurposing Selenium scripts for load and performance testing

4,218
views

Published on

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,218
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
36
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Repurposing Selenium Scripts ForLoad And Performance TestingMay 1, 2013Wednesday, May 1, 13
  • 2. Appvance WebinarMay 1, 2013www.appvance.comSelenium goes a long way for the developers and testers to build functional tests for smoke testing, regressiontesting, and integration testing. In this Webinar Ian Fleming and Frank Cohen of Appvance show how to repurposeSelenium tests to be functional tests and predictive performance monitors.- Repurposing To Performance Tests- Calibration Testing- What do the results mean?- Running In The Cloud and Gridsales@appvance.comWednesday, May 1, 13
  • 3. Your Team•Ian Fleming, Sales Engineerifleming@appvance.com•Frank Cohen, Founderfcohen@appvance.com•Tina Shakour, VP MarketingWednesday, May 1, 13
  • 4. Appvance Enterprise•Industry Experts: 10 Years Understanding Functional,Load And Performance Testing•You Are Not Alone: Excellent Service And Support•Test 100% Of The End User Experienceor …”Why are we the ones talking to you today?”Wednesday, May 1, 13
  • 5. Why Selenium For Performance Testing?•Great DSL For Web App Automation•Great For Developers Building Test Framework•How Do You Want To Selenium?• Language Support: Python, Java, JUnit, C#, Ruby, Groovy, PHP• Record/Playback Support•W3C WebDriver Working Draft 12• Http://www.w3.org/TR/2013/WD-webdriver-20130312/Wednesday, May 1, 13
  • 6. Selenium Misses•Running Too Long: 12 Hours Per Test Suite, No Parallelization•No Mix-and-Match To Use SOAP And REST•No Repurpose To Performance Tests•And, Yet, I Dont Want To Throw Anything AwaySolutions Available:Appvance Enterprise, Page Objects, Best PracticesWednesday, May 1, 13
  • 7. How Do You Want To Selenium In Appvance?Wednesday, May 1, 13
  • 8. Mix and Match•Using Selenium For Functional Testing•Mix and Match SOAP and REST•Passing Variables between scripts• The Locker• Data Production Library (DPL)Wednesday, May 1, 13
  • 9. Mix and Match DemonstrationWednesday, May 1, 13
  • 10. Object Oriented Approaches To Selenium•WebDriver APIs, OO, PageObjects•http://tinyurl.com/cqk989bs.open("/login")s.type("username", "fcohen") s.type("password", "letmein")s.click("login")s.wait_for_page_to_load("30000")def login(s, username, password):s.type("username", username)s.type("password", password) s.click("login")s.wait_for_page_to_load("30000")s.open("/login")s.login(s, "fcohen", "letmein")Wednesday, May 1, 13
  • 11. Fixtures Patternpublic class Jack extends Pulse20 {public void doTest() throws Exception {try {open();whatIsNow();topTrending();whatIsNow();onTheVerge();} finally {close();}}public class Pulse20 {protected static String dnsName;protected SeleniumHtmlunit selenium;public Pulse20() {selenium = new SeleniumHtmlunit();}public void open() throws Exception {selenium.setUseUnsecureSSL("true");PTTStepListener.startStep("Open");selenium.setBaseUrl("http://akamai.pepsi.com");selenium.open("/");}Test Suite FixturesWednesday, May 1, 13
  • 12. Repurposing To Performance Tests•Approach and Scale•Scalability Index•Calibration Testing•What do the results mean?•Running In The Cloud/GridWednesday, May 1, 13
  • 13. Repurpose To Performance TestWednesday, May 1, 13
  • 14. The Most Valuable AnalysisWednesday, May 1, 13
  • 15. Calibration Testing MethodologyFirst Time We Get Predictable ThroughputWednesday, May 1, 13
  • 16. How Many Virtual Users/Transactions?Wednesday, May 1, 13
  • 17. Time Is Always A FactorWednesday, May 1, 13
  • 18. Calibration Methodology Saves TimeWednesday, May 1, 13
  • 19. Appvance Enterprise Architecture•Plug-and-Play for Your EnvironmentRackspaceControllerMap Story to TestsDeploy to CloudLog ResultsTest RepositoryGITContinuousIntegrationJenkinsDevelopersTest ManagementRally, Agile StoryCloud Instance 2Test InjectorScript Runner, Monitor, DPLBrowserChrome, IEsoapUISOAP, RESTCloud Instance 1Test InjectorScript Runner, Monitor, DPLBrowserChrome, IEApp Under TestService UnderTestDPL RepositoryMySQLsoapUISOAP, RESTWednesday, May 1, 13
  • 20. Actionable Knowledge from Selenium/Appvance•Dashboards and NotificationsRackspaceAric New User SLA WarningAverage perf: 32 SecondsBusiness,DevOpsCloud Instance 2Test InjectorScript Runner, Monitor, DPLBrowserChrome, IEsoapUISOAP, RESTCloud Instance 1Test InjectorScript Runner, Monitor, DPLBrowserChrome, IEApp Under TestService UnderTestScalability IndexDashboard Results RepositoryMySQLsoapUISOAP, RESTWednesday, May 1, 13
  • 21. •Agile Delivers More Projects Faster•Requires Repurposing Between Teams•Treats Tests As Business Asset(Version Control, Sharing, Reuse)Agile, Repurposing, PerformanceDevTestBizITBusiness Requirements to LaunchIntegration Test andSLA ComplianceFunctional Tests Repurposed AsLoad and Performance TestsWednesday, May 1, 13
  • 22. Results Analysis Engine•Built-in Business Analytics Engine•100 Charts•Results Repository Schema For Integration With Your BIWednesday, May 1, 13
  • 23. Results Analysis Engine•Built-in Business Analytics Engine•100 Charts•Results Repository Schema For Integration With Your BIWednesday, May 1, 13
  • 24. Summary•Selenium Good For App Browser Automation•Extensions Promising For Mobile•On Its Way To Be A W3C Standard•Selenium Has Challenges Appvance Solves•Performance Testing In Cloud/Grid Works Great•Scalability Index, Calibration Methodology•Results Analysis For Root Cause AnalysisWednesday, May 1, 13
  • 25. Are You Ready?•Take Your Current Test Environment•Leverage Your Selenium Tests•Repurpose Them To Run In Parallel And As Performance Tests•Mix And Match With SOAP, REST, Java•If It Does Not,Call Us At (855) 254-1164Or Email Us Sales@appvance.comAnd We Will Show You HowWednesday, May 1, 13