Escolar Documentos
Profissional Documentos
Cultura Documentos
Integração Integração
Teste Integração SW-HW Teste Integração SW-HW
CI para o ususário CI para o ususário
Análise de Requisitos
Teste de um Sistema Integrado
Projeto do Sistema (Análise)
Projeto da Arquitetura do Sistema
Projeto dos Módulos
Partição Hardware/Software
Programação Planejamento do Teste
Teste unitário Síntese e Verificação
Teste integração SW-SW Fabricação
Teste de Produção
Teste
SW
HDS - hardware
Software de dependent
alto nível software
Para software embarcado metodologias de projeto e teste Casos de teste derivados de falhas já descobertas
são ainda difíceis de implementar Modificações podem ser feitas com o produto em campo
temporização e desempenho, memória, largura de banda… Há bastante pesquisa em modelos e ferramentas para projeto de SW
embarcado a partir de níveis mais altos de abstração
Carga e Stress Porém, código final a ser testado é sintetizado
verifica reação do sistema quando sobrecarregado
Sobrecarga no hardware (incluem-se questões de
variabilidade)
Teste do SW em Sistemas
Roteiro Integrados
Boas técnicas de teste de SW não são
Por que teste integrado de HW e SW?
fáceis nem intuitivas
Desafios para o teste de sistemas integrados Diversas questões básicas
Processo de teste de software embarcado Quando testar?
Quem testa?
Técnicas de teste mais comuns De onde vêm (como criar) os casos de teste?
Proposta local Como avaliar o resultado do teste?
Quando parar de testar?
Example techniques:
Strategy development
Test design
Safety analysis
Which activities have to be performed and in what order Data driven test automation
Infrastructure Organization
What is needed in the test environment to make it
possible to perform the planned activities
Defines:
the roles and required expertise of those
Test environment who must perform the planned activities
Facilities needed to execute the tests
Office environment
Facilities to housing the staff
Organization LITO
Structure of test organization At different stages in the lifecycle
Position of the test organization within the overall scheme the other three cornerstones will be
Internal structure of test organization (hierarchy of applied differently
disciplines, responsibilities, relationships)
Roles
Defines, for each discipline, the tasks, skills and expertise
required
Staff and training
How to get and keep personnel
Management and control procedures
Enables test process to handle changes
System Characteristics
Risk Analysis
The larger and more complex part of After starting up, they require no
its behavior is internal and invisible human intervention or interaction
from the outside
Examples
Examples usually sent on a mission – robotic
cruise control or trajectory system Traffic signaling systems
Some weapons
The exact moment that input or output System output influences the environment,
occurs influences the system behavior which in turn influences the behavior of the
control system
Requires timing analysis The behavior of the system cannot be described
independently, without the enviroment
Examples
space shuttle Examples
Industrial process control systems
Aircraft flight control systems
Extreme Environmental
Conditions Specific Measures - Examples
Specific test design techniques to test state-based behavior
Exposure to extreme heat or cold, System is first modelled and the model is dynamically tested for
mechanical shock, chemicals, real-time behavior
LITO-Matrix LITO-Matrix
Project Lifecycle Project Lifecycle
System has different formats or “product-appearance”
A V-Model
a developmental model, which takes into account different physical versions
The model of the same system (the model, the prototype, and the product)
FMEA
Failure Mode and Effect Analysis
FTA
Fault Tree Analysis
FTA
Cause-Effect Components Failure Causes
A failure mode describes the way in which a product
fault (hardware and software)
or process could fail to perform its desired function
desired function described by the needs, wants, and an imperfection or deficiency in the system which may,
expectations of internal and external customers. under some operational conditions, result in a failure
Determines the effect of a failure mode on Highly improved safety of the system;
the system The ability to track risks throughout the development
Corrupted data or unexpected behavior lifecycle;
Early identification of potential safety hazards;
System = end product (HW+SW) Documented risks and actions to reduce them;
Minimizes late changes and related costs;
Used early in the design process
Produces a highly reliable input for the test strategy.
System failure
incorrect event
incorrect data
unexpected data or behavior
Teste do SW em Sistemas
Integrados
Boas técnicas de teste de SW não são
Test Design Techniques fáceis nem intuitivas
Diversas questões básicas
Quando testar?
Quem testa?
De onde vêm (como criar) os casos de teste?
Como avaliar o resultado do teste?
Quando parar de testar?
Characteristics of TDTs Some Test Design Techniques
Start with the first action combination that has not yet
been included in a path: (1,2).
Adds to the path the first action combination that starts
with 2 and has not yet been included in a path: (2,5).
Test Path Definition Test Path Definition
Remaining action combinations The remaining action combinations are
(1,3); (1,4); (2,6); (3,5); (3,6); (4,5); (4,6); (6,2); (6,3); (6,4). (2,6); (3,6); (4,6); (6,2); (6,3); (6,4).
Continue with the remaining action combinations. Continue
(1,3) followed by (3,5) The first action combination that has not yet been included in a
path is (2,6), which does not start at the beginning of the algorithm
This creates the path (1,3,5)
A preceding action combination must be determined - (1,2)
Remaining action combinations
Add action combination (6,2) .
(1,4); (2,6); (3,6); (4,5); (4,6); (6,2); (6,3); (6,4).
The test path is completed with combination (2,5), which creates
Continue with the remaining action combinations. test path (1,2,6,2,5).
(1,4) followed by (4,5).
This creates the path (1,4,5)
Aspects considered
Speed of the car
Difference between current and desired speed
Cruise control reacts to cars in front of it
Difference in speed and distance between cars
Logical Test Cases
Embedded SW test
Environement
Teste do SW em Sistemas
Integrados Test Process
Boas técnicas de teste de SW não são
fáceis nem intuitivas
Diversas questões básicas
Quando testar?
Quem testa?
De onde vêm (como criar) os casos de teste?
Como avaliar o resultado do teste?
Quando parar de testar?
Simulation Stage Simulation Stage
.... ....
sensor_get(&vertical_veloc_sensor); sensor_get(&vertical_veloc_sensor);
sensor_get(&horizontal_veloc_sensor); sensor_get(&horizontal_veloc_sensor);
.... ....
MODELO DA APLICAÇÃO
HARDWARE COMO ABSTRAÇÕES DO
HARDWARE REAL (MODELAGEM EM
ALTO NÍVEL)
Metodologia Proposta
ANÁLISE DO HARDWARE E
IDENTIFICAÇÃO DE TODOS OS
Metodologia Proposta
DISPOSITIVOS FÍSICOS QUE SERÃO
ACESSADOS
IMPLEMENTAÇÃO DO SOFTWARE DE
APLICAÇÃO, UTILIZANDO
CHAMADAS AS FUNÇÕES DE
ACESSO AO HW JÁ
IMPLEMENTADAS
Metodologia Proposta
ANÁLISE DO HARDWARE E
IDENTIFICAÇÃO DE TODOS OS
Metodologia Proposta
DISPOSITIVOS FÍSICOS QUE SERÃO
ACESSADOS
IMPLEMENTAÇÃO DO SOFTWARE DE
APLICAÇÃO, UTILIZANDO
CHAMADAS AS FUNÇÕES DE
ACESSO AO HW JÁ
IMPLEMENTADAS
VALIDAÇÃO DA APLICAÇÃO
ATRAVÉS DO USO DE
FERRAMENTAS DE TESTE DE
SOFTWARE
Metodologia Proposta Metodologia Proposta
ANÁLISE DO HARDWARE E ANÁLISE DO HARDWARE E
IDENTIFICAÇÃO DE TODOS OS IDENTIFICAÇÃO DE TODOS OS
DISPOSITIVOS FÍSICOS QUE SERÃO IMPLEMENTAÇÃO DAS FUNÇÕES DE DISPOSITIVOS FÍSICOS QUE SERÃO IMPLEMENTAÇÃO DAS FUNÇÕES DE
ACESSADOS ACESSO AOS DISPOSITIVOS DE ACESSADOS ACESSO AOS DISPOSITIVOS DE
HARDWARE - HDS HARDWARE - HDS
MODELO DA APLICAÇÃO
HARDWARE COMO ABSTRAÇÕES DO PLATAFORMA ALVO HARDWARE COMO ABSTRAÇÕES DO PLATAFORMA ALVO
HARDWARE REAL (MODELAGEM EM HARDWARE REAL (MODELAGEM EM
ALTO NÍVEL) ALTO NÍVEL)