28
IBM MobileFirst Governance e Test per lo sviluppo Mobile Roberto Pozzi Rational Technical Sales & Solutions [email protected] IBM Client Center Segrate, 10 Settembre 2013

Ibm rational mobile

Embed Size (px)

DESCRIPTION

Presentation held at IBM Mobile Enterprise event in IBM Client Center in Segrate, September 10th 2013. The slide deck presents Mobile Development Governance and Test challenges, approach and tools from IBM

Citation preview

Page 1: Ibm rational mobile

IBM MobileFirst

Governance e Test per lo sviluppo Mobile

Roberto Pozzi

Rational Technical Sales & Solutions

[email protected]

IBM Client Center

Segrate, 10 Settembre 2013

Page 2: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

AGENDA

� Mobile development: le sfide

� La piattaforma IBM per lo sviluppo mobile

� Gestire la qualità nello sviluppo mobile

Page 3: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

3

Mobile applications are not miniature pc applications1

Mobile Applications PC Applications

Usage Context

� User may be in the middle of some other activity (e.g. shopping in a supermarket)

� Using the application is the primary activity

� Interactions are short and may be interrupted � Interactions are longer and more focused

� Users are very impatient � Users are impatient

Mode of Interaction

� Non-keyboard: touch prevalent, also speech � Keyboard and mouse

� Typing should be minimized � Typing is okay

� Screen size/real-estate is small � Larger screen size for presenting information

Other considerations

� Integration with device capabilities (e.g. camera, GPS, accelerometer)

� Offline behavior

Page 4: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

4

1 and comes with unique development challenges

Developing for multiple mobile platformsDelivering high quality apps that engage users

and meet business objectives

Integrating with enterprise systems Meeting accelerated time to market requirements

Page 5: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

5

Mobile development is more than just coding

Analysis Phase Build Phase Deploy Phase

Operations/ ManufacturingTeam

DevelopmentTeam

Lineof Business

Analyze

Design Implement

Test

Manage

Run

Monitor

Optimize

Governance and Best Practices

Coding is just one component of the mobile application

development lifecycle

Page 6: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

AGENDA

� Mobile development: le sfide

� La piattaforma IBM per lo sviluppo mobile

� Gestire la qualità nello sviluppo mobile

Page 7: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst Offering Portfolio

AnalyticsSecurityManagement

IBM & Partner Applications

Application Platform and Data Services

Banking Insurance Transport Telecom Government

Industry Solutions

HealthcareRetail Automotive

Application & Data Platform

Strategy & Design Services

Development & Integration Services

Cloud & Managed Services

Devices Network Servers

Page 8: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

8

IBM unique value for mobile development

Mobile Application Platform Application Lifecycle Management

IBM provides the only comprehensive mobile development

solution currently in the market combining a mobile application

platform, construction tools, and lifecycle management

Test

DevelopmentBusiness

Open Lifecycle Integration

Platform

Traceability across

the entire development lifecycle

Design Code Test Deploy

Construct, debug, and test mobile UIs

IBM WorklightRational Solution for

Collaborative Lifecycle Management

Page 9: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

9

Solved mobile development challenges with IBM MobileFirst

� Cross-platform mobile web and

hybrid app development, test, and

build

� Manage plans, tasks, code, builds

from a common development

workbench

� Agile planning

Developing for multiple mobile platformsDelivering high quality apps that engage

users and meet business objectives

� Linkage and traceability across

all phases of development

� UI sketching and storyboarding

� Test plan optimization and

management and integration

with mobile “Device-clouds”

� Portfolio management

� Integrate Worklight Studio with the

Rational IDEs to create a

comprehensive IDE for all parts of

the app (UI, mid tier, back-end)

� Extend enterprise assets as

mobile-consumable services and

connect via Worklight adapters

Integrating with enterprise systemsMeeting accelerated time to market

requirements

� Automate and manage

continuous, end-to-end build and

deployment process with RTC

� Deploy to private dev/test app

� Reduce cycle times by aligning

dev and operations teams

Page 10: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

AGENDA

� Mobile development: le sfide

� La piattaforma IBM per lo sviluppo mobile

� Gestire la qualità nello sviluppo mobile

Page 11: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

11

Perceived mobile app quality

