The University of Southampton
University of Southampton Institutional Repository

ProTest: An Automatic Test Environment for B Specifications

ProTest: An Automatic Test Environment for B Specifications
ProTest: An Automatic Test Environment for B Specifications
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.
Specification Based Testing, B-Method, Test Environment, Non Determinism.
113-136
Satpathy, Manoranjan
3037801e-efbe-4c1b-b1fc-7a4c2ab6ce46
Leuschel, Michael
c2c18572-66cf-4f84-ade4-218ce3afe78b
Butler, Michael
54b9c2c7-2574-438e-9a36-6842a3d53ed0
Gurevich, Yuri
cf183a76-af16-4bde-85a9-c49703d2f7eb
Petrenko, Alexander K.
a074f26c-b62e-47d0-8ad3-ca42540fe583
Kossatchev, Alexander
8e994640-6fd7-43d5-928f-20d0a2600d03
Satpathy, Manoranjan
3037801e-efbe-4c1b-b1fc-7a4c2ab6ce46
Leuschel, Michael
c2c18572-66cf-4f84-ade4-218ce3afe78b
Butler, Michael
54b9c2c7-2574-438e-9a36-6842a3d53ed0
Gurevich, Yuri
cf183a76-af16-4bde-85a9-c49703d2f7eb
Petrenko, Alexander K.
a074f26c-b62e-47d0-8ad3-ca42540fe583
Kossatchev, Alexander
8e994640-6fd7-43d5-928f-20d0a2600d03

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, 113-136. (doi:10.1016/j.entcs.2004.12.009).

Record type: Article

Abstract

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.

Text
test-nov30.pdf - Other
Download (127kB)

More information

Published date: January 2005
Additional Information: Event Dates: March 27-28,
Venue - Dates: International workshop on Model Based Testing, co-located with ETAPS 2004, Barcelona, Spain, 2004-03-27 - 2004-03-28
Keywords: Specification Based Testing, B-Method, Test Environment, Non Determinism.
Organisations: Electronic & Software Systems

Identifiers

Local EPrints ID: 260421
URI: http://eprints.soton.ac.uk/id/eprint/260421
PURE UUID: 5d11fc96-ab96-47d6-b933-adea76588419
ORCID for Michael Butler: ORCID iD orcid.org/0000-0003-4642-5373

Catalogue record

Date deposited: 01 Feb 2005
Last modified: 15 Mar 2024 02:50

Export record

Altmetrics

Contributors

Author: Manoranjan Satpathy
Author: Michael Leuschel
Author: Michael Butler ORCID iD
Editor: Yuri Gurevich
Editor: Alexander K. Petrenko
Editor: Alexander Kossatchev

Download statistics

Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.

View more statistics

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of http://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×