Integration Testing - Looking for a Solution to Testing Concurrent Components and Systems

Similar documents
S_LOOP: SINGLE-LOOP FEEDBACK CONTROL SYSTEM ANALYSIS

EE 4443/5329. LAB 3: Control of Industrial Systems. Simulation and Hardware Control (PID Design) The Inverted Pendulum. (ECP Systems-Model: 505)

Reliability Analysis of Embedded System with Different Modes of Failure Emphasizing Reboot Delay

SMALL-SIGNAL STABILITY ASSESSMENT OF THE EUROPEAN POWER SYSTEM BASED ON ADVANCED NEURAL NETWORK METHOD

INTEGRATION OF A PHENOMENOLOGICAL RADAR SENSOR MODELL IN IPG CARMAKER FOR SIMULATION OF ACC AND AEB SYSTEMS

Lecture #9 Continuous time filter

Digital Control System

A PLC BASED MIMO PID CONTROLLER FOR MULTIVARIABLE INDUSTRIAL PROCESSES

Advanced D-Partitioning Analysis and its Comparison with the Kharitonov s Theorem Assessment

Control of Delayed Integrating Processes Using Two Feedback Controllers R MS Approach

State Space: Observer Design Lecture 11

Gain and Phase Margins Based Delay Dependent Stability Analysis of Two- Area LFC System with Communication Delays

Statistics and Data Analysis

Evolutionary Algorithms Based Fixed Order Robust Controller Design and Robustness Performance Analysis

PARAMETERS OF DISPERSION FOR ON-TIME PERFORMANCE OF POSTAL ITEMS WITHIN TRANSIT TIMES MEASUREMENT SYSTEM FOR POSTAL SERVICES

Departure Time and Route Choices with Bottleneck Congestion: User Equilibrium under Risk and Ambiguity

Lecture 10 Filtering: Applied Concepts

Analysis of Step Response, Impulse and Ramp Response in the Continuous Stirred Tank Reactor System

Extending MFM Function Ontology for Representing Separation and Conversion in Process Plant

Estimating floor acceleration in nonlinear multi-story moment-resisting frames

CHAPTER 4 DESIGN OF STATE FEEDBACK CONTROLLERS AND STATE OBSERVERS USING REDUCED ORDER MODEL

Suggested Answers To Exercises. estimates variability in a sampling distribution of random means. About 68% of means fall

A Method for Assessing Customer Harmonic Emission Level Based on the Iterative Algorithm for Least Square Estimation *

USING NONLINEAR CONTROL ALGORITHMS TO IMPROVE THE QUALITY OF SHAKING TABLE TESTS

White Rose Research Online URL for this paper: Version: Accepted Version

III.9. THE HYSTERESIS CYCLE OF FERROELECTRIC SUBSTANCES

A Simplified Methodology for the Synthesis of Adaptive Flight Control Systems

Problem Set 8 Solutions

CISE302: Linear Control Systems

Convective Heat Transfer

An estimation approach for autotuning of event-based PI control systems

MODELING OF NEGATIVE INFLUENCES AT THE SIGNAL TRANSMISSION IN THE OPTICAL MEDIUM. Rastislav Róka, Filip Čertík

Laplace Transformation

Z a>2 s 1n = X L - m. X L = m + Z a>2 s 1n X L = The decision rule for this one-tail test is

Control Systems Analysis and Design by the Root-Locus Method

Improvement of Transient Stability of Power System by Thyristor Controlled Phase Shifter Transformer

Simple Observer Based Synchronization of Lorenz System with Parametric Uncertainty

Root Locus Diagram. Root loci: The portion of root locus when k assume positive values: that is 0

Technical Appendix: Auxiliary Results and Proofs

μ + = σ = D 4 σ = D 3 σ = σ = All units in parts (a) and (b) are in V. (1) x chart: Center = μ = 0.75 UCL =

Properties of Z-transform Transform 1 Linearity a

[Saxena, 2(9): September, 2013] ISSN: Impact Factor: INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY

ANALYTICAL BEARING MODEL FOR ANALYSIS OF INNER LOAD DISTRIBUTION AND ESTIMATION OF OPERATIONAL LUBRICATION REGIME

General Topology of a single stage microwave amplifier

Real-Time Identification of Sliding Friction Using LabVIEW FPGA

Bogoliubov Transformation in Classical Mechanics

Innovational Approach to the Mathematics Teaching at the Technical Universities

Optimization model in Input output analysis and computable general. equilibrium by using multiple criteria non-linear programming.

Comparing Means: t-tests for Two Independent Samples

Chapter 2 Sampling and Quantization. In order to investigate sampling and quantization, the difference between analog