� User experience is critical for mobile

applications

� Mobile applications are “Face of the business”

� Engage customer personally and drive loyalty

� Planning tests against all combinations of

devices & OS

� Testing is complicated by new ways of

interacting

� Maintaining large library of devices in-house is

cost prohibitive

Design Quality Functional Quality

Goal: deliver apps that align with business goals and are perceived as

high quality – both from a user experience and functional point of view

Page 12: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

12

Lifecycle techniques to optimize UI experiences

� Improve collaboration and communications between line-of-

business stakeholders and development team

� Put more focus on the application design and conceptualization

phase

� Use UI sketching, storyboarding, and business process

diagrams

Page 13: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

13

Design for Quality with Rational Requirement Composer

Client Challenge

Key Capabilities

Delivering apps that align with business goals and are perceived as high quality

� UI sketching and storyboarding

� Design requirements management

� Collaborative reviews and approvals

Page 14: Ibm rational mobile

© 2013 IBM Corporation

Middle Tier ServerClient Tier Devices Back-end Data & Services

Testing involves much more than just the mobile front-end

Testing the end-to-end mobile solution

Focus of this presentation

Page 15: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

15

What does a mobile tester need ?

� Test management

� Planning, tracking, etc.

� Manual testing capabilities

� Integration into broader collaborative lifecycle

� Automation

� Device agnostic test cases

� Multi-target test cases

� Interaction with device-specific capabilities

� Virtualization of middle-tier and back-end

systems

� Access to a diverse set of devices

� Platforms

� Manufacturers

� Form factors

� Carriers

Rational Quality Manager

(RQM)

Rational Test Workbench

IBM Green Hat Virtualization

Third-party mobile device-

cloud services

Page 16: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

Rational Test WorkbenchFunctional test automation for Mobile apps

• Rational Test Workbench solution now offers new functionalities to:

– Register functional test cases on mobile device

– Execute automated functional tests

– Report and review test results

• The solution is built on different components and concepts:

– Test Workbench An IDE (to be installed on the tester’s workstation) to prepare

mobile apps for testing and create and modify mobile tests

– Mobile client A component (to be installed on the mobile devices) that allows

recording and playback of test scenarios executed on the

device

– Test Editor Enables test creation and definition of test steps and verification

points

– Test Reports Allows visualization of test flow and report in test failures

Page 17: Ibm rational mobile

© 2013 IBM Corporation

Automated testing for Mobile App GUI

� Supported Mobile Operating Systems

� Android 2.2+

� IOS 6+

� Android & iOS hybrid apps

� HTML5/CSS3

� JQuery Mobile

� 4 steps-testing approach:

� Recording: play your test first with the recording-

ready app and generate a test script

� Authoring: edit and enhance the test script by adding

verification points and others instructions

� Playback: run the test script on a real device, a

simulator or an emulator

� Reporting: generate an HTML report

� Worklight Integration

− Worklight Studio and RTW can shell-

shared for a smooth integration between

development and testing activities

− Better support for JQuery-based

applications

− Applications under test can be uploaded

from Worklight Application Center

Page 18: Ibm rational mobile

© 2013 IBM Corporation

Test Workbench An Integrated Development Environment (IDE) to prepare mobile applications for testing and create and modify mobile tests

Mobile Client Allows the recording and playback of test scenarios on the mobile device

Test Editor Enable test creation using English narrative and application images to define test steps and verifications

Test Reports Visualize the test flow and report on test failures

Test Workbench

Modified AppTarget App

(record, playback)

Test Workbench

Recorded Steps Mobile Test

Test Workbench

Test Results

Prepare

Author

Execute

Key concepts

Page 19: Ibm rational mobile

© 2013 IBM Corporation

19

Recording

� RTW Mobile creates a recording-ready app from the original app to record:

� All user interactions with the app

� Some hardware actions (GPS, HW buttons...)

� A client on the device allows to easily install/uninstall the require app depending of the

activities (record, playback)

� No need to root/jailbreak the phone

� A silent install mode on Android exists

� Installation on iOS uses ITMS protocol

� Supported platforms for recording

� Real devices (Android 2.2+, iOS 6+)

� iOS simulators (6+)

� Android emulators (2.2+)

