Your SlideShare is downloading. ×
0
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
Automating Canvas Applications Using Selenium
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

Automating Canvas Applications Using Selenium

5,360

Published on

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,360
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
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

×