agile automated software testing into automotive v-model ... · agile automated software testing...

29
Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA Manager [email protected] es.linkedin.com/pub/xavier-martin/6/a89/723/

Upload: others

Post on 14-Jan-2020

35 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Agile automated software testing into automotive V-Model process:

A practical case

Xavier Martin ArtalSoftware QA Manager

[email protected]

es.linkedin.com/pub/xavier-martin/6/a89/723/

Page 2: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Agenda

• Introduction

• Automotive Trends: Car Connectivity

• Car Telematics project Challenges

• Use Case Solution: From V-Model to Agile Testing

• Results and Conclusions

Page 3: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Introduction

Page 4: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

What is this presentation about?

• Expose a practical case of adoption of Agile techniques in automotive testing

• Converge Spice automotive V-Model to AgileSpice V-Model

Agile

• Present Technical Solution adopted: Automation Test Framework

• Discuss results and Agile adequacy to Automotive industry

Page 5: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Automotive Trends: Vehicle Connectivity

Page 6: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Connectivity Services– Emergency Call

– Fleet Management

– Car Sharing

– Remote Car Diagnostics

– Stolen Vehicle Tracking

(SVT)

– WOTA Update

– Dealer Services

– User Premium Services

Car Telematics

• Car Manufacturers start to add 3G/4G capabilities• Connectivity opens new opportunities to develop services for both clients and manufacturers

Page 7: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Car telematics: eCall

• Emergency Call Service for Europe

• U.E Council proposes eCall obligatory in European Cars for end 2017

• Automatic call in case of accident or emergency will force car manufacturers to add IVTU to every new car for European Service

• Similar regulations for Russia, USA, BRA and PRC

Page 8: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Car Telematics Project Challenges

Page 9: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

What is an iVTU?

iVTU = in Vehicle Telematics Unit

- Electronic Unit in charge of granting 2G/3G/LTE connectivity tovehicles

- Two Main processors architecture:

� DSPIC pseudo-real time processor handling CAN interfaces

communication

� Telematics Processor managing Radio Communications and high level

services

� Supervisor Micro, USB, Wi-Fi, Accelerometer, GPS,…

Page 10: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

iVTU Interfaces

IVTUCAN-V

CAN-M

USB AT (Debug)

RADIO

IVTU

BCMECM

DCM

NAVI

EMUCAN-M

CAN-V

USB

TSP

GDC USER

Black Box Interfaces:

On-Car Integration:

Page 11: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Project Challenges

• Embedded System

– High dependency of Hardware Development

• Multiple Software Configurations for Multiple Hardware Variants

• 2 Car Manufacturers

• Number of releases

– Around 70 Releases per year

• ISO 26262 Safety Requirements

• Continuous changes in requirements

• Specifications blurriness

Page 12: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Hardware-Software Variability

JAPAN2 HW2 SW

AUSTRALIA�1 HW

�1 SW

BRAZIL�3 HW

�4 SW

�2 Brands

EUROPE�3 HW

�9 SW

�2 Brands

CHINA�4 HW

�5 SW

�2 Brands

USA�1 HW

�3 SW

CANADA�1 HW

�3 SW

RUSSIA�3HW

�5 SW

Page 13: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Use Case Solution:From V-Model to Agile Testing

Page 14: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Automotive Spice & V-Model (1)

Automotive SPICE® :

•Comprises a set of assessment indicators of process performance and process capability

•Based on ISO/IEC ISO/IEC 15504-2

•Defines several levels of adherence to standard

•Focus on Process

V-Model:

•Extension of Waterfall Methodology

•Big Design Up Front

•Phases aligns with Automotive SPICE

Page 15: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Automotive SPICE & V-Model (2)

Benefits:

•The facto industry standards

•Defines a clear process life-cycle

•V-Model emphasis on testing, and particularly the importance of early test planning

Drawbacks:

•The V-Model reflects a project management view of software development and fits the needs of project managers, accountants and lawyers rather than software developers or users.

•Inflexible and slow to respond to change.

•Process Overload

•Low Customer Implication

Page 16: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

IVTU: Agile Project in a Waterfall World

Project Challenges:

• Multiple HW variants

• Multiple SW variants• Continuous requirement Changes

• Specifications blurriness

• ISO 26262 Safety Requirements

• Industry Adherence

Page 17: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Why Use Agile?

