|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
AlarmClock | |
FSM | Simple example of a finite state machine (FSM) for testing. |
LargeSet | A model of a set with N elements. |
QuiDonc | A simple EFSM model of the Qui-Donc service. |
SimpleSet | A model of a set with two elements: s1 and s2. |
SimpleSetWithAdaptor | A model of a set with two elements: s1 and s2. |
SizeExperiments | The performs some simple experiments on various test generation algorithms to compare the average size of the test suites that they must generate to achieve 100% transition coverage. |
SmartSetAdaptor | This class shows how we can use inheritance to add adaptor code. |
SpecialFSM | Simple FSM that is specialized so All Round Trips runs faster than Greedy or Random. |
SpecialFSMNoLoops | Simple FSM that is specialized so All Round Trips runs better |
StringSet | A simple implementation of a set of strings. |
StringSetBuggy | A simple implementation of a set of strings. |
StringSetTest | A simple example of a JUnit test that uses model-based test generation, from the model SimpleSetWithAdaptor. |
TrafficLight |
Enum Summary | |
---|---|
QuiDonc.State | |
TrafficLight.STATE |
This package contains several simple examples of ModelJUnit models and test adaptors (the test harness/driver code that links the model to the system under test).
Set<String>
implementation whenever you generate tests from it.
Pass any Set<String>
object into the constructor
to test it.s1
to a single string (as in
SimpleSetWithAdaptor), but maps the model variable s2
to a large number of strings. This achieves the goal of testing
the SUT with a large number of elements, but still keeps the model
small (4 states and 16 transitions) so that it can be tested
quickly and thoroughly.Set<String>
,
which you can use to experiment with executing the tests
generated from the above models. For example, if we pass
a StringSet object to SimpleSetWithAdaptor it passes all the
tests, while if we pass StringSetBuggy it fails the tests.ecinema
subdirectory
contains a model of a simple web-based cinema ticket booking system.
gsm
subdirectory
contains a model of a subset of the GSM 11-11 protocol that is used
is communicate with the SIM chip within many mobile phones. There
is also a sample implementation of a simulated SIM chip that can
be used as the system under test. It is interesting to use
this to measure the code coverage and mutation score of the
generated test suites, as well as the model coverage.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |