Your SlideShare is downloading. ×
0
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
Make sure your code works
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

Make sure your code works

1,704

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
1,704
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
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. Make Sure Your Code Works:How to Craft Automated Tests for B2G Henrik Skupin and Rob Wood September 8-9th, 2012 Warsaw, Poland
  • 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. 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. Components• B2G• WebAPI• Gonk• Marionette• B2G device emulator• B2G build environment
  • 5. B2G Device EmulatorDemonstration:• How to start the emulator• Sending commands to the emulator (telnet)• Debugging the emulator using ADB
  • 6. Test Walk-ThruDemonstration:• Code walk-thru of an existing WebAPI test• Running an existing WebAPI test in the emulator
  • 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. Contact UsInterested in contributing? Contact us!https://wiki.mozilla.org/Auto-tools/Automation_DevelopmentRob Woodrwood@mozilla.comHenrik Skupinhskupin@mozilla.com
  • 9. Thank You

×