Lurette

  • Software distribution and licensing: Open-source distribution
  • Software maturity: Basic usage works, terse documentation.
  • Software Maintenance and Evolution: Basic maintenance to keep the software alive, no future plans
An automatic testing tool for reactive systems.

Lurette is an Automatic Test Generator for Reactive Programs. The testing is automated in two main ways : (1) realistic input sequences are generated from non-deterministic formal descriptions of the System Under Test Environment properties ; (2) the test success decision is done with a formal description of the desired properties — correct behaviours — of the SUT.

 Presentation

The functional testing of reactive systems raises specific problems. Lurette adopts the usual point of view of synchronous programming, considering that the behavior of such a system is a sequence of atomic reactions --- which can be either time-triggered or event-triggered, or both ---. Each reaction consists in reading inputs, computing outputs, and updating the internal state of the system. As a consequence, a tester has to provide test sequences, i.e., sequences of input vectors. Moreover, since a reactive system is generally designed to control its environment, the input vector at a given reaction may depend on the previous outputs. As a consequence, input sequences cannot be produced off-line, and their elaboration must be intertwined with the execution of the system under test (SUT). Finally, in order to decide whether a given test succeeds or fails, the sequence of pairs (input-vector, output-vector) can be provided to an observer which acts as an oracle at each reaction.

In the past, we proposed languages and tools to automate this testing process [1]. The system under test is a black box ; it can be any executable code, able to perform on demand a reaction, i.e., read inputs ; do a step ; provide outputs. The environment is modeled using dynamically changing constraints on inputs described using Lucky [2].

We now use a higher-level language named stochastic Lutin  [3], [4]. The oracle is provided as an observer in Lustre. The tool Lurette is then able to run automatically any number of arbitrarily long test sequences. Each step consists of (1) executing one (stochastic) reaction of the environment that provides inputs to the SUT (2) executing one reaction of the SUT with the chosen inputs, (3) executing one reaction of the oracle observer with the SUT inputs and outputs (and stopping the test if the checked property is violated), and (4) looping to (1) using the SUT outputs as environment inputs.

Lurette has been used in several projects (SAFEAIR II IST project, ASSERT project, and COMON), and has been described on 3 case studies papers [5], [6],  [7]

Lurette workflow

The Lurette iterative process loops. Oracles and environments of the SUT are extracted from heterogeneous specifications. When an oracle is invalidated, it can be due to a design error, a coding error, or to a wrong or imprecise specification. Once the system is running without invalidating oracles, in order to improve the coverage rate, the tester needs to refine test scenarios.

 Argosim and Stimulus

Lurette is currently being transfered by the Argosim start-up compagny.

  Use Lurette

Lurette is now part of the Lustre V6 toolbox (lus2lic, lurette, rdbg)

 Related links

— The Lutin page
— The Lustre V6 page
— the Lustre V6 toolbox
— Lurette Tutorials

[1P. Raymond, D. Weber, X. Nicollin, and N. Halbwachs. Automatic Testing of Reactive Systems. 19th IEEE Real-Time Systems Symposium. Madrid, Spain, December 1998 [RWN+98]

[2P. Raymond, E. Jahier, Y. Roux "Describing and executing random reactive systems" 4th IEEE International Conference on Software Engineering and Formal Methods Pune, India, September 11-15, 2006. [RJR06]

[3P. Raymond, Y. Roux, E. Jahier - Lutin : A language for specifying and executing reactive scenarios - EURASIP Journal on Embedded Systems 2008 [RRJ8]

[4Generating Random Values Using Binary Decision Diagrams and Convex Polyhedra. Erwan Jahier, Pascal Raymond - Trends in Constraint Programming [JR07]

[5E. Jahier, P. Raymond, P. Baufreton Case Studies with Lurette V2 International Journal on Software Tools for Technology Transfer ,Volume 8, Number 6, November 2006 [JRB6]

[6E. Jahier , N. Halbwachs, P. Raymond - Engineering Functional Requirements of Reactive Systems using Synchronous Languages - International Symposium on Industrial Embedded Systems, 2013. SIES’13. [JHR13]

[7E. Jahier, S. Djoko-Djoko, C. Maiza, and E. Lafont - Environment-Model Based Testing of Control Systems : Case Studies - International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2014) [JDM+4]

Voir en ligne : Download page