achieving high test coverage for an asil system · • increased test coverage →increased...

45
Achieving high test coverage for an asil system 2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Upload: others

Post on 22-Jul-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Achieving high test

coverage for an

asil system

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 2: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 3: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Increased test coverage → Increased quality.

• Saves time on running tests.

• Reproducibility.

2019-05-07

The road to high coverage verification

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Time should be spent on test

development, not running

tests.

Why test automation?

• Reduces number of needed test vehicles

• Can verify functions in early project phases.

• Reproducability

Why virtual verification?

Page 4: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2

7

11

1617

18

2014 2015 2016 2017 2018 2019

Active damping – number of software vehicle variants by year

Volvo XC90 launched.

Beginning of a new vehicle platform.

2019-05-07

software growth

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 5: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

A change in test strategy

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Manual testing, one variant

Manual testing, several variants

Automated testing, several variants

Automated testing, one variant

Virtual verification, vehicle models

2011 2013 2015 2016 2019

Page 6: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 7: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

overview of software’s used

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

vTESTstudio is a powerful development

environment for creating automated ECU tests.https://www.vector.com/int/en/products/products-a-z/software/vteststudio/

“CANoe is the comprehensive software tool for

development, test and analysis of individual

ECUs and entire ECU networks.”https://www.vector.com/int/en/products/products-a-z/software/canoe/

“CarMaker can model real-world test scenarios

in the virtual world. It has real-time capable

models for vehicles, roads, drivers and traffic.”https://ipg-automotive.com/products-services/simulation-software/carmaker/

• Vector CANoe

• Vector vTESTstudio

• IPG CarMaker

Page 8: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

vt system

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 9: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

test setup

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Signal exchange Signal exchange

CarMaker CANoe VT System

vTESTstudio ECU

Test object

Sensors

Page 10: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 11: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Topics

• Function definitions

• Test case definitions

• Parameter lists

• Variant properties

2019-05-07

Scaling up testing with vteststudio

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

vTESTstudio is a powerful development

environment for creating automated ECU tests.https://www.vector.com/int/en/products/products-a-z/software/vteststudio/

Page 12: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Vteststudio overview

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 13: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Example – testing different vehicle variants

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

”Check that a certain function

behaves correctly in X number

of variants.”

Page 14: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – function definitions

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

My first test case

MyFirstTestFunction

Page 15: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – test case definitions

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 16: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – parameter lists

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Parameters can either be

added as local values or

be created as parameter

list which are global and

can be used in other

tests also.

Page 17: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – parameter lists

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Parameter lists can be edited directly in vTESTstudio or in Microsoft Excel.

vTESTstudio Excel

Page 18: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – test case execution

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Test cases are executed from CANoe.

One test case will be created for each

call (variant).

Page 19: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Scaling up testing – variant properties

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Examples of useful variants

- Vehicle configuration

- Country / Market region

- ASIL level (ISO26262)

Variant properties are assigned to test cases in

vTESTstudio.

Test execution based on these properties are

done in CANoe.

”Today I need to test new software on a

Volvo V90 for EU market and run all

ASIL-A test cases”

Page 20: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Which tests you run is configured in CANoe.

• The list of tests will update to only include those that matches the chosen properties.

2019-05-07

Scaling up testing – variant properties

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 21: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

The VT System is used to create electrical faults on sensors

- Short circuit

- Short to battery

- Short to ground

- High/low voltage

Two test case definitions are used to cover 72 fault injection tests on the ECU

2019-05-07

Test case example – electrical fault injections

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 22: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 23: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Topics

• Test case example – Active damping system

• CarMaker integration with CANoe

• CarMaker test cases scaled up using vTESTstudio

• Example of repeatable tests

Virtual verification with vehicle models

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

“CarMaker can model real-world test scenarios

in the virtual world. It has real-time capable

models for vehicles, roads, drivers and traffic.”https://ipg-automotive.com/products-services/simulation-software/carmaker/

Page 24: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Active damping - overview

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 25: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• The ECU actively adjusts the dampers 500 times per second.

