+ All Categories
Home > Documents > AUTOSAR Virtual Testing - Vector

AUTOSAR Virtual Testing - Vector

Date post: 01-Jan-2022
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
30
V2.2 | 2019-11-12 Software Testing TechDay – November 19, 2019 AUTOSAR Virtual Testing with vVIRTUALtarget, vTESTstudio & CANoe 1 / 6
Transcript
Page 1: AUTOSAR Virtual Testing - Vector

V2.2 | 2019-11-12

Software Testing TechDay – November 19, 2019

AUTOSAR Virtual Testingwith vVIRTUALtarget, vTESTstudio & CANoe

1 / 6

Page 2: AUTOSAR Virtual Testing - Vector

1. Introduction

2. Virtualization

3. Use Cases of Virtualization

4. Testing

5. Demo

Agenda

2

Page 3: AUTOSAR Virtual Testing - Vector

CANoe, vTESTstudio,VT System,

vVIRTUALtarget,VectorCAST/QA

Virtual Testing of AUTOSAR Software Components

Introduction

vVIRTUALtarget Pro generates the RTE and BSW Emulation for your AUTOSAR project enabling early

design phase testing with CANoe'ssimulation power and vTESTstudio's

test design environment.

3

Page 4: AUTOSAR Virtual Testing - Vector

The AUTOSAR Idea

Introduction

AUTOSAR (Automotive Open System Architecture) is a standardization initiative of leading automotive manufacturers and suppliers that was founded in 2003.

AUTOSAR aims to standardize the software architecture of Electronic Control Units (ECUs). AUTOSARpaves the way for innovative electronic systems that further improve performance, safety andenvironmental friendliness.

4

Page 5: AUTOSAR Virtual Testing - Vector

The AUTOSAR Idea

Introduction

5

Page 6: AUTOSAR Virtual Testing - Vector

The AUTOSAR Advantage

Introduction

Hardware and software – widely independent of each other.

Development can be decoupled by horizontal layers, reducing development time and costs.

Reuse of software enhances quality and efficiency.

6

Page 7: AUTOSAR Virtual Testing - Vector

> Log Files

> Test Reports

> Etc.

CANoe – One Tool for Everything

Introduction

System Under Test

Test Units

Network Interface

Network

CANoe

Simulation Kernel

Analysis

Test Execution

Engine

Diagnostics

APIs

Test Hardware

CANoe is a comprehensive software tool for development, test and analysis of entire ECU networks and individual ECUs.

One tool for all development and testing tasks

Easy automated testing

Simulate and test ECU diagnostics

Open environment: various APIs allow tool coupling

7

Page 8: AUTOSAR Virtual Testing - Vector

Using CANoe, you can create simulations of entire networks or the remaining bus:

CANoe – Simulation of Entire Networks or Remaining Bus

Introduction

Usage of a single CANoe model in all phases of development

CANoe models can be distributed by the OEM or created on the supplier side

Function development and regression testing is supported

Gateway simulation for different bus systems is possible

8

Page 9: AUTOSAR Virtual Testing - Vector

vTESTstudio

Introduction

Test Table Editor for tabular editing of test sequences

Test Sequence Diagram Editor for graphical design of test cases in diagrams

Programming Editors for CAPL and C#

vTESTstudio provides various editors for specifying test automation for CANoe

These editors address specific use-cases, skills and preferences of the test designer

Different test notations can be combined easily - even within the same test case

State Diagram Editor for automatic generation of test cases out of state transition diagrams

9

Page 10: AUTOSAR Virtual Testing - Vector

1. Introduction

2. Virtualization

3. Use Cases of Virtualization

4. Testing

5. Demo

Agenda

10

Page 11: AUTOSAR Virtual Testing - Vector

AUTOSAR Approach

Virtualization

virtual virtual

11

Page 12: AUTOSAR Virtual Testing - Vector

vVIRTUALtarget

Virtual integration of ECUs on the PC

No instrumentation necessary

“Virtual” MCAL and OS

Easy debugging of the virtual ECU

