Generating finite state machines for software systems with asynchronous callbacks
Abstract
Techniques and tools for generating finite state machines (“FSMs”) for a software system with asynchronous callbacks are described. For example, method invocations in a model of the software system are partitioned into observable and controlled method invocations. The controlled method invocations are those which can be run from a test harness while the observed method invocations are those which are observed asynchronously as they are invoked in the system. An FSM is created with observation and control nodes such that observable transitions are found from observation nodes and controlled transitions are found from control nodes. If a state of the model contains both controlled and observable invocations, a timeout transition is added to the FSM to give an implementation time to come up with an observed method invocation before continuing to controlled invocations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 8.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
In an analysis tool, a method comprising generating, from an abstract state machine which models a software system, a finite state machine representing the software system, the software system including asynchronous callbacks, wherein the finite state machine models the asynchronous callbacks.
- Claim 2Depends on #1
The method of claim 1 , further comprising testing an implementation of the software system against the generated finite state machine.
- Claim 3Depends on #2
The method of claim 2 , wherein: the testing comprises using a test harness to test the implementation; the finite state machine comprises plural nodes and plural transitions; and the plural transitions comprise one or more controlled transitions and one or more observed transitions.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- Barnett et al., "The Spec# Programming System: An Overview," CASSIS 2004, LNCD 3362, pp. 49-69, 2005.
- Barnett et al., Towards a Tool Environment for Model-Based Testing with AsmL, In 3rd International Workshop on Formal Approaches to Testing of Software (FATES 2003), Oct. 2003, 9 pages.
- Bekkerman, P. "FSMGenerator Finite State Machine generating software." copyright 2002-2003. retrieved from "http://fsmgenerator.sourceforge.net/" on Feb. 28, 2008.
- Blass et al., "Play to test," Technical Report MSR-TR-2005-04, Microsoft Research, 15 pages, Jan. 2005.
- Cacciari et al., "Controllability and observability in distributed testing," Information and Software Technology, 41, pp. 767-780, 1999.