Your SlideShare is downloading. ×
  • Like
Automating Canvas Applications Using Selenium
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Automating Canvas Applications Using Selenium

  • 4,899 views
Published

 

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

Views

Total Views
4,899
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
30
Comments
0
Likes
3

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. Automating CanvasApplications Using Selenium Dave Hunt: @davehunt82 Andy Smith: @andismith
  • 2. What is Canvas?
  • 3. The Wilderness Downtown http://www.thewildernessdowntown.com/
  • 4. Pirates Love Daisies http://www.pirateslovedaisies.com/
  • 5. 20 Things I Learned http://www.20thingsilearned.com
  • 6. <CANVAS>
  • 7. DEMOHuman playing Helicopter
  • 8. Inside Information function gameData() { return { altitude: 20, caveCeiling: [90, 80, 85], caveFloor: [10, 5, 10] } }
  • 9. Flight School• Disabled obstacles• Compensate momentum• Field of vision• Minimise requests
  • 10. DEMOSelenium playing Helicopter without obstacles
  • 11. Visual Feedback• Reintroduced obstacles• Created a ‘Heads up display’• Fine-tuned field of vision
  • 12. DEMOSelenium playing Helicopter with HUD
  • 13. Crash Testingdef testShouldCrashIntoCeiling(self): base_page = BasePage(self.driver) base_page.start_game() base_page.engage_thrusters() base_page.wait_until_crash() self.assertEquals(base_page.helicopter_altitude, 90)def testShouldCrashIntoFloor(self): base_page = BasePage(self.driver) base_page.start_game() base_page.wait_until_crash() self.assertEquals(base_page.helicopter_altitude, 14)
  • 14. How can we do this?• Work together• Establish testing requirements• Write automation hooks• Consider visual feedback• Create tests!
  • 15. http://bit.ly/selenicopter @davehunt82 dhunt@mozilla.com@andismith andi.smith.uk@gmail.com