Page 20: Ibm rational mobile

© 2013 IBM Corporation

20

ClearScript Test Script

� A simple instruction set understandable by a non-

developer

– In English and some other languages

– All instructions refer to UI Objects by a simple description of its

content and/or a localization with an other UI Object easier to

describe

� A form-oriented editor allows to modify each instruction

very easily

� The Test Script can be enhanced to support localized

strings of the application under test

– The same script can be executed on devices with different

locales without any modification

� Verification Points can be added an any property of any

UI Objects

� Many way to substitute data in the script

– From datapool

– References can be created in the script and reuse in

substitutions

Verification

Points

Localized

string

Command

editor

Instructions

set

Page 21: Ibm rational mobile

© 2013 IBM Corporation

21

The Test Editor

� Select an instruction in the test script

� Update the form editor

� Update the mobile data view

� Mobile Data View contains

� A snapshot of the UI taken just before the

corresponding action

� A tree view of all the UI Object

� The properties list of the selected UI Object

� Many shortcuts for creating Verification Points and

Variable from any object and property

Page 22: Ibm rational mobile

© 2013 IBM Corporation

22

Executing a Test Script

� From the device

� Select a test and run it on the device

� No substitutions

� From the workbench

� Switch the device in passive mode

� The workbench select automatically the right device

corresponding to the test script (Android/iOS, API level...)

� From RQM

� Similar to the run from Workbench

� Possibility to have additional selection criteria

Page 23: Ibm rational mobile

© 2013 IBM Corporation

23

Integration with other tools

� RTW other extensions

� Usable with HTTP & SOA extensions

� Usable with RIT (services virtualization)

� RQM Integration

� Execution of existing recorded test script in regression

� Worklight Integration

� Worklight Studio and RTW can shell-shared for a smooth integration between

development and testing activities

� Better support for JQuery-based applications

� Applications under test can be uploaded from Worklight Application Center

Page 24: Ibm rational mobile

© 2013 IBM Corporation

Extending Mobile Testingwith

Test Virtualization

Page 25: Ibm rational mobile

© 2013 IBM Corporation25

The Modern Application What is Test Virtualization and how can help?

Test Virtualization enables to create “virtual

services”:

�Virtual Services simulate the behavior of an

entire application or system during testing

�Virtual Services can run on commodity

hardware, private cloud, public cloud

�Each developer, tester can easily have

their own test environment and continue to

use their testing tools

Ca

ptu

re & M

od

el

Ca

ptu

re & M

od

el

System dependencies are a key challenge in

setting up test environments:

�Unavailable/inaccessible

�Costly 3rd party access fees:

�Impractical hardware-based virtualization:

Heterogeneous Environments

Public CloudPrivate Cloud

Data Warehouse MainframeEnterprise

Service Bus

Directory Identity

File systems

Collaboration

Mobile App Under TestRouting

Service

Third-partyServices Portals

ContentProviders

EJB

SharedServicesArchives

Business Partners

Messaging Services

Databases Mainframeapplications

App Under Test

Third-partyServices

Packaged apps, messaging services, etc.

Virtual Services

Page 26: Ibm rational mobile

© 2013 IBM Corporation

IBM Rational Test Virtualization SolutionA smarter solution to better quality

• Rational Test Workbench is a

desktop solution that enables

testers/developers to– Capture and model virtual services

– Test services and applications long

before their user interfaces becomes

available

• Rational Test Virtualization Server

is a server solution that:– Provides a central environment to

virtualize heterogeneous hardware,

software and services to provide 24x7

testing capabilities Databases Mainframeapplications

App Under Test

Third-partyServices

Packaged apps, messaging services, etc.

Rational Test Virtualization Server

Rational Test Workbench

Developers &

Testers

Page 27: Ibm rational mobile

© 2013 IBM Corporation27

Mobile Presentation Tier

SOA/BPM B2B

Database ESB Mainframe

Candidate system

• Typical multi-tiered environment

• Problems with provisioning/access

• Problems with data consistency

• Virtualize selected services or entire

application

• Different virtualization models available

• Testers, regardless of test methodology,

are unaware of virtualisation

Page 28: Ibm rational mobile

© 2013 IBM Corporation

IBM MobileFirst

GRAZIE