Real-Time Models for Hardware-in-the-Loop-Simulation of Hydraulic Drive and Control Systems

Real-time identification of sliding friction using LabVIEW FPGA

LOW ORDER MIMO CONTROLLER DESIGN FOR AN ENGINE DISTURBANCE REJECTION PROBLEM. P.Dickinson, A.T.Shenton

7.2 INVERSE TRANSFORMS AND TRANSFORMS OF DERIVATIVES 281

Lecture 4 Topic 3: General linear models (GLMs), the fundamentals of the analysis of variance (ANOVA), and completely randomized designs (CRDs)

Behavioral thermal modeling for quad-core microprocessors

Experimental Determination of Particle Sedimentation Velocity in Opaque Drilling Fluids

The use of connected masks for reconstructing the single particle image from X-ray diffraction data

Learning Multiplicative Interactions

Chapter 10. Closed-Loop Control Systems

Follow The Leader Architecture

The Study of the Kinematic Parameters of a Vehicle Using the Accelerometer of a Smartphone

Fast explicit formulae for genus 2 hyperelliptic curves using projective coordinates

into a discrete time function. Recall that the table of Laplace/z-transforms is constructed by (i) selecting to get

Simulation Study on the Shock Properties of the Double-Degree-of-Freedom Cushioning Packaging System

State-space feedback 5 Tutorial examples and use of MATLAB

Dynamic Simulation of a Three-Phase Induction Motor Using Matlab Simulink

Social Studies 201 Notes for November 14, 2003

RELIABILITY OF REPAIRABLE k out of n: F SYSTEM HAVING DISCRETE REPAIR AND FAILURE TIMES DISTRIBUTIONS

Jul 4, 2005 turbo_code_primer Revision 0.0. Turbo Code Primer

Improving Power System Transient Stability with Static Synchronous Series Compensator

Distinct Random Sampling from a Distributed Stream

Performance Measures for BSkSP-3 with BMChSP-1 as a reference plan

CHAPTER 8 OBSERVER BASED REDUCED ORDER CONTROLLER DESIGN FOR LARGE SCALE LINEAR DISCRETE-TIME CONTROL SYSTEMS

IEOR 3106: Fall 2013, Professor Whitt Topics for Discussion: Tuesday, November 19 Alternating Renewal Processes and The Renewal Equation

CDMA Signature Sequences with Low Peak-to-Average-Power Ratio via Alternating Projection

"HIP Modeling Methodology Based on the Inherent Process Anisotropy

CHEAP CONTROL PERFORMANCE LIMITATIONS OF INPUT CONSTRAINED LINEAR SYSTEMS

A Constraint Propagation Algorithm for Determining the Stability Margin. The paper addresses the stability margin assessment for linear systems

Lecture 8: Period Finding: Simon s Problem over Z N

Application of Gradient Projection for Sparse Reconstruction to Compressed Sensing for Image Reconstruction of Electrical Capacitance Tomography

Theoretical Computer Science. Optimal algorithms for online scheduling with bounded rearrangement at the end

3.1 The Revised Simplex Algorithm. 3 Computational considerations. Thus, we work with the following tableau. Basic observations = CARRY. ... m.

Earth Potential Rise (EPR) Computation for a Fault on Transmission Mains Pole

Recent progress in fire-structure analysis

Acceptance sampling uses sampling procedure to determine whether to

Clustering Methods without Given Number of Clusters

Quantifying And Specifying The Dynamic Response Of Flowmeters

Assessment of Performance for Single Loop Control Systems

A Compensated Acoustic Actuator for Systems with Strong Dynamic Pressure Coupling

THE IDENTIFICATION OF THE OPERATING REGIMES OF THE CONTROLLERS BY THE HELP OF THE PHASE TRAJECTORY

Diagnostic Models of an Intelligent Tutor System for Teaching Skills to Solve Algebraic Equations

TRANSITION PROBABILITY MATRIX OF BRIDGE MEMBERS DAMAGE RATING

Preemptive scheduling on a small number of hierarchical machines

UNITS FOR THERMOMECHANICS

An Image-encoded Mach-Zehnder Joint Transform Correlator for Polychromatic Pattern Recognition with Multi-level Quantized Reference Functions

Dimensional Analysis A Tool for Guiding Mathematical Calculations

Reinforcement Learning

Sampling and the Discrete Fourier Transform

Stratified Analysis of Probabilities of Causation

Transcription:

Integration Teting - Looking for a Solution to Teting Concurrent Component and Sytem Integration Teting 23. TAV 1 Andrej Pietchker, PhD Siemen AG, CT SE 1 andrej.pietchker@iemen.com ph: +49 (89) 636 55130 Preentation Overview Motivation Light-Weight Approach to Paive Teting Model-baed Approach to Paive Teting Concluion Integration Teting 23. TAV 2 1

