SlideShare a Scribd company logo
1 of 21
0
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Automated
Requirements-Based Testing
for Medical Device Software
1
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
ISO 26262 SW Verification Phases
SW Architectural
Design
SW Unit
Design
Code
Implementation
SW Safety
Requirements
SW Unit
Verification
SW Integration
& Verification
Testing of the
Embedded SW
Safety measures properly implemented
Complies with unit design & fulfils ASIL SW requirements
No undesired functionality or functional safety properties
Safety measures properly implemented
Fulfils architectural design
No undesired functionality or functional safety properties
Fulfils safety-related requirements in target environment
No undesired functionality or functional safety properties
Part 6:
Product Development at the
software level
 Phases 9 – 11
 Tables 7 – 15
7
6
8 9
8
11
10
Configuration
& Calibration
Data
2
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Requirements Verification Method
ISO 26262 Table 7 – Methods for software unit verification
ISO 26262 Table 10 – Methods for verification of software integration
ISO 26262 Table 14 – Methods for tests of the embedded software
3
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Deriving Test Cases from Requirements
ISO 26262 Tables 8 – Methods for deriving test cases for software unit / integration testing
ISO 26262 Table 15 – Methods for deriving test cases for the test of the embedded software
ISO 26262 Table 11 – Methods for deriving test cases for software integration testing
4
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Requirements Based Testing (RBT)
Requirements
• Decomposed
• Correct
• Complete
• Unambiguous
• Logically consistent
Tests
• Pre-conditions
• Inputs
• Expected behaviours
• Expected outputs
• Post-conditions
Unit
Design
Code
Unit
Test
Integration
Test
Architectural
Design
Requirements Coverage
% Requirements verified by tests
<-> Traceability to tests
Code Coverage
% code executed by tests
<->Traceability to requirements
<->Traceability to tests
Test Coverage
% tests executed & passing
<-> Traceability to requirements
Safety
Requirements
Embedded
Test
Configuration &
Calibration Data
5
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Manual Test Generation
Test Cases crafted Manually from Requirements
Can be hard work! – Even with powerful test tools
Insufficiently validated requirements
 Decomposed, Correct, Complete, Unambiguous, Logically consistent
 High-reliance on structural code coverage & reverse engineering
Complexity of test vectors
 Pre-conditions, Inputs, Expected behaviours & outputs, post-conditions
Boundary of Low Level Requirements ≠ usable test case vectors
 Test Framework: Drivers, Dependencies & Datasets
Gaps & Overlaps
 Defensive programming, private/protected code etc
 Equivalence classes
6
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Requirements Tests
Code
So…How to Automate?
Configuration &
Calibration Data
7
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Tests
Generation from Requirements
Test Case Generation
Test Cases Generated from Requirements
Very limited capability from:
NL, SNL, PDL,
Use Case Scenarios
Mathematical specs
More capability from
Models (e.g. MBT with UML)
Requirements
8
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Generation from Code
Test Cases Generated from Code
Test Vectors from path solving
 Intelligent optimisation
Full test framework
 Pre-conditions, Inputs,
Expected behaviours,
Expected outputs & post-conditions
Tests generated for
maintainability & traceability Code
Tests
AutoTest
Requirements
9
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Why use Coverage & Traceability?
Standard Compliance – the 100% Picture
Bi-directional requirements traceability
All executable code is justified tested
Evidence of success is: passing tests + traceability
Helps Ensure Completeness
Changed requirements capture & validation
Just enough code changes
Test case design updates
RBT processes can be most effective when iterative
Code
Test
Req

10
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
AutoTest & Trace for ISO 26262
AutoTest
11
Copyright 2017 – QA Systems GmbH www.qa-systems.com
AutoTest Generation
Flexible application
 GUI or CLI invocation
 Complete suite of passing unit tests
 Additional test cases to fill gaps
 Black-box cluster integration test through public functions
 White-box unit isolation test of static functions
 Uses Cantata workspace preferences
Test cases exercise all paths through the code
 Entry-Point
 Statement
 Decision
 MC/DC (unique cause)
Test Cases are complete & maintainable for full control
 All required inputs: parameters + accessible data
 All expected outputs: parameters + accessed data + call-order
 Each test case path solving purpose explained
