62
Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009 Device Emulation with OSGi and Flash Marcus Harringer, MicroDoc GmbH

Device Emulation with OSGi and Flashwiki.eclipse.org/images/7/78/Device-emulation_edays.pdf · 2009. 6. 26. · Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Device Emulationwith

    OSGi and FlashMarcus Harringer, MicroDoc GmbH

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    What is Device Emulation ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Device Emulation

    Your Device

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Apple iPhone Emulator

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Google Android Emulator

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Nintendo GameBoy Emulator

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    SkiData Turnstile Emulator

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Why Device Emulation ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    deploy code

    test manually

    remotedebugging

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    10 iPhone DevelopersTotal cost: 990$

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    10 Skidata Developers

    * prices are purely fictive

    Total cost: 100.000$*

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    10 Skidata DevelopersDistributed Team

    * prices are purely fictive

    Hardware Costs: 100.000$*Shipping Costs: 10.000$

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Why Device Emulation ?

    Save Time

    Save Money

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    How to do Device Emulation ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    What is a Device ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    iPhone “Device”

    Display Device

    GSM Modem Device

    Audio Device

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Turnstile “Device”

    Display Device

    RFID Device

    Lightsensor Device

    Barcode Device

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Now, what about OSGi and Flash ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    OSGi inside

    Embedded Software

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Hardware

    Software

    OSGi Bundles

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Hardware

    Software

    OSGi Bundles

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Hardware

    Software

    OSGi Bundles

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Hardware

    Software

    OSGi Bundles

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    HTTPTCP

    HTTPS?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    http://test.at/index.html?action=something

    URL Encoding

    HTTP

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    LoadVars Object

    Object

    o = new LoadVars();

    o.id = 17;

    String myId = request.getParameter(“id");

    HTTP

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    XML Object

    XML

    17

    s = buildXMLObject()

    o = parseXMLString()

    HTTP

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    XML Sockets

    XML via Sockets

    TCP

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Flash Remoting

    Action Media Format

    HTTP/HTTPS

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Our Approach

    TCP

    XML Sockets !

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Framework

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Framework Features

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Java Flash Communication

    XML Sockets

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Dynamic Loading

    osgi> start my.device.X

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Programmable Emulator Behavior

    Lightsensors RFID

    Turnstile

    Display

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Programmable Emulator Behavior

    Events • triggered by time• triggered by action

    Actions

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Programmable Emulator Behavior

    Events • triggered by time• triggered by action

    Actions

    XML

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

    actual expected

    Lightsensor 1=on

    action event

    Lightsensor 2=onRFID read id=47111

    Lightsensor 1=onLightsensor 1=onRFID read id=47111

    Display = “Hello” Display = “Hello”Turnstile = open Turnstile = open

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

    Lightsensor 1=onLightsensor 1=onRFID read id=47111Display = “Hello”Turnstile = open

    Testcase

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

    Do we really need a GUI ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

    NO !

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

    How do we trigger tests without a GUI ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Emulator Testing Framework

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Overall Testing Picture

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Overall Testing Picture

    Emulator Real Device

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    A Quality Gate...

    ...through, continuous and automated testing

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Logging

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

    INFO : Test : some log messages

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Flash Issues

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Flash Security Sandbox

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Flash Local Connection

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Flash Debugging

    TypeError: ERROR #2007:

    child must be non-null

    at m.display line 1050;

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    So, why use Flash ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Animation

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Look & Feel

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    SWT/ SWING Adobe Product line

    Labor Market - Designer

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    But, what about JavaFX ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Open Source ?

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Skidata Freemotion Turnstile

    Turnstile

    VGA Display

    Lightsensors

    Barcode Ticket Reader

    RFID Ticket Reader

    Live Demo

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Live Demo !

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

  • Device Emulation with OSGi and Flash | Marcus Harringer | MicroDoc GmbH | www.microdoc.com | © 2009

    Copyrights & Trademarks“Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries."

    “OSGi is a trademark of the OSGi Allicance.“

    “iPhone is a trademark of Apple Inc.“

    “Flash is a trademark of Adobe Systems Inc.“

    “Android is a trademark of Google.“