Motivation Integration Teting 23. TAV 3 Fault Diagnoi in Ditributed Sytem Fault diagnoi conit of the tak Reproduce the failure oberved, e.g., during teting Examine the fault Hypotheize about the error Ditributed, concurrent ytem complicate matter Nondeterminitic behavior Reproducibility of failure difficult to achieve Error Error Fault Fault Integration Teting 23. TAV 4 Failure Failure 2

Paive Teting Tracing to upport fault diagnoi Well-proven mean for analyzing complex ytem Collect event from the running application Uually large amount of data collected Automatic offline analyi of trace Support of filtering, viualization, and detail-on-demand Flexible and eay uage of tool Paive Teting Active Teting: Verification by mean of interaction with SUT Integration Teting 23. TAV 5 Light-Weight Approach to Paive Teting Integration Teting 23. TAV 6 3

Information Seeking Mantra Paive teting approach applie concept of Viualization Trace data and analyi reult are made acceible to the uer Different output upported, e.g. in SVG or HTML Filtering Reduce the ize and information contained in a trace Filter define operation over trace, e.g. election, pruning Detail-on-Demand Not all information hould be preent at all time Diplay further information when cloer inpection i required Integration Teting 23. TAV 7 Structure of a Standardized Trace Format Trace contain the following event type Regitration and unregitration event of Device Procee and/or thread Object Communication event Send and receive of meage Local event Variable aignment Aertion Event tructure defined in XML chema Integration Teting 23. TAV 8 4

Trace Tranformation Trace preent a XML-file (converted from other format) Output of a filter i another trace in XML format Filter can be combined Support reue of filter Filter are not necearily commutative: f g g f Viualization component applied if needed Integration Teting 23. TAV 9 Example: Overview Automotive application Driver information and navigation ytem Embedded component-baed oftware development project Sytem wa deigned with tracing already in mind! Sytem failure Sytem lowed down unexpectedly when running on target hardware Tak: Analyze the caue of the low-down! Original trace contained more than 1 million event Analyi tep Identify thread with a large running time Viualize the communication of thee thread Analyi reult Slow-down caued by permanent polling of a device that wa not operational Integration Teting 23. TAV 10 5

Example: Performance Analyi in HTML Integration Teting 23. TAV 11 Example: Graphical Trace Viualization in SVG Integration Teting 23. TAV 12 6

More Example Integration Teting 23. TAV 13 Taking Concurrency into Account Integration Teting 23. TAV 14 7

Model-baed Approach to Paive Teting Integration Teting 23. TAV 15 Log, Trace, and Model pr1 n1 = 3 n1 = 4 n1 = 5 n2=2 n1=5 m1 m2 Zeit rm3 n1=5 n1=5 rm3 rm2 n2=2 rm2 n2=2 m3 pr2 n2 = 6 n2 = 4 Log pr1: n1=3 Trace pr2: n2=6 pr2: nd m1 to pr1 pr2: n2=4 pr1: rcv m1 from pr2 pr2: nd m3 to pr1 pr1: n1=4 pr1: nd m2 to pr2 pr1: rcv m3 from pr2 pr2: rcv m2 from pr1 pr1: n1=5 pr2: n2=2 Integration Teting 23. TAV 16 n2 = 2 m3 m2 rm2 m2 n2=4 m3 m3 n1=4 n2=4 m2 rm1 rm1 n2=4 m2 n1=3 n2=4 m2 n2=4 n1=4 n1=4 n1=3 rm1 m1 n2=6 n1=3 n1=3 m1 rm3 n2=6 Model 8

Model-baed Analyi Overview Trace Uer-defined Propertie (a Pattern) Recontruction of ytem behavior Simulation Reult OK? Integration Teting 23. TAV 17 Example: Sliding Window Protocol A connection-oriented protocol (ued e.g. in TCP) Allow data to be ent in one direction between a pair of protocol entitie, ubject to a maximum number of unacknowledged meage (window) If thi window become full, the protocol i blocked until an acknowledgement i received for the earliet outtanding meage. At thi point the tranmitter i clear to end more meage. Integration Teting 23. TAV 18 9

