• No results found

Application Modelling

N/A
N/A
Protected

Academic year: 2021

Share "Application Modelling"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

1 © 2008 Nokia AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Seminar on Model-Based Testing as a Service

Application Modelling

Author:

Antti Heimola

Date:

Dec-4, 2008

Time:

Thu Dec- 4, 2008

(2)

Content

Model based Testing

Case: KENDO

- Testing modelling/automation needs

- Time it takes

(3)

3 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Model based Testing

James Bach’s Blog:

The Unbearable Lightness of Model-Based Testing

Question:

How do you suggest that you apply this technique with a complex

application, something like MS Word for instance.

I’m not sure what technique you are referring to. If you are talking about

using state models to describe a system, then it’s interesting that you ask that,

because I asked

Harry Robinson

that same question (it was even about

applying it to Word) after seeing an otherwise fascinating talk about

state-based testing that he gave, years ago. As I recall, he wasn’t ready to answer that

question. But I am.

My answer is: ask Harry

. Seriously, he has actually worked

with model-based testing tools at Microsoft, in the years since I challenged him

on this point.”

(4)

Model based Testing

(5)

5 © 2008 Nokia AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Application Modelling:

Case KENDO

GUI modelling tool – flow design tool

Specification tool

Test case generation tool

(6)
(7)

7 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

“System Success Factor of Model based Testing” - technical

“SSF = 3x+2y+z” *

System Modelling

Test Execution Control

Test Execution API

System Under Test

Test Support (testability)

Test Services

Communication

Other tools

Test Service API

Communication

x :

y :

z :

PC

Target

Bluetooth, USB, WLAN, IP…

Other tools

Successful model based testing

requires support from test execution

control tool and SUT test services –

“testability built in”

(8)

Test Service example

vw_VerifyText

§

Options

§

vw_VerifyMenu

Sort/Instructions/…/Exit

Test Service must support Capture screen minimum while Test Execution Control takes care of text verification

Capture screen support is NOT enough for verifying the whole menu content – more sophisticated Test Support required

Left soft key is §

Options

§

Options menu contains following items

: Sort, Instructions,…, Exit

Model, i.e. Specification of a system event:

Specification converted to test scripts:

Test scripts driving SUT using provided Test Services:

Question of test automation needs. Many

test tool vendors are happy with “press

button” support

(9)

9 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Levels enabling cross Platform Modelling & Testing

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

System Under Test

Test Support (testability) Test Services

Communication

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

Test Execution Control

Test Execution API

Test Execution Control

Test Execution API

System Modelling

Test Mode

•CPP

•NFT: Performance, Stress, Endurance..

•Probability

•Priority (test data)

+

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

System Under Test

Test Support (testability) Test Services

Communication

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

System Under Test

Test Support (testability) Test Services

Communication

System Under Test

Test Support (testability) Test Services

Communication Test Service API Communication

Bluetooth, USB, WLAN, IP…

Linux

S60

PC

Etc.

Advanced Features

•Memory Usage

•CPU…

In case Application flow (functionality) is

the same, no modifications needed, the

model can be executed on any platform

supported by Test Execution Control and

Test Services

(10)

History

1.

Ross Collard: Test Design: Developing Test Cases from Use Cases, 1999

2.

KeyWord based test automation system 2001

3.

Mikko Nikkanen

: KENDO I, 2005: Use Case based (test) modelling

4.

Mikko Mäkinen

: KENDO II, 2007: Application modelling

5.

Productized (internal) version 2008

Idea of integrating Use Cases & KWs

(11)

11 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

1999 *

2001 **

2008

*) Ross Collard: Developing test cases from Use Cases, Software Testing&Quality Engineering, July/August 1999 **) Mikko Mäkinen: Model based approach to Software testing 2007, page 28

(12)

UI level Application Modelling – UI flow Design

Target: Model all paths, not only some parts of them

In case a model is too complex, most likely the GUI is too complex to use

User Roles: Model Designer, Test Designer, Tester

Clearly separated events:

User Actions, System Responses

Use of KeyWord based approach was logical: Press a button, Tap, Open Menu

Managing complex models

System Model, Application Models, Sub-Models, Use/Test Cases

(13)

13 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

KENDO User Roles & Key features

Model Designer, Test Designer, Tester

Model Simulation….

(14)
(15)

15 © 2008 Nokia HR AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Implementing Lean Software Development

Mary and Tom Poppendieck, 2007

- Write executable specifications instead of requirements

- Myth: “The job of testing is to find defects”:

The job of tests is to PREVENT defects, not to find them

(16)

KENDO – time it takes S60 and Maemo

Modeling time

Minutes

Minutes

Minutes Minutes Minutes

Hours

Hours

Application

Model Designer Specification Test Designer Testing (ASTE)

Execution Total * Total **

Phonebook

85

330

55

65

21

9,3

7,5

Calendar

120

420

125

110

15

13,2

11,2

Notepad

90

310

115

55

12

9,7

8,2

Messaging

80

345

50

130

41

10,8

8,6

Gallery

120

360

60

60

32

10,5

8,5

Average

99

353

81

84

24

10,7

8,8

Median

90

345

60

65

21

10,5

8,5

* Excluding test execution time (column F)

** Estimated with new auto-complete feature (75% of column C)

Maemo (810) application modeling times with Kendo

Application

Model

Designer

Specification

Test

Designer

Testing

Execution

Total [min]

Total [h]

Notes

120

180

60

60

120

540

9,0

Clock

100

120

45

60

120

445

7,4

Bookmarks

90

150

60

75

90

465

7,8

Contacts

120

180

90

60

120

570

9,5

Average [h]

1,8

2,6

1,1

1,1

1,9

8,4

8,4

Median [h]

1,8

2,8

1,0

1,0

2,0

8,4

8,4

(17)

17 © 2008 Nokia AppModelling.ppt / Antti Heimola Seminar on Model-Based Testing as a Service Tampere Dec-4, 2008

Application Modelling

or

Model based Testing?

Thank You

[email protected]

References

Related documents

Entity Name Registered Address Country of Incorporation Entity Type Jurisdiction of Tax Residency Identification Number (GIIN) (TIN). HSBC

In this study, we applied an untargeted lipidomic profiling strategy based on ultra- performance liquid chromatography coupled to mass spectrometry (UPLC-MS) to identify

There are only two choices at this point: incremental change to the existing, outdated business model in the hopes that modest new efficiencies and a recovering economy will

Figure 4: the final clue colour-map showing key locations As they follow Uncle Roy’s clues, street players may also begin to receive text messages from remote online players who,

I use counterfactual conditional forecasts to find that a reduction in asset holdings down to a level where the federal funds market is active again will reducereal GDP growth by

The PRCC was the first community based medical education program in Australia to teach a full academic year of medicine based in rural general practice, and was

The aim of this study was to examine serum levels of the proinflammatory cytokines interleukin 6 (IL-6) and tumor necrosis factor a (TNF a ), and the anti-inflammatory cytokine

With the high number of anesthesia providers estimated to be misusing drugs, or at increased risk for misusing drugs, impairment on the job is likely, and potentially fatal