jsday.it - develop and test custom components for sencha touch by nils dehl

59
Develop and test custom components for Sencha Touch Nils Dehl, Senior Developer / Trainer Twitter: @nilsdehl Mail: [email protected]

Upload: nils-dehl

Post on 14-May-2015

1.501 views

Category:

Technology


0 download

DESCRIPTION

How to develop and test custom UI components for your Sencha Touch application. In this talk I will show you how to develop your own reusable UI components for your Sencha Touch Apps. Showcased with a custom "slide rule value selector" with two scales and a custom display component we will see how to create custom UI classes and use them in your App. We will also look into how to test our components with the Siesta JavaScript testing suite.

TRANSCRIPT

Page 1: jsday.it - develop and test custom components for sencha touch by nils dehl

Develop and test custom components

for Sencha Touch

Nils Dehl, Senior Developer / Trainer

Twitter: @nilsdehlMail: [email protected]

Page 2: jsday.it - develop and test custom components for sencha touch by nils dehl

Agenda

About me

Introduce Sencha Touch

Custom Components

Testing

Q & A

Page 3: jsday.it - develop and test custom components for sencha touch by nils dehl

Nils Dehl

Senior Developer

Trainer

Sencha Meetup Frankfurt

Conference Talks

Sencha Forum: mrsunshine

@nilsdehl

Page 4: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 5: jsday.it - develop and test custom components for sencha touch by nils dehl

Sencha Touch

Page 6: jsday.it - develop and test custom components for sencha touch by nils dehl

Sencha Touch 2

HTML5 mobile application framework

works on iOS, Android, BlackBerry, Windows 8, ...

Features

Smoother Scrolling and Animations

Adaptive Layouts

Native Packaging

Components: Lists, Dataviews, Toolbars, Charts, ...

Page 7: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 8: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 9: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 10: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 11: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 12: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 13: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 14: jsday.it - develop and test custom components for sencha touch by nils dehl

Custom Components

Page 15: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 16: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 17: jsday.it - develop and test custom components for sencha touch by nils dehl

Demo

Page 18: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 19: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 20: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 21: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 22: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 23: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 24: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 25: jsday.it - develop and test custom components for sencha touch by nils dehl

Styling

Page 26: jsday.it - develop and test custom components for sencha touch by nils dehl

Custom Events

Page 27: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 28: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 29: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 30: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 31: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 32: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 33: jsday.it - develop and test custom components for sencha touch by nils dehl

Testing

Page 34: jsday.it - develop and test custom components for sencha touch by nils dehl

Testing in Chrome

Page 35: jsday.it - develop and test custom components for sencha touch by nils dehl

Position right Settings

Page 36: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 37: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 38: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 39: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 40: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 41: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 42: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 43: jsday.it - develop and test custom components for sencha touch by nils dehl
Page 44: jsday.it - develop and test custom components for sencha touch by nils dehl

Testing with Simulator

Page 45: jsday.it - develop and test custom components for sencha touch by nils dehl

Test in iOS Simulator (Xcode)

Page 46: jsday.it - develop and test custom components for sencha touch by nils dehl

Remote debugging with Safari

Settings >

Safari >

Advanced >

Web Inspector = ON

Page 47: jsday.it - develop and test custom components for sencha touch by nils dehl

Remote debugging with Safari

Page 48: jsday.it - develop and test custom components for sencha touch by nils dehl

Siesta

Page 49: jsday.it - develop and test custom components for sencha touch by nils dehl

Siesta

http://www.bryntum.com/products/siesta/

Siesta is a JavaScript unit testing tool

Testing of the DOM and simulate user interactions

Sencha Touch, jQuery, Ext JS, NodeJS,YUI etc.

Run Tests in

the Browser

NodeJS

Write unit tests in plain Javascript

Page 50: jsday.it - develop and test custom components for sencha touch by nils dehl

Siesta Testrunner Browser

Page 51: jsday.it - develop and test custom components for sencha touch by nils dehl

Siesta Testrunner Browser

Page 52: jsday.it - develop and test custom components for sencha touch by nils dehl

Siesta Testrunner Mobile

Page 53: jsday.it - develop and test custom components for sencha touch by nils dehl

Harness

Page 54: jsday.it - develop and test custom components for sencha touch by nils dehl

Test

Page 55: jsday.it - develop and test custom components for sencha touch by nils dehl

Demo

Page 56: jsday.it - develop and test custom components for sencha touch by nils dehl

Real world test

Page 57: jsday.it - develop and test custom components for sencha touch by nils dehl

d dkdevelopmentkommunikationdesign

thank you.