Skip to Main content Skip to Navigation
Book sections

Using Model Learning for the Generation of Mock Components

Abstract : Mocking objects is a common technique that substitutes parts of a program to simplify the test case development, to increase test coverage or to speed up performance. Today, mocks are almost exclusively used with object oriented programs. But mocks could offer the same benefits with communicating systems to make them more reliable. This paper proposes a model-based approach to help developers generate mocks for this kind of system, i.e. systems made up of components interacting with each other by data networks and whose communications can be monitored. The approach combines model learning to infer models from event logs, quality metric measurements to help chose the components that may be replaced by mocks, and mock generation and execution algorithms to reduce the mock development time. The approach has been implemented as a tool chain with which we performed experimentations to evaluate its benefits in terms of usability and efficiency.
Document type :
Book sections
Complete list of metadatas

https://hal.uca.fr/hal-03048336
Contributor : Sébastien Salva <>
Submitted on : Wednesday, December 9, 2020 - 11:56:47 AM
Last modification on : Thursday, December 10, 2020 - 3:26:45 AM

File

Mockgen3b.pdf
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

Collections

Citation

Sébastien Salva, Elliott Blot. Using Model Learning for the Generation of Mock Components. Testing Software and Systems - 32nd IFIP WG 6.1 International Conference, ICTSS 2020, Naples, Italy, December 9-11, 2020, Proceedings, pp.3-19, 2020, ⟨10.1007/978-3-030-64881-7_1⟩. ⟨hal-03048336⟩

Share

Metrics

Record views

22

Files downloads

40