Dual-Target approach – “One Source” development for both virtual and hardware target

System under Test

Single ECU

ECU Network

Test Environment

Test interface for 3rd party test tools

Integration into CANoe available

Virtualization

vVIRTUALtarget (VTT) in a nutshell

Evaluation of the AUTOSAR stack

Prototyping and serial production projects

Switch between virtual and hardware target (Dual-Target approach)

Use Cases

12

Page 13: AUTOSAR Virtual Testing - Vector

PC environment has advantages compared to a real HW

Early test and integration results since the PC is always available – no need to wait for the HW

Easy replication of test and integration environments on several work places

Test scenarios can be easily applied e.g. to provoke “race conditions” and to achieve good code coverage

Faster execution of tests possible

Access to internal variables and observed execution is possible (debugging)

Benefits of Virtualization

Virtualization

t

Virtual EnvironmentIntegration Platform

DevelopmentPhase

Interactive and Automated TestsTest

Start of Integration

A-Sample B-Sample C-Sample SOPPrototype

Real environment

13

Page 14: AUTOSAR Virtual Testing - Vector

BSW

RTE

SWCA

SWCB

MCAL

OS

Virtualization in the Development Process

Virtualization

virtual virtual

virtual

Design/ Development

SWC Integration

ECU Integration

System Integration

RTE

SWCA

SWCB

SWCC

Service Emulation

Real

Virtual

virtual

VTT pro

VTT basic

AUTOSAR Classic AUTOSAR Adaptive

ARA::COM

ARA

ServiceA

ServiceB

ApplicationIntegration

System Integration

Design/ Development

VTT pro

14

Page 15: AUTOSAR Virtual Testing - Vector

1. Introduction

2. Virtualization

3. Use Cases of Virtualization

4. Testing

5. Demo

Agenda

15

Page 16: AUTOSAR Virtual Testing - Vector

Use Cases of Virtualization

Use Cases of Virtualization

Software Test

ECU Test System Test

Regression Test

16

Page 17: AUTOSAR Virtual Testing - Vector

Software Test

Use Cases of Virtualization

Integration of Software Components in a realistic AUTOSAR environment

Testing during development of functional code

Using the same code and interfaces as in the embedded ECU project

Test with the application layer interface (RTE)

Parallel Development of test libraries for later reuse

Easier and faster configuration compared to simulation with complete BSW

Behavior Model

SWCA

RTE

SWCB

SWCC

Behavior Model

SWC1

RTE

SWC2

SWC3

Test Tool

17

Page 18: AUTOSAR Virtual Testing - Vector

ECU Test

Use Cases of Virtualization

Use of the complete AUTOSAR basic software (BSW)

Verification of the ECU configuration (ECUC) in the virtual environment without the need of target hardware

Stimulation via µC abstraction layer (MCAL i.e. buses and IO) and internal ports

Debugging of internal behavior is possible for the complete ECU software

MCAL VTT

vVIRTUALtarget

MCAL

MCALMCAL VTT

VisualStudio Target compiler

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

Test Tool

18

Page 19: AUTOSAR Virtual Testing - Vector

System Test

Use Cases of Virtualization

Test of distributed functions in virtual or partially virtual environment

Reuse of already configured virtual SUTs also in combination with real ECUs

Usage of test libraries developed in earlier phases

Stimulation via µC abstraction layer (MCAL i.e. buses and IO) and internal ports

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

Test Tool

19

Page 20: AUTOSAR Virtual Testing - Vector

Regression Test

Use Cases of Virtualization

Reproduce functional behavior or misbehavior with measurements of field test in the virtual world

Difficultly achievable situations can be generated virtually

Simulation time is not linked to real time, so pausing and resuming when debugging and execution faster than real-time is possible

BSW

SWCA

RTE

SWCB

SWCC

MCAL

OS

20

Page 21: AUTOSAR Virtual Testing - Vector

1. Introduction

2. Virtualization

3. Use Cases of Virtualization

4. Testing

5. Demo

Agenda

