key. To facilitate the verification of such systems, in
the context of a Model-Driven Development based
on RTEdge (the tool created by our sponsor), we
developed a black-box, online, directed random test
case generation procedure. We experimented with
this procedure on two well-known case studies and
showed that we can effectively reach very demand-
ing coverage levels of the model at random.
We conjecture that such impressive results might
in part be due to some structural characteristics of
our models, which is worth further investigations. In
case this conjecture is confirmed and additional
experiments show we almost reach coverage goals
on other case studies with different structural charac-
teristics, we do not feel overly concerned. Indeed,
thanks to the mapping from an RTEdge model to
Promela we showed we can use SPIN to give us test
cases that will exercise the states/transitions that are
missed by the random generation. Using Promela
and SPIN only would not be economical to achieve
the same level of coverage. However, combining
testing and a formal method would be economical,
as advocated by others (e.g., (Fraser, 2009)). Future
work should also investigate the effectiveness at
finding faults of the generated tests.
REFERENCES
P. Ammann and J. Offutt, Introduction to Software Test-
ing, Cambridge University Press, 2008.
A. Arcuri and L. Briand, “Adaptive random testing: an
illusion of effectiveness?” Proc. ACM ISSTA, 2011.
A. Arcuri, M. Z. Iqbal and L. Briand, “Formal analysis of
the effectiveness and predictability of random testing,”
Proc. ACM ISSTA, 2010.
N. Asoudeh and Y. Labiche, “Multi-objective construction
of an entire adequate test suite for an EFSM,” IEEE
ISSRE, 2014.
A. Burns, “How to Verify a Safe Real-Time System The
Application of Model Checking and a Timed Automa-
ta to the Production Cell Case Study,” Real-Time Sys-
tems Journal, 24 (2), 1998.
T. Y. Chen, H. Leung and I. K. Mak., “Adaptive random
testing,” Proc. Asian Computing Science Conf., 2005.
R. Cleaveland, S. A. Smolka and S. T. Sims, “An Instru-
mentation-Based Approach to Controller Model Vali-
dation,” Proc. Automotive Soft. Workshop. 2008.
Conformiq, TTCN-3, Qtronic and SIP: The Model-Based
Testing of a Protocol Stack, a TTCN-3 Integrated Ap-
proach, http://www.verifysoft.com/ttcn-
3_qtronic_sip.pdf, [Last checked: May 2014]
A. Y. Duale and M. Ü. Uyar, “A method enabling feasible
conformance test sequence generation for EFSM mod-
els,” IEEE Trans. on Computers, 53 (5), 2004.
J. W. Duran and S. C. Ntafos, “An evaluation of random
testing,” IEEE TSE, SE-10 (4), 1984.
P. H. Feiler and D. P. Gluch, Model-Based Engineering
with AADL, Addison-Wesley, 2012.
G. Fraser and A. Arcuri, “Whole Test Suite Generation,”
IEEE TSE, 39 (2), 2013.
G. Fraser, F. Wotawa and P. E. Ammann, “Testing with
model checkers: a survey,” STVR, 19 (3), 2009.
A. Gargantini and C. Heitmeyer, “Using Model Checking
to Generate Tests from Requirements Specifications,”
Proc. European Soft. Eng. Conf., 1999.
S. Gheorghe, “Integrating Formal Model Checking with
the RTEdge™ AADL Microkernel,” SAE Internaional
Journal of Aerospace, 4 (2), 2011.
P. Godefroid, N. Klarlund and K. Sen, “DART: directed
automated random testing,” Proc. ACM PLDI, 2005.
A. Groce, “Coverage rewarded: Test input generation via
adaptation-based programming,” Proc. ASE, 2011.
Q. Guo, R. Hierons, M. Harman, K. Derderian, “Com-
puting Unique Input/Output Sequences Using Genetic
Algorithms,” Proc. FATES, 2004.
W. Hasanain, Verifying Real-Time Embedded Software by
Means of Automated State-based Online Testing and
the SPIN Model Checker—Application to RTEdge
Models, Carleton University, 2013.
https://curve.carleton.ca/system/files/theses/27490.pdf.
R. L. Haupt and S. E. Haupt,
Practical Genetic Algo-
rithms, Wiley, 1998.
G. J. Holzmann, The SPIN Model checker, Addison-
Wesley, 2003.
X. Jin, G. Ciardo, T.-H. Kim and Y. Zhao., “Symbolic
verification and test generation for a network of com-
municating FSMs.,” Proc. ATVA, 2011.
A. S. Kalaji, R. M. Hierons and S. Swift, “An integrated
search-based approach for automatic testing from ex-
tended finite state machine (EFSM) models,” IST, 53
(12), 2011.
M. Khalil and Y. Labiche, “On the Round Trip Path Test-
ing Strategy,” IEEE ISSRE, 2010.
K. G. Larsen, M. Mikucionis, B. Nielsen and A. Skou.,
“Testing real-time embedded software using
UPPAAL-TRON: an industrial case study.,” Proc.
ACM EMSOFT, 2005.
D. Y. Lee and M. Yannakakis, “Principles and methods of
testing finite state machines-a survey,” Proc. of the
IEEE, 84 (8), 1996.
C. Lewerentz and T. Lindner (Ed.), Formal Development
of Reactive Systems: Case Study Production Cell,
LNCS, 1995.
J. J. Li and W. E. Wong, “Automatic test generation from
communicating extended finite state machine
(CEFSM)-based models,” Proc. IEEE ISORC, 2002.
G. Luo, G. V. Bochmann and A. Petrenko, “Test selection
based on communicating nondeterministic finite-state
machines using a generalized Wp-method,” IEEE
TSE, 20 (2), 1994.
A. P. Mathur, Foundations of Software Testing, Pearson,
2008.
S. Mouchawrab, L.C. Briand, Y. Labiche, M. Di Penta,
“Assessing, Comparing, and Combining State Ma-
chine-Based Testing and Structural Testing: A Series
of Experiments,” IEEE TSE, 37(2), 2011.
AutomatedState-basedOnlineTestingReal-timeEmbeddedSoftwarewithRTEdge
301