25
Testing, Crafting and Developing a Brand New Powertrain Software in an Agile Environment A joint Development around the World Dr. Siegfried Saenger Zetina, Ralf Focken, Stefan Schlereth, Slawomir Woljnar RD Powertrain Electronics, Germany Himank Kinkar Mercedes-Benz Research and Development, India Qtronic User Conference, Dec.2 nd 2019

Testing, Crafting and Developing a Brand New Powertrain

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Reset the slide back to its

Change the slide layout

via menu bar:

Alternating between white and black

slide layouts via menu bar:

Testing, Crafting and Developing a Brand New Powertrain

Software in an Agile EnvironmentA joint Development around the World šŸŒŽ

Dr. Siegfried Saenger Zetina, Ralf Focken, Stefan Schlereth, Slawomir Woljnar RD Powertrain Electronics, Germany

Himank Kinkar Mercedes-Benz Research and Development, India

Qtronic User Conference, Dec.2nd 2019

Who are we and what do we do?

https://media.daimler.com/

Can the SW be ready for what comes next?

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019https://media.daimler.com/

The Story

ā€¢ Fit multiple powertrain variants

ā€¢ Higher information quality and quantity

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019https://media.daimler.com/

ā€¢ Create new features

ā€¢ Migrate old features

ā€¢ Inventors, developers, testers and sponsors

ā€¢ 2--3 years

Silver Environment

Simulation

Compiled Code

Multi-Module SIL

Unit 2 Unit 3

Stimulus

Unit 2

SWE-Level (Software)

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Unit 1

Silver Environment

Engine CM

Engine Simulation

Compiled Code

CAN-IO

Mini Component Sil

5

Unit 1

SYS-Level (System)

Silver Environment

CPC Engine CMTranmission CM

Batt/EMVehicle Powertrain Engine Simulation

Compiled Code

CAN-IOCAN-IO CAN-IO

Powertrain SIL

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 6

Engine CM

Optional Without Engine Inhouse Software

Powertrain SIL in the physical Domain for

ā€¢ Torque & speed

ā€¢ Current & voltage

Agile Software

Development

through Requirements

Engineering

Focus Today: Testinghttps://media.daimler.com/

How to build up awareness for testing?

1. Find the team flow

2. Start with small steps

3. Designate test-managers

4. Organize and iterate

5. Build the test concept

6. Automate everything

7. Go full variants

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 8https://media.daimler.com/

SYS Analysis and Synthesis Test & Review

ArchitectureSWE Analysis and

Synthesis

Deployment

Release it

1. Find the Flow

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Scrum 2 WeeksKanban Kanban ~2 weeks

9

Tune the Flow

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Summer Test-Trip

Many variants and

users2 Weeks

First Vehicle

Integration

10Time

Statistics

20,83

10,95

4,575,39

13,79

2

4,87

2 1,75

3,25

0

5

10

15

20

25

To Do Req Writing Architecture Crafting Testing

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

To-Do

14%

Req Writing

35%

Architecture

14%

Crafting

13%

Testing

24%Days

Average

Median

11

?

2. Start with Small Steps

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Build Testframe in

Silver

Unit ConstructionManual

TestingTroubleshooting a

Problem

Silver Environment

Simulation

Compiled Code

Multi-Module SIL

Unit 1 Unit 2 Unit 3

Stimulus

12

3. Designate Test-Managers

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

The Test-Manager works in the Agile ā€“ Team as a:

ā€¢ Developer

ā€¢ Product Owner

ā€¢ Scrum-Master

Tasks

ā€¢ Organizes Silver Hackathons

ā€¢ Keeps Track of the Test-Status

ā€¢ Owns the Test-Strategy

ā€¢ Gets Help

Bangalore, India

Sindelfingen, Germany

13

4 Organize and Iterate

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Test Strategy

ā€¢ As efficient and as digital as possible

ā€¢ Stay in one Eco-System

ā€¢ Automate as much as possible