12
Copyright 2017 – QA Systems GmbH www.qa-systems.com
Build Run
Test
Exe
Instruments
AutoTest
Makefiles
Tests
Code
AutoTest Process
Code Copy
Generation
Report
Test Results
Automatic Test Generation
Automatic Test Execution
13
Copyright 2017 – QA Systems GmbH www.qa-systems.com
Example AutoTest Exercise
• 541 Source Files
• 807 C Functions
• 55,151 Executable LoC
• 4,901 McCabe total complexity
Source
Files
• 93% Fully executed
• 95% Fully executed
• 95%+ Fully executed
• 5,035 Total test cases
• 336,355 Total checks
Tested
Source
Files
Execution
36 minutes
Generation
2.03 hours
14
Copyright 2017 – QA Systems GmbH www.qa-systems.com
Traced requirements, test
status and code coverage
Test Information
.csv ReqIF Excel
Requirements
Requirements
Management Tool
Full bi-directional
requirements traceability
evidence
Drag and drop tracing of requirements
(text, diagrams, links) with test cases.
Generate tests
link to requirements
Test Tool
Requirements Trace Closes Loop
15
Copyright 2017 – QA Systems GmbH www.qa-systems.com
Easy Linking in Cantata Trace
Bi-directional drag and drop interface, immediately creates links on a server
Whole Test Scripts linked to Requirements
Individual Test Cases linked to Requirements
16
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
3 Part Automation
1 Automatic Test Vector Generation
Test case vectors from code exercising all paths (up to MC/DC coverage)
Sets input parameters & data throughout test execution
Checks expected vs actual data, input & output parameters and call order
3 Automated Traceability & Coverage Data Production
Complete Requirements imported/exported for testing
AutoTest cases generated with traceable descriptions
Test status, Requirements traceability & Structural coverage evidence
2 Automated Test Execution
Continuous integration build, run and reporting
17
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Complete 3 Way Analysis
Requirements
Code
Tests
Requirements Coverage
See requirements
coverage in your
requirements
management & test tools
Use the same tool for all
trace data
Test Coverage
Run tests when not executed
(continuous integration and
testing helps a lot)
Fix tests when they fail
Code Coverage
When you have gaps, identify if the code is:
dead / redundant, unreachable, deactivated (not used in this context)
If not, then add a test and that needs to be traced to [new] requirements
Configuration &
Calibration Data
18
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Learn More
19
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Further Enhancements?
ISO 26262 Table 7 – Methods for software unit verification
ISO 26262 Table 10 – Methods for verification of software integration
ISO 26262 Table 14 – Methods for tests of the embedded software
In Development
20
Copyright 2019 – QA Systems GmbH www.qa-systems.cn
Thank you

More Related Content

Similar to Automated Requirements-Based Testing for Medical Device Software.ppsx

Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011
Scott Althouse
 
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
Curiosity Software Ireland
 

Similar to Automated Requirements-Based Testing for Medical Device Software.ppsx (20)

20070925 03 - La qualimétrie en environnement industriel (Schneider automation)
20070925 03 - La qualimétrie en environnement industriel (Schneider automation)20070925 03 - La qualimétrie en environnement industriel (Schneider automation)
20070925 03 - La qualimétrie en environnement industriel (Schneider automation)
 
Embedded software validation best practices with NI and RQM
Embedded software validation best practices with NI and RQMEmbedded software validation best practices with NI and RQM
Embedded software validation best practices with NI and RQM
 
Keyword Driven Automation
Keyword Driven AutomationKeyword Driven Automation
Keyword Driven Automation
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011Saving resources with simulation webinar 092011
Saving resources with simulation webinar 092011
 
QGen GNAT Industrial User Day
QGen GNAT Industrial User DayQGen GNAT Industrial User Day
QGen GNAT Industrial User Day
 
GNAT Pro User Day: QGen: Simulink® static verification and code generation
GNAT Pro User Day: QGen: Simulink® static verification and code generationGNAT Pro User Day: QGen: Simulink® static verification and code generation
GNAT Pro User Day: QGen: Simulink® static verification and code generation
 
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
Curiosity and Xray present - In sprint testing: Aligning tests and teams to r...
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-Architect
 
Introduction to Parasoft C++TEST
Introduction to Parasoft C++TEST Introduction to Parasoft C++TEST
Introduction to Parasoft C++TEST
 
(Technologies) AI, Machine Learning, Predictive Analytics, IIOT, Cloud,Web-fr...
(Technologies) AI, Machine Learning, Predictive Analytics, IIOT, Cloud,Web-fr...(Technologies) AI, Machine Learning, Predictive Analytics, IIOT, Cloud,Web-fr...
(Technologies) AI, Machine Learning, Predictive Analytics, IIOT, Cloud,Web-fr...
 
DevOps at TestausOSY 20june2017
DevOps at TestausOSY 20june2017DevOps at TestausOSY 20june2017
DevOps at TestausOSY 20june2017
 
Enterprise QA and Application Testing Services
Enterprise QA and Application Testing ServicesEnterprise QA and Application Testing Services
Enterprise QA and Application Testing Services
 