Customer benefits

• Increases comfort and handling.

• Enhances vehicle dynamics• Comfort mode

• Dynamic mode

• Eco mode

• Off-road mode

2019-05-07

Active damping – main features

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

ECU

Active

damping

algorithm

Sensors

Network

signals

Current[A]

outputDampers

Page 26: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Canoe – carmaker integration

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Fast Data

eXchange protocol

(FDX)

CarMaker CANoe

Functional Mock-up Unit (FMU)

ECU

Active

damping

algorithm

Sensors

Network

signals

Current[A]

outputDampers

Page 27: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Video example – Pitch

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Will be played in full screen

Page 28: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Video example - roll

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Will be played in full screen

Page 29: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

test setup with carmaker

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Closed loop test environment.

All data is being sent continuously at 500Hz.SensorsECU

Test object

Page 30: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

test setup with carmaker

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

1. Vehicle motion data is sent

from CarMaker to CANoe.

2. Scripts in CANoe converts

vehicle motion data to analog

outputs from the VT System

3. The analog outputs are sent to

I/O ports on the ECU.

4. The VT System reads the

damper current output and sends

it to CANoe.

5. The damper current output is

sent to CarMaker.

6. The vehicle model calculates

new damper forces.

SensorsECU

Test object

Page 31: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Example – Evasive Maneuvre

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Will be played in full screen

Page 32: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

Example – Evasive Maneuvre - canoe

2019-05-07 MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Will be played in full screen

Page 33: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 34: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Emergency braking is on going

• The vehicle will pitch forward

• The active damping software will adjust the dampers accordingly.

2019-05-07

Test case example – brake grip control

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 35: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

When everything is connected

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

CANoe

vTESTstudio

VT System

CarMaker

High coverage

virtual verification

Page 36: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Features used in vTESTstudio• Test case definitions

• Function definitions

• Variant properties

• Parameter lists

2019-05-07

When everything is connected - vteststudio

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 37: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

When everything is connected - video

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Will be played in full screen

Page 38: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

1. Background• Why test automation

• Why virtual verification

2. Way of working• Tools used

• Test setup

3. How to scale up test coverage• vTESTstudio features

4. Virtual verification with vehicle models

5. High coverage virtual verification

6. Conclusions and results

2019-05-07

agenda

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 39: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Conclusions - Test automation

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

2011 2015 2019

1 variant, manual tests 3 variants, automated tests

~1-2 weeks

1 variant, automated tests

~55 minutes ~60 minutes per variant

Active damping software, number of tests and time spent

Page 40: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Verification in real vehicle• Planning

• Booking

• Preparation of vehicle

• Travel time

• Etc...

2019-05-07

• Virtual verification• Much faster to increase test coverage

• Time can be spent on implementing new test cases.

• Cost efficient.

Conclusions – virtual verification

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Page 41: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Increased test coverage → Increased quality.

• Saves time on running tests.

• Reproducibility.

2019-05-07

Conclusions - results

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Why test automation?

• Reduces number of needed test vehicles

• Can verify functions in early project phases.

• Reproducibility

Why virtual verification?

Page 42: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

• Increased test coverage → Increased quality.

• Saves time on running tests.

• Reproducibility.

2019-05-07

Conclusions - results

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

Why test automation?

• Reduces number of needed test vehicles

• Can verify functions in early project phases.

• Reproducibility

Why virtual verification?

Or the short summary:

It saves time and money.

Page 43: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Final words – three things to remember

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

The importance of test automation.

Page 44: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Final words – three things to remember

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

The importance of test automation.

The benefits of virtual verification.

Page 45: Achieving high test coverage for an asil system · • Increased test coverage →Increased quality. • Saves time on running tests. • Reproducibility. 2019-05-07 The road to high

2019-05-07

Final words – three things to remember

MATTIAS SAVINAINEN - VOLVO CAR CORPORATION - VECTOR TESTING SYMPOSIUM 2019

The importance of test automation.

The benefits of virtual verification.

The software quality increase of high coverage

testing.