33
Model-Based Black Box Testing and its Standardization Layers THE SOLUTION TO BOOST YOUR TEST EFFICIENCY MaTeLo

MBT UC 2011 All4tec Model Based Black Box Testing and its

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MBT UC 2011 All4tec Model Based Black Box Testing and its

Model-Based Black Box Testing

and its Standardization Layers

THE SOLUTION TO BOOST

YOUR TEST EFFICIENCY

MaTeLo

Page 2: MBT UC 2011 All4tec Model Based Black Box Testing and its

Since 1998

French: 45 experts

Turnover 2010: 4 M€

Expertise offer:

�PROCESS IMPROVEMENT

�SAFETY ENGINEERING

�SYSTEM ENGINEERING

�OPTIMIZED TESTING

�SOFTWARE RELIABILITY

EMBEDDED

SYSTEMS

ALL4TEC

Page 3: MBT UC 2011 All4tec Model Based Black Box Testing and its

OUR COMPETENCES OFFER

TrainingTraining

ConsultingConsulting

EngineeringEngineering

ToolingTooling

MaTeLo

EXAM

Safety Architect

M Elopée

Page 4: MBT UC 2011 All4tec Model Based Black Box Testing and its

AGENDA

� THE TEST PROBLEM

� THE EXPECTED SOLUTION

� THE MODEL-BASED TESTING SOLUTION

� A PRAGMATIC INDUSTRIAL USE-CASE

� A MORE STANDARDIZED TOOLS INTEGRATION

Page 5: MBT UC 2011 All4tec Model Based Black Box Testing and its

THE TESTING PROBLEM

Test

Availability

System

Complexity

Testing

Effort

Time

Reality

Product Life

Reliability Market

Expectation

Test

Needs

Usage

Intensity

Development

Phase

Customer

Validation

Normal

Usage

� Test Resources Lack

� Test Focus Deviation

Page 6: MBT UC 2011 All4tec Model Based Black Box Testing and its

HOW TO SOLVE THIS ISSUE?

Test the SUT usage

before product release

Use best in class

engineering process

Widely use

automatic generation

Use dedicated tools that decuple engineering productivity

Use formalization

and traceability

Page 7: MBT UC 2011 All4tec Model Based Black Box Testing and its

TestEnvironment

MODEL-DRIVEN ENGINEERING

FunctionalRequirements

UsageModel

DesignModel

Test CasesCode

Test ScriptsEXE

DESIGN TEST

GenerateGenerate

DeriveCompile

Implement Scenarize

MaTeLo

Model Based Testing

Page 8: MBT UC 2011 All4tec Model Based Black Box Testing and its

WHAT IS MaTeLo?

Formal Test

Specification

Fully

Measured

Process

Product Usage

Point of View

Markov Test Logic

MaTeLo

Test Execution

Compatibility

Systematic

Engineering

Productivity

More

Productive

Coverage

Bidirectional

Requirements

Traceability

Page 9: MBT UC 2011 All4tec Model Based Black Box Testing and its

MATELO SCREENSHOT

Page 10: MBT UC 2011 All4tec Model Based Black Box Testing and its

INTEGRATED TEST WORKFLOW

MaTeLo Usage Model Editor

Test Design intoUsage Models

MaTeLoTest Campaign Analysis

ConfidenceAnd Coverage

Reporting

MaTeLoTestor

Automatic Test Cases Generation

PLAN

EXAM

Test Automation

DO CHECK

ACT

Page 11: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo EDITOR

Usage Model Design

Page 12: MBT UC 2011 All4tec Model Based Black Box Testing and its

MATELO USAGE MODELS

BEGINNING

END

STATE

TRANSITION

MACRO CHAIN

→ Probability on every Alternatives

→ Association of Requirements

→ Configuration of Test Operations

→ Setup Transition as Test Step

Page 13: MBT UC 2011 All4tec Model Based Black Box Testing and its

Stimulations

Inputs Stimulation

Equivalence Classes

Timing

Verifications

Expected Outputs

Timing

MODEL TRANSITION = TEST STEP

RequirementsTest Operations

Select_Gear(5)

Accelerate(100%)

Check_Speed(185)

Test Oracle

Outputs = f(Inputs)

Page 14: MBT UC 2011 All4tec Model Based Black Box Testing and its

MATELO PROFILE

� Profiles can be embedded to qualify the usage model

� Operational profiles

� Test profiles

347

0-100-150-200-500

87 (+/- 25)

Data distribution Usage path probability

Page 15: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo EDITOR

Requirements Management

Page 16: MBT UC 2011 All4tec Model Based Black Box Testing and its