Enterprise QA and Application Testing Services
Enterprise QA and Application Testing ServicesEnterprise QA and Application Testing Services
Enterprise QA and Application Testing Services
 
The Pursuit of Perfection - Methods, techniques, and tools to achieve robust ...
The Pursuit of Perfection - Methods, techniques, and tools to achieve robust ...The Pursuit of Perfection - Methods, techniques, and tools to achieve robust ...
The Pursuit of Perfection - Methods, techniques, and tools to achieve robust ...
 
Oak Systems - When you build Software, we build Quality in it
Oak Systems - When you build Software, we build Quality in it Oak Systems - When you build Software, we build Quality in it
Oak Systems - When you build Software, we build Quality in it
 
Architecting Design Development Test Request System in Aras
Architecting Design Development Test Request System in ArasArchitecting Design Development Test Request System in Aras
Architecting Design Development Test Request System in Aras
 
2019 ibm io t exchange - meeting safety-related software audits
2019   ibm io t exchange - meeting safety-related software audits2019   ibm io t exchange - meeting safety-related software audits
2019 ibm io t exchange - meeting safety-related software audits
 
qLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test AutomationqLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test Automation
 
Advanced Continuous Delivery on AWS
Advanced Continuous Delivery on AWSAdvanced Continuous Delivery on AWS
Advanced Continuous Delivery on AWS
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

