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

Automating Canvas Applications Using Selenium

on

  • 5,413 views

 

Statistics

Views

Total Views
5,413
Views on SlideShare
5,257
Embed Views
156

Actions

Likes
3
Downloads
29
Comments
0

3 Embeds 156

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

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

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…
Post Comment
Edit your comment

Automating Canvas Applications Using Selenium Automating Canvas Applications Using Selenium Presentation Transcript

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