automation & simulation techniques author: matteo gallazzi

25
1 Automation & simulation techniques © 2009 Cobra Automotive Technologies SpA, All rights reserved Author: Matteo Gallazzi Software Test Engineer

Upload: lythuan

Post on 14-Feb-2017

240 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Automation & simulation techniques Author: Matteo Gallazzi

1

Automation & simulation techniques

©20

09 C

obra

Aut

omot

ive

Tec

hnol

ogie

s S

pA, A

ll rig

hts

rese

rved

Author: Matteo Gallazzi

Software Test Engineer

Page 2: Automation & simulation techniques Author: Matteo Gallazzi

2© 2008 Cobra Automotive Technologies SpA, All rights reserved

Company profile

Automation & simulation techniques

December 2009

Our vision is a more secure world everywhere and at all times

vision

Cobra's mission is to provide worldwide, user friendly vehicle-centric solutions integrating advanced technologies that enhance transportation and

property security and to work with public and private organisations that share our vision

mission

company profile ’09

Our aim is to make the world a safer place

Page 3: Automation & simulation techniques Author: Matteo Gallazzi

3© 2008 Cobra Automotive Technologies SpA, All rights reserved

Cobra solutions

Automation & simulation techniques

December 2009

The antitheft

The manoeuvring aid

The Location Based Services

Page 4: Automation & simulation techniques Author: Matteo Gallazzi

4© 2008 Cobra Automotive Technologies SpA, All rights reserved

Partnership with Vehicle Manufacturers

Automation & simulation techniques

December 2009

Partnership with Vehicle Manufacturers

Cobra aims at being recognised as a company constantly focused on understanding security needs. The goal is to give to client partners the solutions that contribute to reinforce theirimage of responsibility towards security.

since

Nissan 1991

Renault 1993

Volkswagen - Audi 1994

Honda Access Europe Motorcycle – Ducati Motor 1996

Toyota 1999Renault Véhicules Industriels – Volvo Trucks – Porsche – Ford

Daimler- Chrysler – Jaguar – Land Rover – Mazda – Skoda 2001

Honda – Ferrari – Maserati – Yamaha Motor Europe 2002

Mitsubishi – Bentley – Lamborghini 2003

Scania - MV Agusta Corse 2004

MV Agusta Motor 2006

Hyundai – Kia – Iran Khodro – Shanghai Volkswagen 2008

DPCA (Dongfeng Peugeot Citroen Automobile Company)SAIC (Shanghai Automotive Industry Corporation)BHMC (Beijing Hyundai Motor Company) – Geely 2009

Page 5: Automation & simulation techniques Author: Matteo Gallazzi

5© 2008 Cobra Automotive Technologies SpA, All rights reservedDecember 2009

Software life cycle

Cobra applies the V model in software process devel opment

Static analysis based on white box test

Functional test based on black box test

Page 6: Automation & simulation techniques Author: Matteo Gallazzi

6© 2008 Cobra Automotive Technologies SpA, All rights reservedDecember 2009

Bugs cost

Bugs costs vs. project phase

Page 7: Automation & simulation techniques Author: Matteo Gallazzi

7© 2008 Cobra Automotive Technologies SpA, All rights reservedDecember 2009

COBRA’s strategy

Static analysis based on white box test

Functional test based on black box test

Software functional test based on grey box test

The aim is to test only the software functionalitie s on real target

Page 8: Automation & simulation techniques Author: Matteo Gallazzi

8© 2008 Cobra Automotive Technologies SpA, All rights reservedDecember 2009

Title of the presentation

Dashboard

P.A. Display

Button

CANBUS

Gear

SpeakerWired conn.

Environment

The real system

LINBUS

Page 9: Automation & simulation techniques Author: Matteo Gallazzi

9© 2008 Cobra Automotive Technologies SpA, All rights reserved

The real system

Isolate SW testing in real environment could be pro blematic because of the interaction with:

-Bus line-Sensors-Environment-Electrical noise

December 2009

Automation & simulation techniques

Page 10: Automation & simulation techniques Author: Matteo Gallazzi

10© 2008 Cobra Automotive Technologies SpA, All rights reservedDecember 2009

The challenge

Provide simulation tools that allow SW Engineers to debug SW Functionalities

Use the same simulation tools to execute the test cases

Allow test engineetr to automate test cases executi on

Reduce the cost impact of regression test

Page 11: Automation & simulation techniques Author: Matteo Gallazzi

11© 2008 Cobra Automotive Technologies SpA, All rights reserved

The virtual system

December 2009

Automation & simulation techniques

PCI Express

BDMI/O