REQUIREMENTS MANAGEMENT

IBM Rational Doors MaTeLo Usage Model

Association

(N,M)

MaTeLo Requirements Library

Import

Requirement Update

New Baseline

Update

Quick

Model

Update

Requirements

Change

Analysis

Model

Impact

Highlighting

Available for other ReqMgt tools

with import of XML or CSV files

Page 17: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo TESTOR

Test Cases Generation

Page 18: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo TEST STRATEGY

� DEFINE THE TEST STRATEGY, BY CHOOSING

� Test Algorithm

� Test Profile

� Part of model to test

Most probable

approach

Start

Close

FREQUENCY

FOCUS

Start

Close

Risk based

approach

Custom

Test profile

CRITICALITY, COMPLEXITY

UPDATE FOCUS

Arcs coverage

approach

Close

Start

REQUIREMENTS

COVERAGE

Usage

Test profile

Usage

approach

Start

Close

OPERATIONAL

COVERAGE

Generate

Page 19: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo TESTOR: HTML TEST PLAN

Input Expected Result

State

Requirement

Test Function Verdict

Page 20: MBT UC 2011 All4tec Model Based Black Box Testing and its

Example: MaTeLo FOR EXAM

Test Repository� SUT Interface

� Test Operations

� Stimulation

� Measurement

� Administration

� Sub Test Sequences

Automatic Test Cases� Automatic call of Test Operation

� Automatic parameterisation

� Requirements association

� Test Case description generation

� Usage model respect

Association

Association

Generate

Requirements� Name

� UUID

� Description

Page 21: MBT UC 2011 All4tec Model Based Black Box Testing and its

MaTeLo TCA

Test Campaign Analysis

Page 22: MBT UC 2011 All4tec Model Based Black Box Testing and its

TEST CAMPAIGN PROCESS

Target Quality Criteria1. Coverage

2. Reliability

Confidence Indicators

BugsNew

Package

New version

New Test

Cases

Generation

Metrics

Quality/Version

� Operational Confidence

� Needs Coverage

� Functional Coverage

Page 23: MBT UC 2011 All4tec Model Based Black Box Testing and its

From

Pragmatic Tools Integration

To

Its Standard Adoption

Page 24: MBT UC 2011 All4tec Model Based Black Box Testing and its

THEORETICAL MBT WORKFLOW

AutomationTest Framework

Test Scheduler

Simulator

SystemUnderTest

TestExecution

Log

UsageModel

TestCases

FunctionalRequirements

AtomicTest

Action

TestCases

Verdicts

Confidence& Coverage

Reports

Test Scripts

Page 25: MBT UC 2011 All4tec Model Based Black Box Testing and its

AutomationTest Framework

A 1ST INDUSTRIAL TOOLS INTEGRATION

UsageModel

TestCases

Simulator

SystemUnderTest

TestExecution

Log

TestCases

Verdicts

Confidence& Coverage

Reports

FunctionalRequirements

AtomicTest

Action

Test Scheduler

Test Scripts

EXAM

UML

Python

dSpace

MicroNova

Carts

Vision CAN

IOs

Doors

MaTeLo

Page 26: MBT UC 2011 All4tec Model Based Black Box Testing and its

AutomationTest Framework

A 2nd INDUSTRIAL TOOLS INTEGRATION

UsageModel

TestCases

Simulator

SystemUnderTest

TestExecution

Log

TestCases

Verdicts

Confidence& Coverage

Reports

FunctionalRequirements

AtomicTest

Action

Test Scheduler

Test Scripts

dSpace

MicroNova

Carts

Vision CAN

IOs

Doors

TestStand

Proprietary

Opal-RT

NI

Clemessy

Diagnostic Calibration

Radio

Reqtify

MS Excel

MaTeLo

EXAM

UML

Python

Page 27: MBT UC 2011 All4tec Model Based Black Box Testing and its

AutomationTest Framework

VARIOUS TOOLS INTEGRATION

UsageModel

TestCases

Simulator

SystemUnderTest

TestExecution

Log

TestCases

Verdicts

Confidence& Coverage

Reports

FunctionalRequirements

AtomicTest

Action

Test Scheduler

Test Scripts

TestStand

Proprietary

dSpace

Opal-RT MicroNova

NI

Clemessy Carts

Vision

Diagnostic Calibration

CAN

IOs

Radio

Doors Reqtify

MS Excel

EXAM

UML

Python

PROVEtech Proprietary

CANoe EXACT

TTCN-3

VB

C, C#CSV

Java

Simulink CANoe

Flexray

Temperature

XML

CSVHP QC

MaTeLo

