ProTest: An Automatic Test Environment for B Specifications

Satpathy, Manoranjan, Leuschel, Michael and Butler, Michael, Gurevich, Yuri, Petrenko, Alexander K. and Kossatchev, Alexander(eds.) (2005) ProTest: An Automatic Test Environment for B Specifications Electronic Notes in Theoretical Computer Science, 111, pp. 113-136. (doi:10.1016/j.entcs.2004.12.009).

This is the latest version of this item.


[img] PDF test-nov30.pdf - Other
Download (127kB)


We present ProTest, an automatic test environment for B specifications. B is a model-oriented notation where systems are specified in terms of abstract states and operations on abstract states. ProTest first generates a state coverage graph of a B specification through exhaustive model checking, and the coverage graph is traversed to generate a set of test cases, each being a sequence of B operations. For the model checking to be exhaustive, some transformations are applied to the sets used in the B machine. The approach also works if it is not exhaustive; one can stop at any point in time during the state space exploration and generate test cases from the coverage graph obtained so far. ProTest then simultaneously performs animation of the B machine and the execution of the corresponding implementation in Java, and assign verdicts on the test results. With some restrictions imposed on the B operations, the whole of the testing process is performed mechanically. We demonstrate the efficacy of our test environment by performing a small case study from industry. Furthermore, we present a solution to the problem of handling non-determinism in B operations.

Item Type: Article
Digital Object Identifier (DOI): doi:10.1016/j.entcs.2004.12.009
Additional Information: Event Dates: March 27-28,
Venue - Dates: International workshop on Model Based Testing, co-located with ETAPS 2004, Spain, 2005-03-27 - 2005-03-28
Keywords: Specification Based Testing, B-Method, Test Environment, Non Determinism.
Organisations: Electronic & Software Systems
ePrint ID: 260421
Date :
Date Event
January 2005Published
Date Deposited: 01 Feb 2005
Last Modified: 17 Apr 2017 22:14
Further Information:Google Scholar

Available Versions of this Item

Actions (login required)

View Item View Item