bl ock B lo c k 1 e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T Vo id, T W in d o wa c k, T W in d o w N a c k e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T Vo id, T W in d o wa c k, T W in d o w N a c k a 2 ( 1, 1 ) a 2 a 4 6 a 4 6 ( 1, 1 ) a 2 a 5 0 a 2 a 7 6 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 5 0 ( 1, 1 ) a2 a 5 8 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w Ac k a 7 6 ( 1, 1 ) a 2 a 7 2 T C o n n e c t, T Co n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o wa c k a 5 8 ( 1, 1 ) a 2 a 5 2 T C o n n e c t, T Co n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o wa c k a 7 2 ( 1, 1 ) a 2 a 6 4 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T Vo id, T W in d o w A c k a 5 2 ( 1, 1 ) a 2 a 6 2 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 6 4 ( 1, 1 ) a 2 a 6 8 T C o n n e c t, T C o n n e c t Ac k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 6 2 ( 1, 1 ) a 2 a 5 4 T C o n n e c t, T C o n n e c t Ac k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 6 8 ( 1, 1 ) a 2 a 6 0 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a5 4 ( 1, 1 ) a 2 a 6 6 a 6 0 ( 1, 1 ) a 2 a 4 4 a 6 6 ( 1, 1 ) a 2 a 2 8 a 4 4 ( 1, 1 ) a 2 a 5 6 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 2 8 ( 1, 1 ) a 2 a 4 2 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 5 6 ( 1, 1 ) a 2 a 2 6 T Co n n e c t, T Co n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w Ac k a 4 2 ( 1, 1 ) a 2 a 3 0 T Co n n e c t, T Co n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w Ac k a 2 6 ( 1, 1 ) a 2 a 4 0 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T Vo id, T W in d o wa c k a 3 0 ( 1, 1 ) a 2 a 7 4 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T Vo id, T W in d o w A c k a 4 0 ( 1, 1 ) a 2 a 3 2 a 2 a 3 8 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k, T W in d o w N a c k a 7 4 ( 1, 1 ) a 3 2 ( 1, 1 ) a 2 a 3 6 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 3 8 ( 1, 1 ) a 2 a 3 4 T C o n n e c t, T C o n n e c t A c k, T T e t, T T e t A c k, T V o id, T W in d o w A c k a 3 6 ( 1, 1 ) TConnect, TConnect Ack, TTet, TTet Ack, TVoid, TW indo a 3 4 ( 1, 1 ) T C o n n e c t, T C o n n e c t A c k, T T e t, T Architectural View of the Sytem 1 centralized component communicating with all other component (tar-form communication) Integration Teting 23. TAV 19 Paive Teting Workflow Exemplified Start: Formalize ytem property The liding window property i not violated. Rephrae property a pattern over trace Let SWS be the maximum ender window ize. Let LAR be the equence number of the lat acknowledgment received. Let LFS be the equence number of the lat frame ent. The ender maintain the invariant: LFS - LAR + 1 <= SWS. Simulation of trace and pattern uing a model checker Interpretation of reult Integration Teting 23. TAV 20 10

Main Part of the Analyi Pattern Integration Teting 23. TAV 21 Trace Analyi Execution Procee a2 and a40 are analyzed Integration Teting 23. TAV 22 1 error found during the verification proce 11

A Detected Error Scenario error-trace int_1_a2 PROCESS / ytem1/ block1/a2 (1) int_1_a40 PROCESS / ytem1/ block1/ a40(1) TConnect TConnect TWindowAck TWindowAck TVoid TVoid TVoid TVoid TVoid Integration Teting 23. TAV 23 Error trace report a 4th unacknowledged TVoid meage although window ize i et to 3 only. Analyi of Other Sytem Propertie Sytem architecture Analyi of initialization phae (thread or object view) Analyi of creation and termination of thread or object Deadlock analyi Race analyi Identification of object ued by more than one thread Identification of meage intended for a ingle recipient (race) Race are the main caue for nondeterminitic ytem behavior Performance analyi Analyi of communication, delay, uage time Integration Teting 23. TAV 24 12

Concluion Integration Teting 23. TAV 25 Summary (1) Input for Paive Teting A trace file with all the neceary information Deired or undeired ytem propertie Fully automated analyi Tool exit! Analyi reult Indicator for fault analyi Support during regreion teting Univeral analyi of ytem propertie Non-determinim Performance bottle-neck Hint for redeign Paive Teting uable for Ditributed ytem, epecially for ytem with many device Poorly documented ytem Sytem containing Component of the helve (COTS) Integration Teting 23. TAV 26 13

Summary (2) XML-baed approach to trace analyi Offer quick and cheap olution to upport fault diagnoi Enable an interactive way to extract and viualize information gathered during teting Ue tandardized XML technologie Benefit from the large variety of freely available XML tool Scale with the trace ize Model-baed approach to trace analyi Can be integrated into XML-baed approach (filter concept) Take concurrency into account Find non-reproducible fault Integration Teting 23. TAV 27 14