• Like
  • Save
Brightcove presentation on Automated Testing
Upcoming SlideShare
Loading in...5
×
 

Brightcove presentation on Automated Testing

on

  • 797 views

Keith Williams, Senior Software Engineer in Test at Brightcove presented at MassTLC's automated testing event on June 12, 2013 at Brightcove, Boston, MA

Keith Williams, Senior Software Engineer in Test at Brightcove presented at MassTLC's automated testing event on June 12, 2013 at Brightcove, Boston, MA

Statistics

Views

Total Views
797
Views on SlideShare
785
Embed Views
12

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 12

http://www.masstlc.org 12

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

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

    Brightcove presentation on Automated Testing Brightcove presentation on Automated Testing Presentation Transcript

    • Balancing Test Automationin a Continuous DeliveryWorld
    • kwilliams@brightcove.comtwitter: @bckwilliamsKeith WilliamsBrightcove Automation Specialist
    • Composition of Effective Test StrategyComponent TestAPI or IntegrationTestWebdriver
    • • Low level - testing within a component• Developed in same language as product• Written by developers• Use TDD if it works for your team• Heavily mocked, eliminating DB and otherservice interactionsComponent Testing
    • • Easy to develop tests - function/methodbased• Run as first step of every code checkin• Very fast runtime with many tests• Easiest tests for great code coverage• Depending on language, some great toolsavailable (RSpec, JUnit, Midje,CoffeeScript, etc)Component Testing - Benefits
    • • Tests the exposed API of a running service• Tests target the services API, but may useother APIs• Define each services API specification andtest cases• May leverage mocking of other services orDBAPI Testing
    • • Developer and CD pipeline run afterdeployment• Fast running with many tests• Catches server configuration anddeployment issues• API_Test Framework for RESTful APIsAPI Testing - Benefits
    • • Browser based testing of deployed stack• Tests are a flow through web pages perhaps indifferent services• Few or no mocks• Fewer tests that are slow running• More difficult to developWebdriver Testing
    • • Full Integration tests• Good for testing services with UI components• Catches environment, networking,configuration, deployment and service issuesWebdriver Testing Benefits
    • • Selenium 2.0 based with Ruby page_object• Pages of each service are in separate gem• Tests reside in the service source treeWebdriver Framework
    • • API Specificationo Service Resource (base_url)• Operationo http verb, list of urls (versions)• API Shortcuts - ease use from other testsAPI_Test Framework
    • • API Tests - reside with service source• Allow table based specification of test cases• Easy to understand what tests arepresent/missing for a resource/operation• Automatically expanded for all operations(versions) and urls• Easy to add new positive/negative testsAPI_Test Framework(contd)
    • ?Questions