Web Test Automation with Selenium
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Web Test Automation with Selenium

on

  • 67,737 views

This presentation covers an introduction to Selenium, the Open Source, cross browser, cross platform functional testing tool. The talk emphasized the importance of applying the same principles to ...

This presentation covers an introduction to Selenium, the Open Source, cross browser, cross platform functional testing tool. The talk emphasized the importance of applying the same principles to testing (abstraction, refactoring, DRY) that development teams apply to developing software. (This presentation was used for a talk at the Asian Testing Conference)

Statistics

Views

Total Views
67,737
Views on SlideShare
66,678
Embed Views
1,059

Actions

Likes
29
Downloads
3,005
Comments
1

20 Embeds 1,059

http://50.112.202.140 459
http://www.slideshare.net 203
http://www.dilipprajapati.com 147
http://localhost 98
http://bharatvamshi.blogspot.com 61
http://indieswebs.in 26
http://www.linkedin.com 18
http://122.160.252.5 12
http://ketankhairnar.blogspot.com 8
http://bharatvamshi.blogspot.in 8
http://bocode.blogspot.com 7
http://qiusjcn.blogspot.com 3
http://bharatvamshi.blogsopt.com 2
http://bocode.blogspot.co.uk 1
https://www.linkedin.com 1
http://127.0.0.1 1
http://seleniumtool.blogspot.com 1
http://bocode.blogspot.mx 1
http://bocode.blogspot.in 1
http://pmomale-ld1 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Fantastic article ! You havemade some very astute statements and I appreciate the the effort you have put into your writing. Its clear that you know what you are writing about. I am excited to read more of your sites content.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Web Test Automation with Selenium Presentation Transcript

  • 1. Web Test Automation with Selenium Vivek Prahlad
  • 2. Agenda
      • Introduction to Selenium
      • Demo
      • An overview of the framework, and how it works
      • Showcase the different ways of using Selenium
        • FIT style tables
        • Selenium Remote Control (RC)
      • Limitations of Selenium
  • 3. What is Selenium?
      • A JavaScript based
      • Open Source
      • Web testing tool
      • That supports testing Web 2.0 applications
      • On multiple browsers
      • And multiple Operating Systems
  • 4. Quick Demo
  • 5. Overview
      • History: originated from TW Time Sheet application
      • Extremely popular Open Source Web testing tool
      • Can be used for Acceptance / Functional testing
      • Can be used for reproducing bugs
  • 6. Using Selenium
      • Bot mode: Selenium Core
        • HTML Tables
      • Driven mode: Selenium Remote Control (RC)
        • Test cases in language of choice
      • Record mode: Selenium IDE
  • 7. Architecture
  • 8. Table or driver based?
      • Table based approach fine for simple tests.
        • No programming required
        • Doesn't scale – duplication is a major issue.
      • Driver approach better for 'Real' test suites
        • Can develop tests in language of choice:
        • C#, Java, Ruby, Python, Perl
        • Easier data management via DB / Excel
  • 9. Maintaining Test Suites
      • Test code is just like production code!
      • Needs refactoring, abstraction
      • API for the application
      • Can build tests from API building blocks
      • Try to maintain meaning – in test names, variable names, comments, and suite organization
  • 10. Evolving Test Suites
      • Do your test suites break as the app evolves?
      • The importance of DRY: Don't Repeat Yourself
      • Minimize changes to test suite as app changes
      • Avoid redoing / reworking entire test suites
      • Avoiding duplication simpler for test code: test steps execute sequentially
      • Methods, parametrization
      • To some extent, Object Orientation
  • 11. Demo: Refactoring Tests
  • 12. Ajax support
      • Selenium supports testing Web 2.0 applications
      • Monitor the DOM for completion of Async calls
      • waitForCondition()
      • waitForValue()
  • 13. Continuous Integration
      • Run Selenium tests as part of the build
        • Works with both Core and Driven modes
        • (Each time a developer checks in, if necessary)
      • Can generate HTML reports, published to entire team
      • Helps catch bugs ASAP
        • Addresses risk of catching bugs late in the cycle
  • 14. Limitations
      • Most limitations valid if using Selenium Core:
        • Alerts
        • “ Same Origin Policy”
        • File uploads
  • 15. Summary
      • Selenium is a testing framework for Web Applications
      • Drivers allow web testing in language of choice
      • Test scripts are code: need maintenance, refactoring
      • Limitations of Selenium
  • 16. Thank You!
      • Check out Selenium at: http://www.openqa.org/selenium
      • Questions?