BETA: a b based testing approach

  • Authors:
  • Ernesto C. B. de Matos;Anamaria Martins Moreira

  • Affiliations:
  • Federal University of Rio Grande do Norte (UFRN), Natal, RN, Brazil;Federal University of Rio Grande do Norte (UFRN), Natal, RN, Brazil

  • Venue:
  • SBMF'12 Proceedings of the 15th Brazilian conference on Formal Methods: foundations and applications
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

While formal methods provide ways to specify and verify software systems with mathematical accuracy, testing techniques can provide mechanisms to identify defects that were inserted in the system during its implementation. With that in mind, this paper presents an approach to generate test specifications based on a formal notation: the B-Method. Our approach is supported by a tool and uses restrictions described on a B specification, such as invariants, preconditions and conditional statements, to create unit tests for an operation. The approach uses equivalence classes and boundary value analysis techniques to partition the operation input space and relies on combinatorial criteria to select partitions to test. The approach and the tool were evaluated through a small case study using specifications for the FreeRTOS micro kernel.