Automating Canvas Applications Using Selenium
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • 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
5,815
On Slideshare
5,659
From Embeds
156
Number of Embeds
3

Actions

Shares
Downloads
30
Comments
0
Likes
3

Embeds 156

http://automated-testing.info 149
http://autotest.aexchecker.com 6
http://www.automated-testing.info 1

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