Automated Requirements-Based Testing for Medical Device Software.ppsx

  • 1. 0 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Automated Requirements-Based Testing for Medical Device Software
  • 2. 1 Copyright 2019 – QA Systems GmbH www.qa-systems.cn ISO 26262 SW Verification Phases SW Architectural Design SW Unit Design Code Implementation SW Safety Requirements SW Unit Verification SW Integration & Verification Testing of the Embedded SW Safety measures properly implemented Complies with unit design & fulfils ASIL SW requirements No undesired functionality or functional safety properties Safety measures properly implemented Fulfils architectural design No undesired functionality or functional safety properties Fulfils safety-related requirements in target environment No undesired functionality or functional safety properties Part 6: Product Development at the software level  Phases 9 – 11  Tables 7 – 15 7 6 8 9 8 11 10 Configuration & Calibration Data
  • 3. 2 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Requirements Verification Method ISO 26262 Table 7 – Methods for software unit verification ISO 26262 Table 10 – Methods for verification of software integration ISO 26262 Table 14 – Methods for tests of the embedded software
  • 4. 3 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Deriving Test Cases from Requirements ISO 26262 Tables 8 – Methods for deriving test cases for software unit / integration testing ISO 26262 Table 15 – Methods for deriving test cases for the test of the embedded software ISO 26262 Table 11 – Methods for deriving test cases for software integration testing
  • 5. 4 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Requirements Based Testing (RBT) Requirements • Decomposed • Correct • Complete • Unambiguous • Logically consistent Tests • Pre-conditions • Inputs • Expected behaviours • Expected outputs • Post-conditions Unit Design Code Unit Test Integration Test Architectural Design Requirements Coverage % Requirements verified by tests <-> Traceability to tests Code Coverage % code executed by tests <->Traceability to requirements <->Traceability to tests Test Coverage % tests executed & passing <-> Traceability to requirements Safety Requirements Embedded Test Configuration & Calibration Data
  • 6. 5 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Manual Test Generation Test Cases crafted Manually from Requirements Can be hard work! – Even with powerful test tools Insufficiently validated requirements  Decomposed, Correct, Complete, Unambiguous, Logically consistent  High-reliance on structural code coverage & reverse engineering Complexity of test vectors  Pre-conditions, Inputs, Expected behaviours & outputs, post-conditions Boundary of Low Level Requirements ≠ usable test case vectors  Test Framework: Drivers, Dependencies & Datasets Gaps & Overlaps  Defensive programming, private/protected code etc  Equivalence classes
  • 7. 6 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Requirements Tests Code So…How to Automate? Configuration & Calibration Data
  • 8. 7 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Tests Generation from Requirements Test Case Generation Test Cases Generated from Requirements Very limited capability from: NL, SNL, PDL, Use Case Scenarios Mathematical specs More capability from Models (e.g. MBT with UML) Requirements
  • 9. 8 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Generation from Code Test Cases Generated from Code Test Vectors from path solving  Intelligent optimisation Full test framework  Pre-conditions, Inputs, Expected behaviours, Expected outputs & post-conditions Tests generated for maintainability & traceability Code Tests AutoTest Requirements
  • 10. 9 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Why use Coverage & Traceability? Standard Compliance – the 100% Picture Bi-directional requirements traceability All executable code is justified tested Evidence of success is: passing tests + traceability Helps Ensure Completeness Changed requirements capture & validation Just enough code changes Test case design updates RBT processes can be most effective when iterative Code Test Req 
  • 11. 10 Copyright 2019 – QA Systems GmbH www.qa-systems.cn AutoTest & Trace for ISO 26262 AutoTest
  • 12. 11 Copyright 2017 – QA Systems GmbH www.qa-systems.com AutoTest Generation Flexible application  GUI or CLI invocation  Complete suite of passing unit tests  Additional test cases to fill gaps  Black-box cluster integration test through public functions  White-box unit isolation test of static functions  Uses Cantata workspace preferences Test cases exercise all paths through the code  Entry-Point  Statement  Decision  MC/DC (unique cause) Test Cases are complete & maintainable for full control  All required inputs: parameters + accessible data  All expected outputs: parameters + accessed data + call-order  Each test case path solving purpose explained
  • 13. 12 Copyright 2017 – QA Systems GmbH www.qa-systems.com Build Run Test Exe Instruments AutoTest Makefiles Tests Code AutoTest Process Code Copy Generation Report Test Results Automatic Test Generation Automatic Test Execution
  • 14. 13 Copyright 2017 – QA Systems GmbH www.qa-systems.com Example AutoTest Exercise • 541 Source Files • 807 C Functions • 55,151 Executable LoC • 4,901 McCabe total complexity Source Files • 93% Fully executed • 95% Fully executed • 95%+ Fully executed • 5,035 Total test cases • 336,355 Total checks Tested Source Files Execution 36 minutes Generation 2.03 hours
  • 15. 14 Copyright 2017 – QA Systems GmbH www.qa-systems.com Traced requirements, test status and code coverage Test Information .csv ReqIF Excel Requirements Requirements Management Tool Full bi-directional requirements traceability evidence Drag and drop tracing of requirements (text, diagrams, links) with test cases. Generate tests link to requirements Test Tool Requirements Trace Closes Loop
  • 16. 15 Copyright 2017 – QA Systems GmbH www.qa-systems.com Easy Linking in Cantata Trace Bi-directional drag and drop interface, immediately creates links on a server Whole Test Scripts linked to Requirements Individual Test Cases linked to Requirements
  • 17. 16 Copyright 2019 – QA Systems GmbH www.qa-systems.cn 3 Part Automation 1 Automatic Test Vector Generation Test case vectors from code exercising all paths (up to MC/DC coverage) Sets input parameters & data throughout test execution Checks expected vs actual data, input & output parameters and call order 3 Automated Traceability & Coverage Data Production Complete Requirements imported/exported for testing AutoTest cases generated with traceable descriptions Test status, Requirements traceability & Structural coverage evidence 2 Automated Test Execution Continuous integration build, run and reporting
  • 18. 17 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Complete 3 Way Analysis Requirements Code Tests Requirements Coverage See requirements coverage in your requirements management & test tools Use the same tool for all trace data Test Coverage Run tests when not executed (continuous integration and testing helps a lot) Fix tests when they fail Code Coverage When you have gaps, identify if the code is: dead / redundant, unreachable, deactivated (not used in this context) If not, then add a test and that needs to be traced to [new] requirements Configuration & Calibration Data
  • 19. 18 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Learn More
  • 20. 19 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Further Enhancements? ISO 26262 Table 7 – Methods for software unit verification ISO 26262 Table 10 – Methods for verification of software integration ISO 26262 Table 14 – Methods for tests of the embedded software In Development
  • 21. 20 Copyright 2019 – QA Systems GmbH www.qa-systems.cn Thank you

Editor's Notes

  1. 9.4.4 (unit) & 10.4.4 (Integration) To evaluate the completeness of verification and to provide evidence that the objectives for unit testing are adequately achieved, the coverage of requirements at the software unit / architectural level shall be determined and the structural coverage shall be measured in accordance with the metrics as listed in Table 9 / Table 12.
  2. In this example, Cantata AutoTest was run on over 55 kloc of executable C code. [NEXT] A complete suite of Cantata in-depth isolation unit tests for 100% entry-point, statement and decision coverage were generated in just over 2 hours. These tests were then executed using the automatic Cantata Makefile structure in just over ½ an hour. [NEXT] The code coverage achieved on these baseline tested source files was incredibly high. With more than 6 dynamic checks per line of code, and a remarkably optimal set of only 5,000 test cases for over 4,900 decision outcomes (McCabe Cyclomatic complexity), this provided a highly efficient and effective baseline safety net of unit tests. The Test Results Summary reports the overall results for tests executed using Cantata Makefiles, and all the usual powerful Cantata results diagnostics are available for the baseline tests. The only failures were the 40 files where coverage targets were not met.
  3. We are working on enhancing AutoTest for these.
  4. .