• Flexibility to adapt to customer requirements changing during project life cycle

– New features to be implemented

– Redefinition of functions

• Fast time to market

Benefits:

Drawbacks:

• Customer resistance

• Light process vs Automotive classical approach

• Not big design up front

Page 18: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Agile testing

Incorporate Agile Methodology in System Tests:

•Test Group Works as an Agile Team

– Kanban approach. Adapting pseudo-sprints to customers necessities

•Client participates actively in Test Team activities

– Demos

– Specifications redefinition

– Feedback

•Automotive SPICE processes is kept

– Focused in Safety requirements

– Auto-documented Testing

•Test Automation to absorb number of release & System variability

– Jenkins CI & CD

– Long duration Test Campaigns, robustness, stress

Page 19: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Demo

Daily Meeting

Functional Req.

4-8 weeks

Joint Check

VC-LOT

PT-LOT

Analysis

Test Design

Execution

Analysis

Testing Agile Alignment

Client

SQA

SW

Release

Design

Code+UT

Integration

Release

Design

Code+UT

Integration

FB

Retrospective

Page 20: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Solution: Deployment Diagram

iVTU

HTTPS - UMTS

SMS

CI Main SERVER

LAN

KVASER

USB

RELAY

BOXRPYC Socket

TEST SERVERTEST CLIENT

CAN

USB

Page 21: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Solution: Logical Diagram

DEVELOPMENT and TEST CLIENT LINUX

SVN Client – Command Line

Eclipse - Pydev

Python

Robot Framework

Jenkins Server

Subversion

Server

SVN Repository

•TCU Automation Code

•Unit Testing

•Test Suites Results

CONFIGURATION MANAGEMENT SERVER

CONTINUOUS INTEGRATION SERVER

TEST SERVER PLATFORM

KVASER USB 3G

Build Script

SVN Client

Python

IVTU UNDER TEST ISP

GPRS/SMS

CAN

Page 22: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Robot Framework: Keyword Driven testing

Nominal ACNCall Sequence [VCAN Trigger][Front Or Side Crash][SerNominal ACNCall Sequence [VCAN Trigger][Front Or Side Crash][Server Hang Up][High Bus Load]ver Hang Up][High Bus Load][Documentation] Purpose:

... The aim of this test is to check whether ACNCall is started when VCAN trigger cause is present for "front or side crash". At same time this test is checking server hang up by sending DTMF tone '6' and service behavior when high CAN bus load present.

...

... Acceptance criteria:

... ACNCall is triggered for "front or side crash" state.

... Service behavior with high CAN bus load is correct.

... ACNCall is correctly terminated from server side.

[Setup] Acncall Test Setup

Start Airbag Frame

Bus Load ON

Crash [Front Or Side Crash]

Check MPDT Message [ACNCall Start]

Send MPDT Message [ACNCall Started]

TSP Server Action [Pick Up Call On Primary Server]

Check MPDT Message [ACNCall Voice Calling

Check ACNCall MSD Message

TSP Server Action [Terminate Request]

Check MPDT Message [ACNCall Voice Call Disconnected]

[Teardown] Acncall Test Teardown

Page 23: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Results and Conclusions

Page 24: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Results: Project Complexity

Page 25: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Results: Validation Effort

Page 26: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Results: Quality

Page 27: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Conclusions

• Complexity of Project can be better handled by means of Agile Methodologies

• Intensive automated testing and client demonstrations helps to produce better products, rising clients satisfaction

• Agile Methodologies can be introduced with success in some projects of automotive industry

• Agile methods like SCRUM usually do not support some essentials,which are required in the automotive context.

• We do not recommend a pure Agile approach, but rather a custom version integrated in current project life-cycles.

• Agile and SPICE Automotive can be combined to obtain best of both worlds.

Page 28: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

Future Challenges

• Reduce number of bugs reported by client

• Involucrate client into sprint

• Converge process to accomplish SPICE reporting

– Automatic Doors Reporting

– Automatic Data Test Package Generation

• Extend Agile to SW Development

Page 29: Agile automated software testing into automotive V-Model ... · Agile automated software testing into automotive V-Model process: A practical case Xavier Martin Artal Software QA

THANK YOU!!!!

QUESTIONS¿?

Xavier Martin ArtalSoftware QA Leader

[email protected]

es.linkedin.com/pub/xavier-martin/6/a89/723/