Uncertainty-wise test case generation and minimization for Cyber-Physical Systems

Abstract Cyber-Physical Systems (CPSs) typically operate in highly indeterminate environmental conditions, which require the development of testing methods that must explicitly consider uncertainty in test design, test generation, and test optimization. Towards this direction, we propose a set of uncertainty-wise test case generation and test case minimization strategies that rely on test ready models explicitly specifying subjective uncertainty. We propose two test case generation strategies and four test case minimization strategies based on the Uncertainty Theory and multi-objective search. These strategies include a novel methodology for designing and introducing indeterminacy sources in the environment during test execution and a novel set of uncertainty-wise test verdicts. We performed an extensive empirical study to select the best algorithm out of eight commonly used multi-objective search algorithms, for each of the four minimization strategies, with five use cases of two industrial CPS case studies. The minimized set of test cases obtained with the best algorithm for each minimization strategy were executed on the two real CPSs. The results showed that our best test strategy managed to observe 51% more uncertainties due to unknown indeterminate behaviors of the physical environments of the CPSs as compared to the other test strategies. Also, the same test strategy managed to observe 118% more unknown uncertainties as compared to the unique number of known uncertainties.

[1]  Marco Laumanns,et al.  SPEA2: Improving the strength pareto evolutionary algorithm , 2001 .

[2]  Kalyanmoy Deb,et al.  An Evolutionary Many-Objective Optimization Algorithm Using Reference-Point-Based Nondominated Sorting Approach, Part I: Solving Problems With Box Constraints , 2014, IEEE Transactions on Evolutionary Computation.

[3]  Zongmin Ma,et al.  Construction of Fuzzy Ontologies from Fuzzy UML Models , 2013, Int. J. Comput. Intell. Syst..

[4]  Zongmin Ma,et al.  Fuzzy information modeling in UML class diagram and relational database models , 2011, Appl. Soft Comput..

[5]  Lionel C. Briand,et al.  Environment modeling and simulation for automated testing of soft real-time embedded software , 2013, Software & Systems Modeling.

[6]  Zongmin Ma Fuzzy Information Modeling with the UML , 2005 .

[7]  Lionel C. Briand,et al.  Generating Test Data from OCL Constraints with Search Techniques , 2013, IEEE Transactions on Software Engineering.

[8]  Arnaud Gotlieb,et al.  Minimizing test suites in software product lines using weight-based genetic algorithms , 2013, GECCO '13.

[9]  Lothar Thiele,et al.  Conformance testing for cyber-physical systems , 2012, TECS.

[10]  Riccardo Poli,et al.  A Field Guide to Genetic Programming , 2008 .

[11]  Lionel C. Briand,et al.  A practical guide for using statistical tests to assess randomized algorithms in software engineering , 2011, 2011 33rd International Conference on Software Engineering (ICSE).

[12]  Frank Budinsky,et al.  Eclipse Modeling Framework , 2003 .

[13]  Enrique Alba,et al.  Solving Three-Objective Optimization Problems Using a New Hybrid Cellular Genetic Algorithm , 2008, PPSN.

[14]  Liz Eckermann,et al.  Uncertainty and risk : multidisciplinary perspectives , 2011 .

[15]  Robert Oshana,et al.  Improving software quality using statistical testing techniques , 2000, Inf. Softw. Technol..

[16]  Lothar Thiele,et al.  Multiobjective evolutionary algorithms: a comparative case study and the strength Pareto approach , 1999, IEEE Trans. Evol. Comput..

[17]  Enrique Alba,et al.  Design Issues in a Multiobjective Cellular Genetic Algorithm , 2007, EMO.

[18]  R. Cooke Real and Complex Analysis , 2011 .

[19]  Rick Salay,et al.  Language Independent Refinement Using Partial Modeling , 2012, FASE.

[20]  Xiaolin Teng,et al.  Considering fault removal efficiency in software reliability assessment , 2003, IEEE Trans. Syst. Man Cybern. Part A.

[21]  Danda B. Rawat,et al.  Cyber-Physical Systems: From Theory to Practice , 2015 .

[22]  Gordon Fraser,et al.  Uncertainty-Driven Black-Box Test Data Generation , 2016, 2017 IEEE International Conference on Software Testing, Verification and Validation (ICST).

[23]  Shaoying Liu,et al.  Generating test data from state‐based specifications , 2003, Softw. Test. Verification Reliab..

[24]  Maliha S. Nash,et al.  Handbook of Parametric and Nonparametric Statistical Procedures , 2001, Technometrics.

[25]  Enrique Alba,et al.  SMPSO: A new PSO-based metaheuristic for multi-objective optimization , 2009, 2009 IEEE Symposium on Computational Intelligence in Multi-Criteria Decision-Making(MCDM).

[26]  Jianwen Chen,et al.  Dealing with Uncertainty: A Survey of Theories and Practices , 2013, IEEE Transactions on Knowledge and Data Engineering.

[27]  Handbook of Parametric and Nonparametric Statistical Procedures , 2004 .

[28]  Baoding Liu Why is There a Need for Uncertainty Theory , 2012 .

[29]  Roger S. Pressman,et al.  Software Engineering: A Practitioner's Approach , 1982 .

[30]  Kim G. Larsen,et al.  Testing Real-Time Systems Using UPPAAL , 2008, Formal Methods and Testing.

[31]  Lionel C. Briand,et al.  Using simulation to empirically investigate test coverage criteria based on statechart , 2004, Proceedings. 26th International Conference on Software Engineering.