21

Page 22: AUTOSAR Virtual Testing - Vector

One of the primary use cases of CANoe is to test ECUs and networks. These tests are used to verify individual development steps, test prototypes or to perform regression and conformance tests. CANoe services the System Under Test at all interfaces. This assures the fullest possible test coverage.

The Test Feature Set in CANoe consists of the following components:

Test Modules/Test Units

Constraints and Conditions

Collection of test functions

(Test Service Library)

Automatic report generation

Direct control of I/O hardware

Overview

Testing

Network

CANoe

Measu

rem

en

t an

dTest

Hard

ware

System Under Test

VN

In

terfa

ces

22

Page 23: AUTOSAR Virtual Testing - Vector

Accessing the System Under Test

Testing

Network

CANoe

VN Interfaces

Sensor Protocols

Higher Layer Protocols

Interaction Layers OEM specific

Network ManagementAUTOSAR, OSEK NM, OEM specific

Ethernet, GPIB, RS232 etc.

XCP Diagnostics

Measurement &

Test Hardware

VT System, IOpiggy, DAQ, etc.

System Under Test

Network Interface Digital/Analog I/O

Memory0100101111010010

Fault Memory0110011010011010

SENT/ PSI5/…

Test Execution

23

Page 24: AUTOSAR Virtual Testing - Vector

vTESTstudio and CANoe

Testing

vTESTstudio

Design & Implementation

CANoe + Bus Interfaces

Execution & Reporting

Test programming (CAPL, C#)

Table based test design

Graphical test design

Parameters and variants

Stimulation curves

Traceability

Real-time execution of tests

Access to SUT via

IOs

bus systems

protocols (diagnostics, XCP, …)

debug interfaces

Automatic detailed reporting

Analysis of test run

Test Units:

- Code

- Parameter

- Traceability Information

- …

Build Load

Symbol databases:

- DBC

- ARXML

- CDD

- …

Classification tree method

24

Page 25: AUTOSAR Virtual Testing - Vector

A test report is generated automatically during the execution of a Test Module/ Test Unit. It can be analyzed using the CANoe Test Report Viewer:

Test Reporting

Testing

25

Page 26: AUTOSAR Virtual Testing - Vector

1. Introduction

2. Virtualization

3. Use Cases of Virtualization

4. Testing

5. Demo

Agenda

26

Page 27: AUTOSAR Virtual Testing - Vector

vVIRTUALtargetpro

SWC Integration with vVIRTUALtarget pro – Testing the Source Code

Demo

SWC A SWC B SWC C

RTE

BSW

ECU integration for virtual hardware

vVIRTUALtarget pro

Service Configuration

GenerateCode

Application source code

.c/.h

.c/.h

.c/.h

Virtual target

.DLL

Service Emulation

SWC Implementation

27

Page 28: AUTOSAR Virtual Testing - Vector

A simulation includes all software components that can occur in the real control unit, as well as the basic transmission behavior of the control unit:

Software Layers in simulated network nodes

Demo

physical bus simulated bus

IL: Interaction Layer

NM: Network Management

TP: Transport Protocol

on timer tMoveDownTimer

{

if(gPosWN < 15 && gMoveDown == gTrue)

{

gPosWN++;

$DOOR_l::WN_Position = gPosWN;

}

}

Real Node

CANoe

Application CAPL

IL NM

TP CANoe

IL NM

TP CANoe

ApplicationMATLAB/Simulink/

Stateflow

CANoe

VTT DLL

IL NM

TP CANoe

28

Page 29: AUTOSAR Virtual Testing - Vector

Virtual Testing of AUTOSAR w/vVIRTUALtarget, vTESTstudio & CANoe

Demo

CANoe

VTT Generated

Simulated Node

vTESTstudio Generated Test Units

29

Page 30: AUTOSAR Virtual Testing - Vector

© 2019. Vector North America Inc. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V2.2 | 2019-11-12

Author:White, SamerVector North America

For more information about Vectorand our products please visit

www.vector.com


Recommended