Testing real-time systems using genetic algorithms

  • Authors:
  • Joachim Wegener;Harmen Sthamer;Bryan F. Jones;David E. Eyres

  • Affiliations:
  • Correct Systems (F3S/K), Daimler-Benz AG, Alt-Moabit 96a, D10559 Berlin Germany;Department of Computer Studies, University of Glamorgan, Pontypridd CF37 1DL, UK;Department of Computer Studies, University of Glamorgan, Pontypridd CF37 1DL, UK;Department of Computer Studies, University of Glamorgan, Pontypridd CF37 1DL, UK

  • Venue:
  • Software Quality Control
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

The development of real-time systems is an essential industrial activity whose importance is increasing. The most important analytical method to assure the quality of real-time systems is dynamic testing. Testing is the only method which examines the actual run-time behaviour of real-time software, based on an execution in the real application environment. Dynamic aspects like the duration of computations, the memory actually needed, or the synchronization of parallel processes are of major importance for the correct function of real-time systems and have to be tested. A comprehensive investigation of existing software test methods shows that they mostly concentrate on testing for functional correctness. They are not suited for an examination of temporal correctness which is essential to real-time systems. Very small systems show a wide range of different execution times. Therefore, existing test procedures must be supplemented by new methods, which concentrate on determining whether the system violates its specified timing constraints. In general, this means that outputs are produced too early or their computation takes too long. The task of the tester is to find the inputs with the longest or shortest execution times to check whether they produce a temporal error. If the search for such inputs is interpreted as a problem of optimization, genetic algorithms can be used to find the inputs with the longest or shortest execution times automatically. The fitness function is the execution time measured in processor cycles. Experiments using genetic algorithms on a number of programs with up to 1511 LOC and 843 integer input parameters have successfully identified new longer and shorter paths than had been found using random testing or systematic testing. Genetic algorithms are able therefore to check large programs and they show considerable promise in establishing the validity of the temporal behaviour of real-time software.