[32]  Yan Li,et al.  A Practical Guide to Select Quality Indicators for Assessing Pareto-Based Search Algorithms in Search-Based Software Engineering , 2016, 2016 IEEE/ACM 38th International Conference on Software Engineering (ICSE).

[33]  Jouni Lampinen,et al.  GDE3: the third evolution step of generalized differential evolution , 2005, 2005 IEEE Congress on Evolutionary Computation.

[34]  Shengwei Han,et al.  The maximum flow problem of uncertain network , 2014, Inf. Sci..

[35]  A. Jefferson Offutt,et al.  Introduction to Software Testing , 2008 .

[36]  Enrique Alba,et al.  AbYSS: Adapting Scatter Search to Multiobjective Optimization , 2008, IEEE Transactions on Evolutionary Computation.

[37]  A. Jefferson Offutt,et al.  Generating Tests from UML Specifications , 1999, UML.

[38]  Dennis V. Lindley Understanding Uncertainty : Revised edition , 2013 .

[39]  Stacy J. Prowell,et al.  JUMBL: a tool for model-based statistical testing , 2003, 36th Annual Hawaii International Conference on System Sciences, 2003. Proceedings of the.

[40]  Jesse H. Poore,et al.  Statistical testing of software based on a usage model , 1995, Softw. Pract. Exp..

[41]  R. Mall,et al.  Automatic test case generation using unified modeling language (UML) state diagrams , 2008, IET Softw..

[42]  K. PandeyR. Object constraint language (OCL) , 2011 .

[43]  Roger Pressman,et al.  Software Engineering: A Practitioner's Approach, 7Th Edition , 2009 .

[44]  Ziyou Gao,et al.  Train Timetable Problem on a Single-Line Railway With Fuzzy Passenger Demand , 2009, IEEE Transactions on Fuzzy Systems.

[45]  Jin Peng,et al.  Risk metrics of loss function for uncertain system , 2013, Fuzzy Optim. Decis. Mak..

[46]  Houssam Abbas,et al.  Conformance Testing as Falsification for Cyber-Physical Systems , 2014, ArXiv.

[47]  Lionel C. Briand,et al.  A Systematic Review of the Application and Empirical Investigation of Search-Based Test Case Generation , 2010, IEEE Transactions on Software Engineering.

[48]  Baoding Liu,et al.  Uncertainty Theory - A Branch of Mathematics for Modeling Human Uncertainty , 2011, Studies in Computational Intelligence.

[49]  Ilka Philippow,et al.  UML-Based Statistical Test Case Generation , 2002, NetObjectDays.

[50]  Li Yan,et al.  Extending Nested Relational Model for Fuzzy Information Modeling , 2009, 2009 WASE International Conference on Information Engineering.

[51]  A. Dias-Neto,et al.  0006/2011 - Threats to Validity in Search-based Software Engineering Empirical Studies , 2011 .

[52]  Marjan Mernik,et al.  Replication and comparison of computational experiments in applied evolutionary computing: Common pitfalls and guidelines to avoid them , 2014, Appl. Soft Comput..

[53]  Bran Selic,et al.  Understanding Uncertainty in Cyber-Physical Systems: A Conceptual Model , 2016, ECMFA.

[54]  Rick Salay,et al.  Partial models: Towards modeling and reasoning with uncertainty , 2012, 2012 34th International Conference on Software Engineering (ICSE).

[55]  Vahid Garousi,et al.  Traffic-aware Stress Testing of Distributed Real-Time Systems Based on UML Models in the Presence of Time Uncertainty , 2008, 2008 1st International Conference on Software Testing, Verification, and Validation.

[56]  Kalyanmoy Deb,et al.  A fast and elitist multiobjective genetic algorithm: NSGA-II , 2002, IEEE Trans. Evol. Comput..

[57]  Edward A. Lee,et al.  Modeling Cyber–Physical Systems , 2012, Proceedings of the IEEE.

[58]  Paul C. Jorgensen,et al.  Software Testing: A Craftsman's Approach , 1995 .

[59]  Enrique Alba,et al.  MOCell: A cellular genetic algorithm for multiobjective optimization , 2009, Int. J. Intell. Syst..

[60]  Yuanguo Zhu,et al.  Please Scroll down for Article Cybernetics and Systems Uncertain Optimal Control with Application to a Portfolio Selection Model Uncertain Optimal Control with Application to a Portfolio Selection Model , 2022 .

[61]  Lotfi A. Zadeh,et al.  Fuzzy Sets , 1996, Inf. Control..

[62]  Michalis Famelis,et al.  MAV-Vis: A notation for model uncertainty , 2013, 2013 5th International Workshop on Modeling in Software Engineering (MiSE).

[63]  Lionel C. Briand,et al.  A Search-Based OCL Constraint Solver for Model-Based Test Data Generation , 2011, 2011 11th International Conference on Quality Software.

[64]  Man Zhang,et al.  Uncertainty-Wise Cyber-Physical System test modeling , 2019, Software & Systems Modeling.

[65]  Andrea Arcuri,et al.  It really does matter how you normalize the branch distance in search‐based software testing , 2013, Softw. Test. Verification Reliab..

[66]  Kim G. Larsen,et al.  Testing Real-Time Systems under Uncertainty , 2010, FMCO.

[67]  Zongmin Ma,et al.  Representing and reasoning on fuzzy UML models: A description logic approach , 2011, Expert Syst. Appl..

[68]  Arthur P. Dempster,et al.  Upper and Lower Probabilities Induced by a Multivalued Mapping , 1967, Classic Works of the Dempster-Shafer Theory of Belief Functions.

[69]  Jason Brownlee,et al.  Clever Algorithms: Nature-Inspired Programming Recipes , 2012 .