• Like
Selenium: What Is It Good For
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Selenium: What Is It Good For

  • 818 views
Published

 

Published in Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
818
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
4
Comments
0
Likes
0

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. SELENIUM: WHAT IS IT GOOD FOR? ABSOLUTELY SOMETHING! DALLAS DRUPAL DAYS SEPTEMBER 8, 2012
  • 2. WHATCHA GONNA DO?Selenium Selenium IDE: A comprehensive walkthrough of the misunderstood IDE. Store and Run Tests: A guide to Automated Testing at its most basic level.PHPUnit The Important Features: What we need to get Selenium working with PHPUnit. Translation from Selenium IDE: The first steps to using PHPUnit for managing and running your tests.
  • 3. Hudson / Jenkins / Travis Continuous Integration: What does it mean to be continuously integrated?
  • 4. BUT FIRST!
  • 5. <SHAMELESS SELF PROMOTION> Allan ChappellWebdeveloper / Testing Expert Drupal User: 368854 @general_redneck GeneralRedneck.com </SHAMELESS SELF PROMOTION>
  • 6. WHAT IS SELENIUM?“Selenium automates browsers. Thats it.”
  • 7. SELENIUMSELENIUM IDE Record Your Actions. Modify Your Targets. Fill In the Gaps With Tests. Store and Run Your Tests.
  • 8. SELENIUM IDE RECORD YOUR ACTIONS.Live Demo Time!
  • 9. STORE TESTS WARNING: CONFLICTING INFORMATION! If you plan to move on to more advanced testing:Separate different features into different Test Suites. If you plan to stick with what you got now: Combine all features into the same Test Suite.
  • 10. STORE TESTS For both do:Separate tests into logical test cases.Share and reap the rewards!
  • 11. RUN TESTSMake a backup of the database.(Check out backup and migrate )Run the Tests!Restore if needed.
  • 12. <BLINK> CONGRATULATIONS!!!YOU ARE READY TO MOVE TO THE NEXT LEVEL! </BLINK>
  • 13. WHERE DOES PHPUNIT COME IN?PHPUnit allows you to make the process more automated!
  • 14. PHPUNIT SELENIUM FEATURE OVERVIEWYou can run your old tests! (with massaging)You can now perform repetitive tasks!You can now chain running your tests to events!
  • 15. TRANSLATION OF SELENIUM TESTS There are 2 ways!PHP Export AddonThrowing your selenese test cases into a directory and tellingPHPUnit to run em.
  • 16. <IMPERSONATE CLASS=AUDIENCE>GREAT... BUT HOW TO DO I USE IT? </IMPERSONATE>
  • 17. Live Demo Time!
  • 18. <BLINK>CONGRATULATIONS!!!YOUVE LEVELED UP TWICE IN AN HOUR! </BLINK> You should feel proud of yourself... No, Really!
  • 19. THERES MORE?!? I THOUGHT I MADE THE TESTS AUTOMATED?But you can do more with continuous integration provided by a platform such as Travis, Hudson, Jenkins.
  • 20. CONTINUOUS INTEGRATION OVERVIEWContinuous Integration (CI) there to help your works quality by: Taking repetitive manual tasks and automating them Doing these tasks more frequently And doing these task faster!
  • 21. THINGS THAT NOW BECOME EASIER AND POSSIBLECode standard checkingProcessing Tasks on events such as commits!More information in an already formatted report!Running Tests
  • 22. TO COMPLETE THIS LEVEL YOU MUST...Install a CI system: Hudson, Jenkins, and Travis are all free withgreat documentation.Build a job: Usually tell it when to run. For instance, on git commit togithub, or every night at midnight.Tell it what to do: Anything commandline will run. PHPUnit iscommandline. Hudson, Travis, have Selenium built in!
  • 23. <BLINK>CONGRATULATIONS!!! YOUVE MADE IT TO THE END! </BLINK> But wait theres one more thing...
  • 24. WHAT THIS MEANS IS THAT YOU NOW HAVE A CHOICE BASED ON THE FOLLOWING...How Automated do you want to go.What works for your team?How many resources do you have to dedicate to automation? IN THE END, IT IS ALMOST ALWAYS BEST FOR YOUR PRODUCT TO GET TO THE LAST LEVEL.
  • 25. QUESTIONS?