-PXI 4110 Power supply-PXI 8464 CAN bus device-PXI 7831R FPGA-PXI 6251 Multifunction

acquisition- device

Page 12: Automation & simulation techniques Author: Matteo Gallazzi

12© 2008 Cobra Automotive Technologies SpA, All rights reserved

The simulators

December 2009

Automation & simulation techniques

Windows

Page 13: Automation & simulation techniques Author: Matteo Gallazzi

13© 2008 Cobra Automotive Technologies SpA, All rights reserved

The monitors

December 2009

Automation & simulation techniques

This monitor is interfaced to:

- CAN card

Shift gear simulationVehicle speed simulationDisplay data monitor

- Power supply

- P&E BDM

Measured distance FW ver.Any RAM address

- Data acquisition device

Speaker line monitorSwitch button simulationDigital I/O monitor

Page 14: Automation & simulation techniques Author: Matteo Gallazzi

14© 2008 Cobra Automotive Technologies SpA, All rights reserved

The monitors

December 2009

Automation & simulation techniques

This monitor is interfaced to:

- FPGA

Simulate obstacleSimulate sensors failureSimulate sensors EEPROMSimulate protocol issues beetwen sensors & E.C.U.

Page 15: Automation & simulation techniques Author: Matteo Gallazzi

15© 2008 Cobra Automotive Technologies SpA, All rights reserved

FPGA

December 2009

Automation & simulation techniques

Cheaper than other commercial tools

Nonstandard LINBus protocol to reproduce

Very fast communication schedule

Hardware design not needed

Flexibility

Page 16: Automation & simulation techniques Author: Matteo Gallazzi

16© 2008 Cobra Automotive Technologies SpA, All rights reserved

Simulation

December 2009

Automation & simulation techniques

Obstacle simulation

BDM Data

Speaker output monitor

CAN information

Page 17: Automation & simulation techniques Author: Matteo Gallazzi

17© 2008 Cobra Automotive Technologies SpA, All rights reserved

Simulation

December 2009

Automation & simulation techniques

Possibility to simulate protocol issues

Page 18: Automation & simulation techniques Author: Matteo Gallazzi

18© 2008 Cobra Automotive Technologies SpA, All rights reserved

Simulation

December 2009

Automation & simulation techniques

Page 19: Automation & simulation techniques Author: Matteo Gallazzi

19© 2008 Cobra Automotive Technologies SpA, All rights reserved

Simulation benefits

December 2009

Automation & simulation techniques

Create simulation environment that can not be easil y reproduced in real environment

Reduce development time and helps engineer s to ver ify their code

Software isolation to avoid environmental interfere nce

Reuse of simulation tools for testing purposes

Page 20: Automation & simulation techniques Author: Matteo Gallazzi

20© 2008 Cobra Automotive Technologies SpA, All rights reserved

Software testing

December 2009

Automation & simulation techniques

In order to assure high quality to customer, COBRA wants to perform all the test cases after each software change (100% regression test)

Software tests are fully automated to reduce regres sion test costs

Test Reports are automatically generated

A better quality is assured avoiding human interact ion

Anyone can run the automatic test sequence

Page 21: Automation & simulation techniques Author: Matteo Gallazzi

21© 2008 Cobra Automotive Technologies SpA, All rights reserved

The automation

December 2009

Automation & simulation techniques

Sequence automation realized through NI TestStand

New test cases can be generated from a template usi ng drag & drop functionality

By using the VI Servers techniques we can create ne w test case as well as an operator that set the control and watch the result on the mo nitor

The complete sequence is created using just 2 commo n step templates:

SET ControlGet Indicator

Software knowledgment not needed to automate the te st case

Page 22: Automation & simulation techniques Author: Matteo Gallazzi

22© 2008 Cobra Automotive Technologies SpA, All rights reserved

The automation

December 2009

Automation & simulation techniques

Page 23: Automation & simulation techniques Author: Matteo Gallazzi

23© 2008 Cobra Automotive Technologies SpA, All rights reserved

The automation

December 2009

Automation & simulation techniques

Page 24: Automation & simulation techniques Author: Matteo Gallazzi

24© 2008 Cobra Automotive Technologies SpA, All rights reserved

Final result

December 2009

Automation & simulation techniques

Page 25: Automation & simulation techniques Author: Matteo Gallazzi

25© 2008 Cobra Automotive Technologies SpA, All rights reserved

Conclusion

December 2009

Automation & simulation techniques

Full coverage of Functional Requirements

Test Cases execution fully automated

Software knowledgment not needed to add test cases

Reduction of Project costs thanks to grey box test

Reduction of Regression Test costs

Higher quality for our customers

TARGET HAS BEEN ACHIEVED