Page 28: MBT UC 2011 All4tec Model Based Black Box Testing and its

AutomationTest Framework

VARIOUS TOOLS INTEGRATION

UsageModel

TestCases

Simulator

SystemUnderTest

TestExecution

Log

TestCases

Verdicts

Confidence& Coverage

Reports

FunctionalRequirements

AtomicTest

Action

Test Scheduler

Test Scripts

TestStand

Proprietary

dSpace

Opal-RT MicroNova

NI

Clemessy Carts

Vision

Diagnostic Calibration

CAN

IOs

Radio

Doors Reqtify

MS Excel

EXAM

UML

Python

PROVEtech Proprietary

CANoe EXACT

TTCN-3

VB

C, C#CSV

Java

Simulink CANoe

Flexray

Temperature

XML

CSVHP QC

MaTeLo

Page 29: MBT UC 2011 All4tec Model Based Black Box Testing and its

AutomationTest Framework

MBT AND ITS STANDARDS

UsageModel

TestCases

Simulator

SystemUnderTest

TestExecution

Log

TestCases

Verdicts

Confidence& Coverage

Reports

FunctionalRequirements

AtomicTest

Action

Test Scheduler

Test Scripts

TestStand

Proprietary

dSpace

Opal-RT MicroNova

NI

Clemessy Carts

Vision

Diagnostic Calibration

CAN

IOs

Radio

Doors Reqtify

MS Excel

EXAM

UML

Python

PROVEtech Proprietary

CANoe EXACT

TTCN-3

VB

C, C#CSV

Java

Simulink CANoe

Flexray

Temperature

XML

CSVHP QC

RIF

ATX

ATX ATX

ODS

OTX HIL API

ODX

FIBEX XCP

GDI

ATX

MaTeLo

Page 30: MBT UC 2011 All4tec Model Based Black Box Testing and its

Items Tools StandardApplication

Feeling

Requirements Doors RIF, ReqIF 3/5

Test Specification Model MaTeLo, Word - (DSL) -

Test Cases Specification Doors, Word, EXAM ATX, OTX 0/5 , 2/5

Test Campaign, Management MaTeLo, Quality Center ATX 0/5

Test Case Implementation EXAM, ECU TEST, TestStand, vb, python… HIL API, TTCN3 1/5 , 2/5

Test Execution - - -

•Physical Signal NI, dSPACE, Vector… HIL API 1/5

•Network Signal CAN, LIN, FlexRay… FIBEX 3/5

•ECU parameter CANape, INCA XCP 5/5

•Diagnostic CANdela, ODX, UDS 5/5

•Simulator Signal Simulink, AMEsim… HIL API 1/5

•Test Device Signal Agilent, LeCroy… GDI 3/5

Test Case Execution Log, Trace NI, EXAM, dSPACE, ETAS… ODS, ATML 2/5, 2/5

Test Case Verdict Quality Center, MaTeLo ATX 0/5

Issue BugZilla, Jira, Quality Center ISSUE ?

Requirement Coverage Doors, Quality Center, MaTeLo ATX, ReqIF 0/5 , 2/5

Confidence Indicator Quality Center, MaTeLo ATX 0/5

Page 31: MBT UC 2011 All4tec Model Based Black Box Testing and its

QUESTION ?

www.all4tec.net

Sales contact

[email protected]

+33 6 80 88 40 59

Wiki & Forum & Documentation

www.all4tec.net

Page 32: MBT UC 2011 All4tec Model Based Black Box Testing and its

ABSTRACTION LAYERS

Usage Scenario

Description

Test Flow Control

Device Driver

Test Case

Specification

System Under TestHardware In the

Loop Test Bench

Python

Precompiled

Application

UML Sequence

Diagram

Markov-Chain

Usage Model

<< derive >>

<< generate >>

<< control >>

MaTeLo

Third Party

Equipment

ATX

HIL API

ODX, FIBEX, XCP…

Page 33: MBT UC 2011 All4tec Model Based Black Box Testing and its

EXAM ABSTRACTION MANAGEMENT

HIL Plateform

dSpace

NovaSim

Carts

ASAM HIL API

Proprietary

Network

CAN_1

CAN_2

LIN_X

FlexRay_1

FlexRay_2

Functions

Manual Gear

Auto Gear

Hand Free

ACC

StartStop

Test Tools

CANoe

CANape

INCA

MS Excel

Diag Tool

Env. Model

Gasoline

Diesel

Turbo

Hybrid

Electric

Available Test Configurations

Test Case 1 Test Case 2 Test Case n

Strategic Test Cases

Possible Usage Scenarios

ATX

HIL APIHIL API ODX, FIBEX, XCP…