21
TESTING EMBEDDED CONNECTIVITY COMPONENTS Presented by Ron Jaegers © All rights reserved IN A MEDICAL REGULATED CONTEXT

IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

TESTING EMBEDDED CONNECTIVITY COMPONENTS

Presented by Ron Jaegers

© All rights reserved

IN A MEDICAL REGULATED CONTEXT

Page 2: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

2

• About Me• Project Context• Component Level Tests• Platform Level Tests• Releasing a Platform

Contents

Page 3: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

3

• Ron Jaegers ([email protected])

• Embedded Development Engineer @ Philips Innovation Services• Father of three• French car tinkerer• Open-source enthusiast

About Me

Page 4: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

PROJECT CONTEXT

© All rights reserved

Page 5: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

5

• Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise• Connectivity Platform

– WiFi and BLE Connectivity Nodes– Mobile phone libraries

Connectivity Platform

Connecting your product to the Philips cloud

made easy

Page 6: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

6

Connectivity Platform Triangle

Page 7: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

7

Connectivity Platform Customers

Page 8: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

8

• Key values: re-useable, traceable, automated

• No intended use…• But not SOUP either…

Medical Context

Page 9: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

COMPONENT LEVEL TESTS

© All rights reserved

Page 10: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

10

• Key values: scalable, fast, reproducible

• Dockerized Jenkins master and slave architecture• All configuration under source control• Supporting multiple configuration permutations• CI build + micro tests + smoke tests on five embedded platforms: 6 minutes!

Build and Test Setup

Page 11: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

11

• Flexibility declines from base to top• Reliability declines from base to top• Execution time increases from base to top

• Strive to push down tests by refactoring where possible

Component Test Pyramid

Manual

Micro a.k.a. unit

Integration

Refacto

r

Page 12: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

12

• C++, heap-less, STL-like, library for embedded devices

• Features:– Hardware Abstraction Layer (HAL)– Asynchronous event mechanism– Containers and streams– Network layer

• Published to GitHub: https://github.com/philips-software/embeddedinfralib

Enabler: EmbeddedInfraLib

Page 13: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

13

• Key values: fast, isolated, deterministic

• C++ | CMake | Google Test• 80k LOC | 3700 tests | 3 seconds• Fast, faster, fastest… fasttester

Micro Tests a.k.a. Unit Tests

Page 14: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

14

Enabler: Reference Product

Page 15: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

15

• C# | CMake | Gherkin (SpecFlow)• 200 integration tests, testing on feature level; tracing to requirements• Runtime up to several hours

Integration Tests

Gherkin (SpecFlow C#)

Reference Product

Connectivity Node

Reference Product

MCU

REST-likeinterface

RPC interface

REST-likeinterface

Page 16: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

16

• Part of release process• Hard to automate and destructive tests• 2 for WiFi | 4 for BLE

Manual tests

Page 17: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

PLATFORM LEVEL TESTS

© All rights reserved

Page 18: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

18

• Compatibility & interoperability– Between platform components– Between platform & phones

• Pen-testing

Platform Level Tests

Page 19: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

RELEASING A PLATFORM

© All rights reserved

Page 20: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi

20

• Requirements & test-cases in ALM tooling• Evidence exported from CI environment towards ALM tooling• Documentation is:

– (Automatically) generated– Reviewed– Signed-off & Published

Releasing a Platform

Page 21: IN A MEDICAL REGULATED CONTEXT Presented by Ron Jaegers · •Electronic Systems & IoT by Philips Innovation Services | Connectivity Center of Expertise •Connectivity Platform –WiFi