Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Self-Generating Test Artifacts for Selenium/WebDriver

5,762 views

Published on

Published in: Technology, Business
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/hKUaC ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/hKUaC ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/hKUaC ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/hKUaC ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Self-Generating Test Artifacts for Selenium/WebDriver

  1. 1. Page ObjectGenerationLose the maintenance,increase the productivity
  2. 2. The Problem Failuresguide our work The product is ever-changing Developers do not communicate changes proactively (or at all) 40% of our time is spent accounting for these changes Who can analyze 300 test failures every night?
  3. 3. What Changes? Htmlid (i.e. “Locator”) Element type Major navigation pathEach will break most automated tests
  4. 4. Html id Ifthe id changes (e.g. to signinField), the test will break The element will no longer exist
  5. 5. Element Type Thelink is changed from a Link to Button WebDriver will still look for a link
  6. 6. Navigation Path Pages are added Popups are introduced Buttons and forms are split up across pages UI Look and feel “reset” WebDriver scripts don’t stand a chance— you just start over
  7. 7. The Change Cycle
  8. 8. Wish List for a Solution Build in a mechanism for change communication Account for the changes AS THEY HAPPEN, not reactively Tighter integration with development Pass rate needs to be 97% or better, with all failures accounted for within 24 hours
  9. 9. Page Object Generation Generate the pages on every build Web Controls are mapped to specific WebElement types If the type of an object changes in a way that breaks automation, the whole build fails
  10. 10. Let’s See It!
  11. 11. What you getA page, containing every element in the UI Each element is aware of its Tab Including every Rich WebElement A Fields object, usable by those writing Test Scripts
  12. 12. The New Change Cycle
  13. 13. The New Change Cycle •Significant underlying type (Text Input to Radio Button) •Insignificant underlying type (Button to Link)Developer Change •id changes for localization •Compiler flags type change—breakage •Compiler ignores type change (Both are IClickable)Regenerate Model •Page auto-updates id change—no breakage •Tester doesn’t know—fixed before dev check-in •Tester doesn’t know—Framework “absorbs” the change Test •Tester doesn’t know—id is s String, stored in one place
  14. 14. When change happens Html id changes  Who cares?  Generation process normalizes names  Unit test enforces uniqueness Element type changes  Developer fixes prior to check-in Navigation path changes  More rare, but failures show up within 24 hours  Without all the noise, issues are easier to spot, analyze, and fix
  15. 15. Where do you go now? You have a model of your system Use it to “analyze itself” The all-table test Role-based security tests Algorithms to  Iterate through every page looking for standards compliance  500 errors  Forms  Security issues (code injection, XSS etc)
  16. 16. Bottom Line We found 7 major regressions in 2008, the last year of the “old” platform 12 in 2009 with >500 test cases 20 in 2010 with >1100 test cases More than 50 in 2011 with 1700 test cases Customer reported defects did NOT go down, because… Velocity increased so much, features were added at a much faster clip
  17. 17. Questions?

×