
0ad55bb0e55665f0f27f37ae48870af5.ppt
- Количество слайдов: 31
Software Reliability Analysis Tools Joel Henry, Ph. D. University of Montana 1
Outline Background n MATLAB Automated Testing Tool n Graphical Input Specification Tool n Real-Time Analysis Testing Tool n Status n Conclusion n 2
System Development Example: Wind Tunnel Software n Controls devices that control: Wind generator n Model support n Tunnel atmosphere n Emphasizes reliability and safety n Utilizes multiple development strategies n Based on simple structure n 3
System Development Simple Structure External Devices Controlling Computers ALGORITHM Sample Inputs Run Software Update Outputs 4
Testing Problems n Size n n Requirements n n Input file/matrix Output file/matrix Analysis tools Domain determinants n n n Input variables – sampled over time Outputs variables – produced over time Sample time – variable or set frequency Input variable – minimum, maximum, and accuracy Output variable – minimum, maximum, and accuracy Test requirements n n Input file/matrix with all possible values for input Output file/matrix much more complex problem 5
Solution Approach Overview n Automation to: Generate large input matrices/files n Perform simulation and/or test auto-generated code n Analyze output matrices/files n n Methods to: Evaluate domain coverage n Aid debugging n Evaluate results n 6
Solution Approach Suite of testing tools Generate Tests Simulate Model Test Auto-code Detect Faults Evaluate Results Verification and Validation Methodology Command Control Algorithm MATLAB/Simulink Environment Executable Code Source Code 7
Solution Approach Model Information Test Data Test Results Command Control Algorithm MATLAB/Simulink Environment Suite of testing tools Test Data Executable Code Test Results Generate Tests Simulate Model Test Auto-code Detect Faults Evaluate Results Verification and Validation Methodology 8
MATLAB Automated Testing Tool Creates test data n Executes simulation or test n Captures results n Detects exceptions n Saves test data or complete test results n 9
MATT – Test Setup Inputs Set test running time n Select and configure tests using 31 test types n Now supports non-scalar inputs* n 10
MATT – Test Setup States n Assign Starting values for state blocks* 11
MATT – Test Setup Outputs Set output accuracy and exception ranges n Now supports non-scalar outputs* n 12
MATT – Test Setup New Exception Types n Percent change* n n Allows exception detection if the output value changes more than a specified percent over a specified number of steps Absolute change* n Allows exception detection if the output value changes more than a specified amount over a specified number of steps 13
MATT – Simulate n n Set up simulation and code generation options Simulate: n n n Model Auto-generated Code Compare both 14
MATT – View Results n n View input values for every time-step View output values for every time-step n n Steps causing exceptions are highlighted red* View/edit output exception info and settings 15
MATT – Advanced Exceptions* n Advanced Exceptions allow exception detection based on multiple exception criteria n n A combination of output ports Disjoint ranges n n n Create separate A. E definition for each range that needs to be tested Do a combinational process based on all the A. E definitions Overall system reliability n n Create multiple A. E definitions based on system specifications Perform a combinational process based on all the defined Advanced Exceptions 16
MATT – Advanced Exceptions Combination of output ports n In the example shown below, an exception is said to have occurred when: n n n Stick output is between 5 and 10 Alpha output is greater than 20 rads After clicking the process button, one discovers: n n n 7 exceptions occurred from the given exception definition The time steps where the 7 exceptions occurred The output values that produced the 7 exceptions 17
MATT – Advanced Exceptions n Disjoint Ranges In this example, two separate exception definitions are specified: n n n (1) Alpha producing values between 0 - 4 rads (2) Alpha producing values between 15 – 19 rads These two exception definitions are combined, and exception results are calculated in aggregate. 18
MATT – Advanced Exceptions Overall System Reliability n By combining multiple A. E. definitions, systems can be stress-tested for accuracy and reliability. 19
MATT - Storage n Save complete test setup for future use Input, State, and Output settings n Advanced Exception Setting n Input Matrix n Output Matrix n n Import and export custom input matrices Comma delimited files (*. csv) n MATLAB data files (*. mat) n 20
GIST Reads MATT test data files n Allows freehand specification of test data n Saves new MATT test data files n 21
GIST – Manage Input Sets n n n Add/Remove inputs for altered models View graphs of any input Edit any input 22
GIST – Edit Inputs n n Use simple click and drag to create new input values View original input values as drawing 23
RATT Reads MATT test result files n Calculates reliability, probabilities, and completeness measures n Supports analysis of multiple test files (test suite) n Exports to MS Excel and populates analysis charts and graphs n 24
RATT - Analysis n n Load several MATT test files at once Perform analysis n n n Input coverage Output coverage MTTF Probability of failure Etc View simple results in RATT 25
RATT – Excel Tool ® n n n Load RATT files into Excel® View graphs showing coverage View coverage on multiple inputs/exceptions at the same time 26
Current Status Windows and UNIX versions of MATT ready n Windows versions of GIST and RATT ready n Working with STEREO project n n Testing MATLAB/Simulink® models using MATT 27
Upcoming Functionality n MATT n n n View intermediate state values from simulation Create and use custom test-types Load models inside MATT n n GIST n n Allows MATT to launch outside of MATLAB® Being integrated into MATT for more seamless use RATT n Being revised to accommodate Advanced Exceptions 28
Conclusion – Testing Enhanced n Using software tools to aid testing allows More tests to be run n Each test to be run more quickly n Test results to be easily stored and referenced n 29
Conclusion – Tools Enhanced n Improved MATT capabilities allow Systems to start at any state with ease n More advanced exception catching n 30
Questions and Contact Info n Joel Henry henryj@cs. umt. edu n MATT, RATT, and GIST n n n http: //www. cs. umt. edu/RTSL/matt/ MATLAB and Simulink users 31
0ad55bb0e55665f0f27f37ae48870af5.ppt