device emulation with osgi and flash

62
Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009 Device Emulation w ith OSGi and Flash , George Mesesan MicroDoc GmbH

Upload: georgemesesan

Post on 14-Jul-2015

1.221 views

Category:

Documents


1 download

TRANSCRIPT

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Device Emulationwith

OSGi and Flash

, George Mes es an MicroDoc GmbH

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

What is Device Emulation ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Device Emulation

Your Device

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Apple iPhone Emulator

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Google Android Emulator

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Nintendo GameBoy Emulator

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

SkiData Turnstile Emulator

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Why Device Emulation ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

deploy code

tes t manually

remote debugging

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

10 iPhone Developers :Total cos t 990$

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

10 Skidata Developers

* prices are purely fictive

:Total cos t 100.000 *$

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

10 Skidata Developers Dis tributed Team

* prices are purely fictive

:Hardware Cos ts 100.000 *$ :Shipping Cos ts 10.000$

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Why Device Emulation ?

Save Time

Save Money

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

How to do Device Emulation ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

What is a Device ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

iPhone “Device”

Dis play Device

GSMModem Device

Audio Device

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Turns tile “Device”

Dis play Device

RFID Device

Lights ens or Device

Barcode Device

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

, Now what about ?OSGi and Flas h

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

OSGi ins ide

Embedded Software

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Hardware

Software

OSGi Bundles

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Hardware

Software

OSGi Bundles

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Hardware

Software

OSGi Bundles

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Hardware

Software

OSGi Bundles

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

HTTPTCP

HTTPS?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

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

URL Encoding

HTTP

Device Emulation with OSGi and Flash | George Mesesan | 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 | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

XMLObject

XML<dataSet> <data> <id>17</id> </data></dataSet>

s = buildXMLObject()

o = parseXMLString()

HTTP

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

XML Sockets

XML via Sockets

TCP

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Flas h Remoting

Action Media Format

HTTP/HTTPS

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Our Approach

TCP

XML !Sockets

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Framework

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Framework Features

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Java Flas h Communication

XML Sockets

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Dynamic Loading

osgi> start my.device.X

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Programmable Emulator Behavior

Lights ens ors RFID

Turns tile

Dis play

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Programmable Emulator Behavior

Events triggered by time triggered by action

Actions

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Programmable Emulator Behavior

Events triggered by time triggered by action

Actions

XML

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

actual expected

Lightsensor 1=on

action event

Lightsensor 2=on

RFID read id=47111

Lightsensor 1=on

Lightsensor 1=on

RFID read id=47111

Display = “Hello” Display = “Hello”

Turnstile = open Turnstile = open

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

Lightsensor 1=on

Lightsensor 1=on

RFID read id=47111

Display = “Hello”

Turnstile = open

Testcase

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

Do we really need a GUI ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

NO !

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

How do we trigger tests without a GUI ?

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Emulator Testing Framework

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Overall Testing Picture

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Overall Testing Picture

Emulator Real Device

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

A Quality Gate...

...through, continuous and automated testing

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Logging

<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages<2009-17-06 13:12:14> INFO : Test : some log messages

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Flas h Is s ues

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Flas h Security Sandbox

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Flas h Local Connection

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Flas h Debugging

TypeError: ERROR #2007: child must be non-null at m.display line 1050;

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

, So why us e ?Flas h

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Animation

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Look &Feel

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

/ SWT SWING Adobe Product line

Labor - Market Des igner

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

, But what about ?JavaFX

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Open ?Source

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Skidata Freemotion Turns tile

Turnstile

VGA Display

Lightsensors

Barcode Ticket Reader

RFID Ticket Reader

Live Demo

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Live !Demo

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Device Emulation with OSGi and Flash | George Mesesan | MicroDoc GmbH | www.microdoc.com | © 2009

Copyrights &Trademarks

is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries."

“OSGi is a trademark of the OSGi Alliance.“

“iPhone is a trademark of Apple Inc.“

“Flash is a trademark of Adobe Systems Inc.“

“Android is a trademark of Google.“