Automatic Interleaving for Testing Distributed Systems
Mihal Brumbulli and Emmanuel Gaudin PragmaDev
ERTS2 January 2016, Toulouse, France
Automatic Interleaving for Testing Distributed Systems Mihal - - PowerPoint PPT Presentation
Automatic Interleaving for Testing Distributed Systems Mihal Brumbulli and Emmanuel Gaudin PragmaDev ERTS2 January 2016, Toulouse, France Introduction Constant ever-growing interest for large-scale distributed systems The Internet of
ERTS2 January 2016, Toulouse, France
Specification and Description Language (ITU-T) Unified Modeling Language (OMG) Testing and Test Control Notation Version 3 (ETSI)
What are the effects of distributed execution of test cases? Rewrite the test cases or execute them in parallel? Can we simulate parallelism efficiently?
– with 𝒐𝒋 instructions for 𝒋 = 𝟐, 𝟑, … 𝑳 – the number of all interleavings is
𝑱 = ∑ 𝒐𝒋
𝑳 𝒋=𝟐
! ∏ 𝒐𝒋!
𝑳 𝒋=𝟐
– with 𝒐𝒋 = 𝑶 ∀𝒋 instructions – the number of all interleavings is
𝑱 = 𝑳𝑶 ! 𝑶! 𝑳
interleavings unpractical. However, …
interaction 𝒏𝟐
𝟏, 𝒏𝟑 𝟐, 𝒏𝟒 𝟏, 𝒏𝟓 𝟐, 𝒏𝟔 𝟐, 𝒏𝟕 𝟏, 𝒏𝟖 𝟐, 𝒏𝟗 𝟏, 𝒏𝟘 𝟏, 𝒏𝟐𝟏 𝟐
𝒉𝟐 𝒉𝟑 𝒉𝟒 𝒉𝟓 𝒉𝟔
𝒌 is an instruction in the test case
– 𝒋 = 𝟐, 𝟑, … 𝑶 is the index (relative order) of the instruction, – 𝒌 = 𝟏, 𝟐 if the given instruction triggers (or not) any interaction
𝒌 for which ∑ 𝒌 ≤ 𝟐
Normal mode: execute test case and mark instructions that trigger interaction based on the deployment diagram Interleaving mode: automatically generate and execute all interleavings
– Terminal has a slot for the card and a keypad for the key – Central unit checks whether access should be granted to a user
Questions?