Test-Concept

ā€¢ Non-Functional in Unit-Testing

ā€¢ Functional in SYS-Area

ā€¢ Reviews where it makes sense

Test-Tools

ā€¢ SILver, Testweaverā€¦.

Decide and start testing!

14https://media.daimler.com/

SYSTEM AREA

SOFTWARE AREA

5. Build the Test Concept

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 15

#Functional Reviews #Vehicle Tests

#HIL

Regressiontests

#Acceptance Tests

#Functional Architecture Reviews #Integration Tests

#Integration Tests

#Acceptance Criteria

#UML-Review

#SiL-TestweaverRegressiontests

#Non Functional Tests SIL Code Coverage

#Functional SIL-Unit Tests

#Functional SIL Multi Module

#SiL Sanity Tests

#SiL Smoke Tests

Testconcept 1.0

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 16

Coding test scripts from test specification is still a Manual Process

Example: Writing one Test and Matching to Requirement

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

###################################################

################################################

# ControlUnit: CPC3-RG

# Software Group: MoKo

# Cluster: TqCoor

# Jira Key: MOKO-4058

# Request: a coordinated ESP request shall acknowledged to the ESP

# TestCase: if ESP request on WP#10 is confirmed, the Ack-Signal is set

to EXECUTED or SUPPRESSED

# Defect:

###################################################

################################################

requirement_watcher("W_CPC3_RG_TqCoor_EspReqAck_01"):

during(Ign_Mode == 1 && Whl_StLimTq==16 && Esp_StTyp > 0):

expect_throughout(Ptcoor_TqReqEspAck > 0 && Ptcoor_TqReqEspAck

<3)

17

# Script to get a car

started, to max

speed and stop

# Script to change

the powertrain

configuration

6. Automate

everything

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 18https://media.daimler.com/

Automatize the Test-Scripts

Team Mercedes-Benz RD India developed

the ideašŸ’”

Scrip-TickAutomatically generates the test scripts from test

specification for various testing tools such as

Testweaver, Provetech, Vector CAPL.

MAGIC ā­ needed

Advantagesā€¢ Quick Implementation

ā€¢ Automated Checks on Test specifications

ā€¢ Coding Tester Independent

ā€¢ Standardized test specification

ā€¢ Seamless integration between Test

specification and test scripts

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 19

Now, how does it look?

Testconcept 2.0

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

Update 1 : ONE Language for Script-ing Update 2 : Jenkins Pipeline20

Sit-back and see the computer run tests

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

for each

SW-Release-Train the user gets a fully

ā€¢ SIL-Buildā€¢ Test-Weaver Testedā€¢ HEX-Build

Ave

rage T

ime [

min

ute

s]

21

Jenkins Pipeline

SILCode Testweaver HEX Results

</>

7. Go full variants

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 22

Focus on 6 Main Powertrain-Release Trains

(Lead Plattforms)

ā€¢ Gasoline, Diesel, Mild-Hybrids ,

Performance Hybrids, Plug-In Hybrids,

and EVs

ā€¢ 4x4 and 4x2 Variants in Addition

Test-Management Today

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019

1. Well balanced diet between SIL- and HIL-Testing

2. Manual Testing in SIL still needed for Sanity-Checks of

new Features

3. Next-Step: Migration of Regression Unit-Testing in SIL

23

SIL ver1 SIL ver 2 SIL ver 3 SIL ver 4HIL HW1

ā€¢ Smoke-Testing in Silver per Buildā€¢ Sanity-Testing in Silverā€¢ Regression Testing in Testweaverā€¢ HIL Testing

Every 2 Weeks

SW-Builds

released and

tested to users

602

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019 24https://media.daimler.com/

Project Time From Start:

2 years, 10 months, 15 days

Thank you very much for your attention

Testing and Crafting Brand New Powertrain Software | Dr. Saenger Zetina | 02.12.2019https://media.daimler.com/

Danke!