mbt to ttcn-3 tool chain: the m2m · pdf fileonem2m iot standard use case 7 •egm has an...

19
Budapest, 26-28 October 2016 MBT TO TTCN-3 TOOL CHAIN: THE ONEM2M EXPERIENCE Presented by Abbas AHMAD ([email protected]) © All rights reserved

Upload: haque

Post on 20-Mar-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Budapest, 26-28 October 2016

MBT TO TTCN-3 TOOL CHAIN: THE ONEM2M EXPERIENCEPresented by Abbas AHMAD ([email protected])

© All rights reserved

Page 2: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Contents

2

• IoT platform testing : Introducing MBT

• The oneM2M MBT use case

• MBT breaking its barriers in oneM2M

• Results

• Conclusions

© All rights reserved

Page 3: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

IOT PLATFORM TESTING : INTRODUCING MBT

© All rights reserved

Page 4: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Why are we testing the IoT ?

4 © All rights reserved

• It’s BIG

• How “BIG” is it ? (Sources : Gartner) • 6,4 Billion devices by 2016, 21 Billion by 2020!

• 63 new devices connected/second ( ~5,5 Million devices/day )

• It’s VULNERABLE

• Cost of data breaches will reach $2.1 trillion globally by 2019 (Juniper Research, May 2015)

• And this is “just” one example of vulnerability…

Page 5: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

How and why are we testing IoT ?

5 © All rights reserved

• We use Model Based Testing (MBT)

• Demonstrated in 2015 UCAAT Poster “IoT interoperability Model Based Testing”: scalable & suited for IoT platforms

• Automatic generation of executable tests• TTCN-3

• Soap-UI

• …

• Targets IoT platforms rather than devices

• Why targeting IoT Platforms ?

• Devices are Heterogeneous Interoperability Issues

• IoT platforms tend to be standardized

Page 6: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

oneM2M MBT use case

© All rights reserved

Page 7: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

oneM2M IoT Standard use case

7

• EGM has an active contribution in oneM2M testing topics:• Contributor & reporters on oneM2M security tests specifications

within oneM2M TC TST

• Active member of oneM2M test tool group

• MBT for oneM2M

• Difficulties to find correct abstraction level

• Requires pre-configured specific TTCN-3 code for oneM2M

• Adaptation not tester friendly on existing test environment

© All rights reserved

Page 8: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

8 © All rights reserved

oneM2M

Specifications

Functional & Security

MBT Model

Functional &

Security

Test Purposes

Some TTCN-3 Test tools

oneM2M Qualified

Test Lab(s)oneM2M

Consortium

MBT

engineers

Abstract test cases

CertifyIt

tool

Certification

User Friendly Documentation

Keeping overall traceability

Generation &

based

products

oneM2M use case previously demonstrated in oneM2M second interop event (South Korea May 2016)

Publishing

Implementing

Test Purposes

Standard

Standard

Page 9: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Publishing & Executing TTCN-3

• MBT tool offers publishing abstract test cases in manydifferent formats such as XML, HTML, JUnit andothers

• We created with the help of the MBT tool API acustom TTCN-3 Abstract Test Suite (ATS) publisher

• Automated TTCN-3 code generation implies a lowermaintenance cost

9 © All rights reserved

Page 10: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

TTCN-3 Test example

10 © All rights reserved

Published TTCN-3 TestMBT Abstract Test

Page 11: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

MBT breaking its barriers in oneM2M

© All rights reserved

Page 12: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Curent status & Common Issues

12

• Complex oneM2M organization: Steering Committee, Technical Plenaries, 6 Working Groups,…

• Long and expensive manual work: test purposes production and TTCN-3 writing

• High maintainability cost

• Expensive quality control (manual traceability of tests against standard requirements)

• Overall huge resources investments

© All rights reserved

Requirements Test PurposesManual TTCN-3

writingCompiling Executing

Page 13: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

The MBT process

13 © All rights reserved

• MBT is an automated and cost efficient testgeneration process and provides high quality testsuites

• Easy maintenance: modification ripple through theentire automated TTCN-3 code generation

• MBT enables the TRACEABILITY of requirementcoverage : tests quality control achieved at low cost

Requirements Test PurposesManually

Writing testsCompiling Executing

Model-Based Test purpose

Model basedTTCN-3 tests generation

Page 14: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Results

© All rights reserved

Page 15: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

oneM2M Second interop Results (South Korea May 2016)

15

• 20 participating oneM2M standard implementers

• 12 sessions with 11 oneM2M implementations tested

• 22 MBT generated Test Cases provided

• Our experience at Seoul:

• Showed the feasibility of the MBT process

• We confirmed that the MBT approach provided a level of service better or identical to manual testers

© All rights reserved

Page 16: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

TTCN-3 test tool execution results overview

16 © All rights reserved

Page 17: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Conclusion

© All rights reserved

Page 18: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Conclusion & Lessons Learnt

18

• MBT is suited for IoT Platforms testing

• Increased quality & traceability of generated tests compared to manual testing

• Mid term return on Investment

© All rights reserved

Page 19: MBT TO TTCN-3 TOOL CHAIN: THE M2M · PDF fileoneM2M IoT Standard use case 7 •EGM has an active contribution in oneM2M testing topics: •Contributor & reporters on oneM2M security

Thank YOUQuestions and comments?

Contact: [email protected]

© All rights reserved