15
© 2015 ANSYS, Inc. April 6, 2017 1 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary How Model Based Design Improves Your Testing Strategy Steven Blyth [email protected] 07565 654307

How Model Based Design Improves Your Testing Strategy · 1 © 2015 ANSYS, Inc. April 6, ... Manual coding error prone ... Code Generation Qualification Impact on MB.A-5 MB. A-5

  • Upload
    buidieu

  • View
    213

  • Download
    0

Embed Size (px)

Citation preview

© 2015 ANSYS, Inc. April 6, 2017 1 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

How Model Based Design Improves Your Testing Strategy

Steven Blyth

[email protected] 07565 654307

© 2015 ANSYS, Inc. April 6, 2017 2 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Testing: What is the Point?

© 2015 ANSYS, Inc. April 6, 2017 3 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

VALIDATION Are we building the right thing?

© 2015 ANSYS, Inc. April 6, 2017 4 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

VERIFICATION

Are we building the thing right?

© 2015 ANSYS, Inc. April 6, 2017 5 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

VERIFICATION OF VERIFICATION

Are we testing what we are supposed to test, no more no less.

© 2015 ANSYS, Inc. April 6, 2017 6 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Typical Pains in Traditional Software Development

No way to simulate and rapid proto in short loop

iteration

Non efficient design process (pseudo code)

Manual coding error prone

Time consuming activity with low added value

Late detection of functional bugs with time consuming

verification (manual process)

High level number of test on target

Development Modifications

Time consuming modification with bad impact

for Product Manufacturer Risk of exceeding the budget

Low maturity or low accuracy of requirements

© 2015 ANSYS, Inc. April 6, 2017 7 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Testing Strategy with a Model Based Design Solution

System Development

High Level Requirements

Software Planning

System

Software

Overall Software Architecture

Overall Software Integration Testing

Low Level Detailed Design

SCADE Auto-Coding & Integration

Requirements Allocated to Software

SCADE Test Cases

Low Level Architecture Design

SCADE Model Simulation

SCADE Target Testing

Software Life Cycle Management

© 2015 ANSYS, Inc. April 6, 2017 8 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Model Based Software Engineering

All the benefits of model based engineering – and you can TRUST the code!

Formally Defined Language + Deterministic Behaviour + Certified Code Generation

= Code you can trust

© 2015 ANSYS, Inc. April 6, 2017 9 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Development Process

System Req.

Process

SW Req. Process

SW Rq Analysis

Preliminary Design Integration

Testing

Operational Testing

Unit Testing Detailed Design

Implementation

System Testing

Qualified Code Generation

HLR Based Tests

Certified

© 2015 ANSYS, Inc. April 6, 2017 10 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Code Generation Qualification Impact on MB.A-5

MB.

A-5 Objective Verification method

1 Source Code complies with low-level requirements

Code generator qualification

2 Source Code complies with software architecture

Code generator qualification

3 Source Code is verifiable Code generator qualification

4 Source Code conforms to standards Code generator qualification

5 Source Code is traceable to low-level requirements

Code generator qualification

6 Source Code is accurate and consistent Code generator qualification

7 Output of software integration process is complete and correct

Analysis of the build and loading data

© 2015 ANSYS, Inc. April 6, 2017 11 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Table MB.A-6 Testing of Outputs of the integration process.

1 Executable Object Code complies with high-level requirements

2 Executable Object Code is robust with high-level requirements

3 Executable Object Code complies with low-level requirements

4 Executable Object Code is robust with low-level requirements

5 Executable Object Code is compatible with target computer

Re-rerun Verification Cases

on Target

Robust Library Tests

HW/SW Integration Testing

© 2015 ANSYS, Inc. April 6, 2017 12 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Table MB.A-7: Verification of Verification Summary

1 Test procedures are correct

2 Test results are correct and discrepancies explained

3 Test coverage of high-level requirements is achieved

4 Test coverage of low-level requirements is achieved

5 Test coverage of software structure (modified condition/decision) is achieved

6 Test coverage of software structure (decision coverage) is achieved

7 Test coverage of software structure (statement coverage) is achieved

8 Test coverage of software structure (data coupling and control coupling) is achieved

9 Verification of additional code, that cannot be traced to Source Code, is achieved

Review: -Test cases / procedures

-Test results -HLR-Test Cases trace

Model /Code Coverage Analysis(1)

© 2015 ANSYS, Inc. April 6, 2017 13 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Summary

• Using a modelling language that is fully deterministic moves the majority of effort for both design and testing to the left side of a development cycle

• Using a certified code generator that takes as its input the formally defined model removes the need for code reviews.

• Tests are created to test the functionality of the model, which are your low level requirements

• Tests are translated for the target via a certified Test tool to verify target behaviour.

© 2015 ANSYS, Inc. April 6, 2017 14 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Spend your time getting your requirements and your design right. Not on creating code and not on unit testing.

© 2015 ANSYS, Inc. April 6, 2017 15 © Esterel Technologies - An ISO 9001:2008 Certified Company - Confidential & Proprietary

Thank You!

[email protected] 07565 654307