Debido al alto tráfico generado por robots, aplicamos límites en el número de peticiones permitidas por cliente y bloqueos por IP automáticos. Si haces un uso legítimo y estás teniendo problemas, avísanos para reevaluar nuestras políticas de bloqueo. Disculpa las molestias.

Artículo:
SMT-based Test-Case Generation with Complex Preconditions

Autores

Peña Marí, Ricardo
Sánchez-Hernández, Jaime
Garrido, Miguel
Sagredo, Javier

Editor

Sistedes

Publicado en

Actas de las XIX Jornadas de Programación y Lenguajes (PROLE 2019)

Licencia Creative Commons

Resumen

We present a system which can automatically generate an exhaustive set of black-box test-cases, up to a given size, for programs under test requiring complex preconditions. The key of the approach is to translate a formal precondition into a set of constraints belonging to the decidable logics of SMT solvers. By checking the satisfiability of the constraints, then the models returned by the solver automatically synthesize the cases. We also show how to use SMT solvers to automatically check for validity the test-case results, and also to complement the black-box cases with white-box ones. Finally, we use of solver to perform what we call automatic partial verification of the program. In summary, we propose a system in which exhaustive black-box and white-box testing, result checking, and partial verification, can all be done automatically. The only extra effort required from programmers is to write formal specifications.

Descripción

Acerca de Peña Marí, Ricardo

Palabras clave

Formal Specification, SMT Solvers, Test-case Generation, Testing

Citación

Peña, R., Sánchez-Hernández, J., Garrido, M., Sagredo, J.: SMT-based Test-Case Generation with Complex Preconditions. In: Alpuente, M., Sapiña, J., Rodríguez Echeverría, R. (eds.) Actas de las XIX Jornadas de Programación y Lenguajes (PROLE 2019). Sistedes (2019). https://hdl.handle.net/11705/PROLE/2019/012