Make sure your code works

2,969 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,969
On SlideShare
0
From Embeds
0
Number of Embeds
1,705
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Make sure your code works

  1. 1. Make Sure Your Code Works:How to Craft Automated Tests for B2G Henrik Skupin and Rob Wood September 8-9th, 2012 Warsaw, Poland
  2. 2. Welcome• Introductions: Henrik Skupin, Rob Wood• Goalof our session: Each participant will develop an automated test for B2G• Doany of our participants have experience developing automated tests? (Not a prerequisite)
  3. 3. Automated TestsTips for successful automated test development:• Clearly define test scope and test cases• Keep tests simple, independent, and leave the environment in the state in which it was found• When a test fails, clearly define why in the log• Use the framework to your advantage• Know when to automate and when not to• Code well and follow style guidelines
  4. 4. Components• B2G• WebAPI• Gonk• Marionette• B2G device emulator• B2G build environment
  5. 5. B2G Device EmulatorDemonstration:• How to start the emulator• Sending commands to the emulator (telnet)• Debugging the emulator using ADB
  6. 6. Test Walk-ThruDemonstration:• Code walk-thru of an existing WebAPI test• Running an existing WebAPI test in the emulator
  7. 7. Hands-OnHacking session for participants:• Develop a new B2G WebAPI automated test that uses Marionette and runs in the device emulator (test case details will be provided)• Attach the finished test to the specified Bugzilla issue
  8. 8. Contact UsInterested in contributing? Contact us!https://wiki.mozilla.org/Auto-tools/Automation_DevelopmentRob Woodrwood@mozilla.comHenrik Skupinhskupin@mozilla.com
  9. 9. Thank You

×